@font-face {
  font-family: 'Athletics';
  src: url('font/AthleticsLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Athletics';
  src: url('font/AthleticsBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Athletics';
  src: url('font/AthleticsBlack.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-brand: #E30613;
  --color-text: #000000;
  --color-bg: #ffffff;
  --color-dark: #9e0009;
  --font-primary: 'Athletics', sans-serif;

  /* Šířka levého sloupce se dopočítává dynamicky podle výšky okna */
  --sidebar-width: 33vh;
}
.hidden {
	display:none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
h2 {
	color: var(--color-dark);
	line-height: 1;
	padding-bottom: 10px;
}

a {
	color: var(--color-dark);
	font-weight: 900;
}

body, html {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;

  scroll-behavior: smooth;

  background-image: url('bg-pc.jpg');
  background-repeat: no-repeat;
  background-position: left 0px;
  background-size: auto;
  background-attachment: fixed;
}

/* --- GLOBÁLNÍ DESKTOP LAYOUT --- */
.main-layout-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* --- LEVÝ PANEL (Desktop, fixní) --- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6vh;
  padding-bottom: 6vh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
}

.profile-photo-wrapper {
  position: absolute;
  top: 3vh;
  left: -3vh;
  width: calc(var(--sidebar-width) * 1.1);
  height: calc(var(--sidebar-width) * 1.1);
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-name,
.sidebar-line,
.profile-contacts {
  margin-left: calc(var(--sidebar-width) * 0.2);
}

.profile-name {
  font-weight: 500;
  font-size: 8vh;
  line-height: 1.05;
  color: var(--color-brand);
  margin-top: calc(var(--sidebar-width) * 1.1);
  margin-bottom: 2vh;
}

.sidebar-line {
  width: calc(100% - calc(var(--sidebar-width) * 0.2));
  height: 2px;
  background-color: #cccccc;
  margin-bottom: 2.5vh;
}

.profile-contacts .contact-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 2.2vh;
  letter-spacing: 0.5px;

  margin-bottom: 0.8vh;
}

/* --- PRAVÁ STRANA (Desktop) — plynule scrolluje vedle fixního sidebaru --- */
.content-area {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-bottom: 4vh;
  padding-left: 40px;
  padding-right: 40px;
  position: relative;
}

.top-navigation {
  position: sticky;
  top: 0;
  z-index: 200;
  
  /* Roztažení podkladu přesně o šířku levého sidebaru (var(--sidebar-width)) + levý padding (40px) */
  width: calc(100% + var(--sidebar-width) + 80px);
  margin-left: calc(-1 * (var(--sidebar-width) + 40px));
  margin-right: -40px;
  
  /* Přidání levého odsazení pro vyrovnání obsahu menu zpět na střed pravé části */
  padding: 4vh 40px 4vh calc(var(--sidebar-width) + 40px);
  
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4vh;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}





.nav-links-wrapper {
  position: relative;
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 4vh;
  position: relative;
}

.nav-item {
  color: #777777;
  text-decoration: none;
  font-weight: 400;
  font-size: 2vh;
  letter-spacing: 0.5px;
  padding-bottom: 8px; /* Prostor pro elastickou čáru */
  display: block;      /* Nutné, aby JS mohl správně měřit šířku slova */
  transition: color 0.3s ease, font-weight 0.1s ease;
}

/* Aktivní kategorie zčerná a ztuční */
.nav-links .nav-item.active-category {
  color: #000000 !important;
  font-weight: 700 !important;
}

/* Elastická čára pod desktopovým menu */
.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brand);
  display: block;
  transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.4s cubic-bezier(0.25, 2, 0.5, 1);
  will-change: left, width;
  pointer-events: none;
}

.btn-cta {
  color: var(--color-brand);
  background-color: white;
  text-decoration: none;
  font-weight: 900;
  border: 2px solid var(--color-brand);
  padding: 1vh 3vh;
  border-radius: 40px;
  letter-spacing: 1px;
  margin-top:-5px;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-cta:hover {
  background-color: var(--color-brand);
  color: white;
}

/* VÝCHOZÍ STAV: Mobilní hamburger menu je na desktopu kompletně skryté */
.hamburger-menu {
  display: none;
}

/* --- OBSAHOVÉ SEKCE (klasická scrollovaná stránka) --- */
.sections-wrapper {
  width: 100%;
  margin: 0 auto;
}

.content-section + .content-section {
  position: relative;
  margin-top: 4vh;
}

.content-section + .content-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 47px; /* Upravte podle skutečné výšky vašeho stin.png */
  background-image: url('stin.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain; /* Případně '100% 100%' podle tvaru obrázku */
  margin-bottom: 2vh;
}

.article-block {
  padding-bottom: 5vh;
}

.article-block .text {
  max-width: 70ch;
  margin: 0 auto 3vh auto;
  font-size: 2.5vh;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.5px;

}

.article-block > h2 {
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: 8vh;
  margin-bottom: 2vh;
}
.article-block > h3 {
  width: 100%;
  max-width: none;
  text-align: center;
  font-size: 5vh;
  margin-bottom: 1vh;
  margin-top: 4vh;
  	color: var(--color-dark);
	line-height: 1;
}

b, strong, .article-block .text b, .article-block .text strong {
  font-weight: 700 !important;
}
.red { color: var(--color-brand); font-weight: 700; }
.article-block .text p { margin-bottom: 0.5em; }
.article-block .text p:last-child { margin-bottom: 0; }

/* --- GALERIE OBRÁZKŮ (dlaždice vedle sebe, přirozený poměr stran) --- */

.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding-top:3vh;
}
.no-shadow {
  filter: none !important;
  }

.img-tile {
  position: relative;
  height: 55vh;
  max-width: 100%;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  display: block;
}

.img-tile .img-clip {
  height: 100%;
  width: auto;
  overflow: hidden;
  display: block;
}

.img-tile img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  cursor: pointer;
}

/* Seříznutý roh — indikace flipbooku, nekonečná animace jako na původním webu */
@keyframes seriznutiRohu {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, calc(100% - 10%) 0, 100% 10%, 100% 100%, 0 100%);
  }
}

@keyframes seriznutiRozmerRuzku {
  0%   { width: 0px;  height: 0px; }
  100% { width: 10%; height: 10%; }
}

.img-tile.is-flipbook img {
  animation: seriznutiRohu 1s infinite alternate ease-out;
}

.roh-shadow {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.img-tile.is-flipbook .roh-shadow {
  display: block;
  filter: drop-shadow(-4px 4px 6px rgba(0, 0, 0, 0.15));
  animation: seriznutiRozmerRuzku 1s infinite alternate ease-out;
}

.roh-prekryv {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  clip-path: polygon(0 0,100% 100%, 0 100%);
}

/* --- PEVNÉ ELEMENTY --- */
.audio-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mobile-footer {
  display: none;
}



/* ==========================================================================
   RESPONSIVE BREAKPOINT (MOBILNÍ VERZE)
   ========================================================================== */
@media (max-width: 768px), (orientation: landscape) and (max-width: 1000px) {

  :root {
    --name-width-ratio: 5.7;
    --name-height-ratio: 5; /* Výška upravena na 5 pro neprůstřelné vtěsnání e-mailu */

    --name-size: min(
        calc(90vw / var(--name-width-ratio)),
        calc((50vh - 5vh) / var(--name-height-ratio))
    );
  }

  body, html {
    overflow-y: scroll;
    height: auto;
    background-image: url('bg.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-attachment: fixed;
  }

  .main-layout-container {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 0;
  }

  .mobile-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  /* --- STAV 1: ÚVODNÍ STRÁNKA (Mobil) --- */
  .sidebar {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    top: auto;
    left: auto;
    height: 100vh;
    width: 100% !important;
    overflow: hidden;
    z-index: auto;
  }

  .sidebar .profile-photo-wrapper {
    position: absolute;
    top: 4vmin;
    left: calc(clamp(200px, 65vw, 40vh) * -0.1);
    width: clamp(300px, 90vw, 50vh);
    height: clamp(300px, 90vw, 50vh);
    margin: 0;
  }

  .sidebar .profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

  .sidebar .profile-name,
  .sidebar .sidebar-line,
  .sidebar .profile-contacts {
    margin-left: calc(20px + 8vmin);
    margin-right: 20px;
  }

  .sidebar .profile-name {
    font-weight: 900;
    font-size: var(--name-size);
    line-height: 1.05;
    color: var(--color-brand);
    margin-top: calc(clamp(300px, 90vw, 50vh) + 4vh);
    margin-bottom: calc(var(--name-size) * 0.3);
  }

  .sidebar .sidebar-line {
    width: calc(100% - calc(20px + 6vw) - 50px);
    height: 2px;
    background-color: #cccccc;
    margin-bottom: calc(var(--name-size) * 0.3);
  }

  .sidebar .profile-contacts .contact-link {
    font-size: calc(var(--name-size) / 3);
    margin-bottom: 1vh;
  }

  .scroll-indicator-triangle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--color-brand);
  }

  /* --- STAV 2: OBSAH (Mobil) --- */
  .content-area {
    margin-left: 0;
    padding: 0 20px 20px 20px;
  }

  /* KOREKCE: Sjednocená navigace se na mobilu promění ve fullscreen panel */
  .top-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100dvh; /* Dynamický viewport zabraňuje skákání v mobilním Safari */
    margin: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4vh;
    padding: 0;

    /* Panel schováme za pravou hranu displeje */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
  }

  /* Stav pro vysunutí mobilního panelu pomocí JavaScriptu */
  .top-navigation.active {
    transform: translateX(0);
  }

  .nav-links-wrapper {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
  }

  .nav-links .nav-item {
    font-size: 3vh;
    font-weight: 700;
    color: #444444;
    letter-spacing: 2px;
    padding: 10px 20px;
  }

  /* Zvýraznění aktivní sekce v mobilním menu (červená barva) */
  .nav-links .nav-item.active-category {
    color: var(--color-brand) !important;
    font-weight: 900 !important;
    transform: scale(1.05);
  }

  /* Vypnutí desktopové čáry na mobilu */
  .nav-underline {
    display: none !important;
  }

  /* Tlačítko v mobilním menu */
  .btn-cta {
    margin-top: 2vh;
    font-size: 2vh;
    padding: 1.5vh 4vh;
    border-radius: 30px;
    color: var(--color-brand);
    background-color: white;
    border: 2px solid var(--color-brand);
  }

  .btn-cta:active {
    background-color: var(--color-brand);
    color: white;
  }

  /* Probuzení hamburger tlačítka na mobilu */
  .hamburger-menu {
    display: flex !important;
    position: fixed;
    top: 0px;
    right: 0px;
    width: 52px;
    height: 47px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
    padding: 15px;
	  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;

  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 2000;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  /* Animace hamburgeru na křížek */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-brand);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-brand);
  }

  .sections-wrapper {
    max-width: 100%;
  }

  .content-section {
    padding-top: 40px;
    scroll-margin-top: 10px;
  }

  .article-block .text {
    font-size: 4vw;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  /* Dynamické zmenšování nadpisů H2 na mobilu */
  .article-block > h2 {
    font-size: 9vw;
  }

  /* Na mobilu jde jeden obrázek na řádek přes celou šířku (čitelnější) */
  .image-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .img-tile {
    height: auto;
    width: 100%;
  }

  .img-tile img,
  .img-tile .img-clip img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* --- MOBILNÍ PATKA --- */
  .mobile-footer {
    display: block;
    width: 100%;
    padding-top: 10px;
    margin-top: 20px;
    border-top: 1px solid #eeeeee;
  }

  .footer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 5px;
  }

  .footer-text strong {
    color: var(--color-brand);
    font-size: 18px;
    font-weight: 900;
  }

  .footer-text a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .audio-toggle {
    display: none;
  }
}
