/* ============================================================
   Hlavička, navigace, patička, layout mřížky
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 249, 245, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.97);
  box-shadow: 0 8px 24px -20px rgba(26, 25, 23, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { display: block; height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--panel-2); }
.nav-link.is-active { color: var(--accent); }

.nav-link-external::after {
  content: "↗";
  font-size: 11px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.nav-link-external:hover::after { transform: translate(1px, -1px); }

.nav-link svg { width: 12px; height: 12px; transition: transform 0.3s; }
.has-dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 340px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 5;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-dropdown:hover .nav-link svg,
.has-dropdown.open .nav-link svg { transform: rotate(180deg); }

.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text);
  transition: background 0.2s;
}
.nav-dropdown a strong { font-size: 15px; font-weight: 600; color: var(--text); }
.nav-dropdown a span { font-size: 13px; color: var(--muted); font-weight: 400; }
.nav-dropdown a:hover { background: var(--panel-2); }

.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

/* ---------- Přepínač jazyků ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #fff;
}
.lang-switch a {
  padding: 4px 7px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--text); background: var(--panel-2); }
.lang-switch a.is-active { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s, background 0.3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s, top 0.3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-header.is-open .nav-toggle span { background: transparent; }
.site-header.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ---------- Mobilní navigace ---------- */
@media (max-width: 1120px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 36px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 16px 16px 40px;
    background: #fff;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    border-top: 1px solid var(--line);
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-link {
    height: auto;
    padding: 15px 8px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-link.is-active { color: var(--accent); }
  .has-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    margin: 0 0 6px 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .has-dropdown.open .nav-dropdown { display: block; }
  .nav-dropdown a { padding: 10px 8px; }
  .site-nav .nav-cta-mobile { display: inline-flex; margin-top: 18px; }
  body.no-scroll { overflow: hidden; }
}

@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .lang-switch a { padding: 3px 5px; font-size: 9px; }
}

.site-nav .nav-cta-mobile { display: none; }

/* ---------- Patička ---------- */
.site-footer {
  background: var(--dark);
  color: #b4b4af;
  padding: 0 0 28px;
}

.site-footer > .container { padding-top: clamp(40px, 5vw, 64px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-logo { height: 40px; filter: invert(1); }
.footer-brand p { color: #8c8c86; font-size: 15px; max-width: 36ch; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c8c86;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; color: #b4b4af; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .ext { color: #e8a886; font-size: 11px; margin-left: 2px; }
.footer-col .contact-line { font-size: 15px; color: #b4b4af; margin-bottom: 9px; line-height: 1.5; }
.footer-col .contact-line strong { display: block; color: #fff; font-weight: 600; }
.footer-col .contact-line.muted { color: #8c8c86; }

.footer-socials { display: flex; gap: 9px; margin-top: 20px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #b4b4af;
  font-family: var(--font-mono);
  font-size: 10.5px;
  transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--accent); color: #fff; background: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: #8c8c86;
  font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .muted { color: #8c8c86; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Podstránkové hero (stejný jazyk jako domovský banner) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 5vw, 72px));
  padding-bottom: clamp(44px, 5.5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--dark);
  background-image:
    radial-gradient(60% 70% at 88% -10%, rgba(201, 74, 24, 0.3), transparent 62%),
    radial-gradient(40% 50% at 0 100%, rgba(255, 255, 255, 0.035), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: auto, auto, 26px 26px;
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 74, 24, 0.45), transparent);
  pointer-events: none;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  max-width: 18ch;
}
.page-hero .lead { color: #b9b1a5; max-width: 58ch; }

.page-hero .eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f3c9ae;
  margin-bottom: 20px;
}
.page-hero .eyebrow::before {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.page-hero .chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d5cec2;
}
.page-hero .chip .dot { background: var(--accent); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f887c;
  margin-bottom: 22px;
}
.breadcrumbs a:hover { color: #f3c9ae; }
.breadcrumbs span { color: #5f594f; }
.breadcrumbs span:last-child { color: #d5cec2; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

/* ---------- Mřížky ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
