@font-face {
  font-family: "Special Force";
  src: url("/media/fonts/Special_Elite/SpecialElite-Regular.ttf") format("truetype");
  font-display: swap;
}



@font-face {
  font-family: "Montserrat";
  src: url("/media/fonts/Montserrat/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}



@font-face {
  font-family: "Inconsolata";
  src: url("/media/fonts/Inconsolata/Inconsolata-VariableFont_wdth,wght.ttf") format("truetype");
  font-display: swap;
}



:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --panel-bg: rgba(10, 10, 10, 0.98);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #d90000;
  --nav-underline: #fff;
  --active-bg: rgba(255, 255, 255, 0.10);
  --active-border: #fff;
}



html[data-theme="light"] {
  --bg: #fff;
  --text: #111;
  --muted: rgba(17, 17, 17, 0.75);
  --border: rgba(17, 17, 17, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --panel-bg: rgba(255, 255, 255, 0.98);
  --panel-border: rgba(17, 17, 17, 0.1);
  --nav-underline: #d90000;
  --active-bg: rgba(217, 0, 0, 0.10);
  --active-border: #d90000;
}



html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  overflow-x: clip;
  scroll-behavior: smooth;
}



* {
  box-sizing: border-box;
}



section {
  scroll-margin-top: 90px;
}



body.menu-open {
  overflow: hidden;
  touch-action: none;
}



/* --- HLAVIČKA A NAVIGACE --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}



.site-header.scrolled {
  background: color-mix(in srgb, var(--panel-bg) 85%, transparent);
  border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}



.top-nav {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 1rem 0;
}



.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
  min-width: 0;
  flex-shrink: 0;
}



.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 999px;
  flex: 0 0 auto;
}



.brand span {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1;
}



.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  flex: 0 0 auto;
}



.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 1.25rem); 
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}



.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  opacity: .92;
  white-space: nowrap;
  position: relative;
  padding: .5rem 0;
}



.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nav-underline);
  transition: width .2s ease;
}



.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}



.nav-links a.active {
  font-weight: 700;
  opacity: 1;
}



.theme-toggle,
.menu-open,
.menu-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}



.theme-toggle {
  width: 42px;
  position: relative;
  overflow: hidden;
}



.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}



.theme-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(.8);
}



.theme-icon-moon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}



html[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}



html[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(.8);
}



.menu-open {
  display: none;
  padding: 0 1rem;
  width: auto;
  gap: .4rem;
  white-space: nowrap;
}



/* --- MOBILNÍ BOČNÍ MENU --- */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: min(85vw, 340px);
  height: 100svh;
  background: var(--panel-bg);
  border-right: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transform: translateX(-102%);
  will-change: transform;
  transition: transform .28s ease;
  z-index: 40;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}



.side-menu.open {
  transform: translateX(0);
}



.side-menu nav ul {
  list-style: none;
  padding: 4rem 0 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}



.side-menu nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  padding: .9rem 1.2rem;
  border-radius: 8px;
  line-height: 1.3;
}



.side-menu nav a:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}



.side-menu nav a.active {
  font-weight: 700;
  background: var(--active-bg);
  border-left: 4px solid var(--active-border);
}



.menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
}



.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 35;
  cursor: pointer;
}



/* --- HERO SEKCE --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #000;
  color: #fff;
  padding-top: 72px;
  position: relative;
}



html[data-theme="light"] .hero {
  background: #fff;
  color: #111;
}



.hero-content {
  width: 100%;
  max-width: 1100px;
  margin-left: clamp(0rem, 4vw, 4rem);
}



.eyebrow {
  font-family: "Inconsolata", monospace;
  color: #fff;
  margin-bottom: 1rem;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}



html[data-theme="light"] .eyebrow {
  color: #111;
}



.hero h1 {
  font-family: "Special Force", serif;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: .95;
  margin: 0 0 1.6rem 0;
  letter-spacing: .06em;
}



html[data-theme="light"] .hero h1 {
  color: #111;
}



.btn-call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 64px;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #d90000 0%, #b80000 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  width: min(100%, 420px);
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(217, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}



.btn-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left .6s ease;
}



.btn-call:hover::before {
  left: 100%;
}



.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ff0000 0%, #d90000 100%);
  border-color: rgba(255, 255, 255, 0.1);
}



.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) rotate(180deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  z-index: 5;
  animation: bounceHint 2.2s ease-in-out infinite;
}



@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(180deg); }
  50% { transform: translateX(-50%) translateY(7px) rotate(180deg); }
}



.scroll-icon-img {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  filter: brightness(0) invert(1);
}



html[data-theme="light"] .scroll-icon-img {
  filter: brightness(0) invert(0);
}



/* --- KARTA VIZITKY --- */
.vizitka-section {
  padding: 4rem 0;
}



.vizitka-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  background: var(--panel-bg) !important;
  border: 1px solid var(--panel-border) !important;
  box-shadow: var(--shadow);
  padding: 2.5rem !important;
  border-radius: 16px;
  margin-bottom: 2rem;
}



@media (min-width: 992px) {
  .vizitka-card {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}



.vizitka-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}



.vizitka-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}



.vizitka-header-block {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}



.vizitka-name {
  font-family: "Special Force", serif;
  font-size: 2.2rem;
  margin: 0 0 0.25rem 0;
}



.vizitka-profession {
  font-family: "Inconsolata", monospace;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}



.section-sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem 0;
  text-transform: uppercase;
}



.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}



.contact-list li { margin-bottom: 0.5rem; }



.contact-link {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}



.contact-link:hover { color: var(--accent); }



/* --- IKONY SOCIÁLNÍCH SÍTÍ --- */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: flex-start;
}



.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  opacity: 0.85;
  overflow: hidden;
  position: relative;
}



.social-icons a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}



.social-icons a:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(217, 0, 0, 0.25);
}



.social-icons a:hover::before {
  opacity: 1;
}



.social-icons a:hover .icon-img {
  transform: scale(1.15);
}



.icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}



/* --- ROZPIS HODIN --- */
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
  max-width: 280px;
}



.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  font-family: "Inconsolata", monospace;
}



.schedule-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}



/* --- SEKUNDÁRNÍ PANELY (Loga + Adresa) --- */
.partner-panel, .address-panel {
  background: var(--panel-bg) !important;
  border: 1px solid var(--panel-border) !important;
  box-shadow: var(--shadow);
  padding: 1.75rem !important;
  border-radius: 16px;
  margin: 0;
}



.partner-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}



.partner-logo-img {
  height: 45px;
  width: 130px;
  object-fit: contain;
  display: inline-block;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease, padding 0.2s ease;
  margin: 0 auto;
}



html[data-theme="dark"] .partner-logo-img {
  filter: none !important;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
}



.partner-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
}



.address-content-layout {
  display: flex;
  gap: 1.5rem;
  height: 100%;
}



.address-text-side { flex: 1; }
.address-map-side { flex: 1.2; min-height: 140px; }



.address-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
}



.address-details {
  font-size: 1.05rem;
  color: var(--muted);
}



.map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}



/* --- NOVÁ SEKCE: INSTITUCE --- */
.institutions-section {
  padding: 2rem 0 6rem 0;
  text-align: center;
}



.institutions-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  margin-bottom: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}



.text-accent {
  color: var(--accent);
}



.institutions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 3.5rem 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}



.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  transition: transform 0.25s ease;
}



.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}



.logo-wrapper:hover {
  transform: translateY(-4px);
}



.logo-wrapper:hover img {
  opacity: 1;
}



html[data-theme="dark"] .logo-wrapper img {
  filter: none !important;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  opacity: 0.95;
}



html[data-theme="dark"] .logo-wrapper:hover img {
  opacity: 1;
}




/* --- RESPONSIVE DESIGN & BREAKPOINTS --- */



@media (max-width: 1250px) {
  .nav-links {
    display: none !important;
  }



  .menu-open {
    display: inline-flex;
  }



  .brand span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }



  .hero-content {
    margin-left: 0;
    padding: 0 1rem;
  }



  .btn-call {
    width: 100%;
    max-width: none;
  }
}



@media (max-width: 992px) {
  .institutions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    padding: 2.5rem 1.5rem;
  }
  .logo-wrapper {
    height: 60px;
  }
}



@media (max-width: 768px) {
  .address-content-layout {
    flex-direction: column;
    gap: 1.25rem;
  }
  .address-map-side {
    height: 180px;
  }
  
  .institutions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}



@media (max-width: 600px) {
  .top-nav {
    padding: .5rem .75rem 0;
    gap: .5rem;
  }



  .brand-logo { width: 34px; height: 34px; }
  .brand span { font-size: .9rem; }



  .menu-open, .theme-toggle {
    padding: 0 .75rem;
    height: 38px;
    font-size: .9rem;
  }



  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .vizitka-section { padding: 2rem 0; }
  .vizitka-card { padding: 1.5rem !important; }
  .vizitka-name { font-size: 1.8rem; }



  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 2rem 1rem;
  }
  .logo-wrapper {
    height: 50px;
  }
  
  .social-icons {
    gap: 0.75rem;
  }
  
  .social-icons a {
    width: 44px;
    height: 44px;
  }
  
  .icon-img {
    width: 24px;
    height: 24px;
  }
}



body.menu-open .hero-content,
body.menu-open .scroll-indicator,
body.menu-open .vizitka-section,
body.menu-open .institutions-section {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}



body.menu-open .site-header {
  opacity: 0;
  visibility: hidden;
}