header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.odsazeni_hamburger {
  margin-top: 40px;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background: rgba(51, 51, 51, 0.22);
  color: white;
  transition: right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  backdrop-filter: blur(32px) saturate(180%) brightness(1.18);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.18);
  border-left: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22),
    0 1.5px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 8px 32px rgba(255, 255, 255, 0.08);
  will-change: right, box-shadow, transform;
  transform: scale(0.98) rotateY(8deg);
}
.sidebar.open {
  right: 0;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.32),
    0 4px 24px rgba(255, 255, 255, 0.12),
    inset 0 12px 48px rgba(255, 255, 255, 0.12);
  transform: scale(1) rotateY(0);
}
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.sidebar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    0,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.01) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.sidebar .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  perspective: 1000px;
}
.sidebar .mobile-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  line-height: 1.5rem;
  padding: 16px 28px;
  border-radius: 48px;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(18px) saturate(160%) brightness(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(160%) brightness(1.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s ease, box-shadow 0.28s ease;
}
.sidebar .mobile-nav a::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  width: 60%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: liquid-glow 5s ease-in-out infinite alternate;
}
@keyframes liquid-glow {
  0% {
    transform: scale(1) translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.05) translateX(8px);
    opacity: 0.6;
  }
  100% {
    transform: scale(1) translateX(0);
    opacity: 0.4;
  }
}
.sidebar .mobile-nav a:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  transform: scale(1.06) translateY(-6px) rotateX(5deg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3),
    inset 0 14px 28px rgba(255, 255, 255, 0.06),
    inset 0 -6px 8px rgba(0, 0, 0, 0.12);
}
.sidebar .mobile-nav a:active {
  transform: scale(0.96) translateY(2px) rotateX(-3deg);
  box-shadow: 0 4px 16px #000, inset 0 4px 10px rgba(112, 112, 112, 0.04);
}
.sidebar .mobile-nav a:hover ~ a,
.sidebar .mobile-nav a:hover ~ a ~ a {
  transform: scale(0.985);
  opacity: 0.95;
  filter: brightness(1.02);
}
.sidebar .mobile-nav a:hover ~ a::before,
.sidebar .mobile-nav a:hover ~ a ~ a::before {
  opacity: 0.3;
}
.sidebar .mobile-nav a::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: rgba(170, 169, 169, 0.15);
  border-radius: 50%;
  filter: blur(2px);
  animation: bubble-float 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bubble-float {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateX(-50%) translateY(-18px) scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.3;
  }
}
.sidebar .mobile-nav a:nth-child(1):hover ~ a:nth-child(2),
.sidebar .mobile-nav a:nth-child(2):hover ~ a:nth-child(3),
.sidebar .mobile-nav a:nth-child(3):hover ~ a:nth-child(4),
.sidebar .mobile-nav a:nth-child(4):hover ~ a:nth-child(5) {
  animation: wave-response 0.6s ease-in-out;
}
@keyframes wave-response {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.03) translateX(4px);
  }
  60% {
    transform: scale(0.985) translateX(-2px);
  }
  100% {
    transform: scale(1);
  }
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
#hamburger-button {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
#hamburger-button:focus {
  outline: 0;
}
.sidebar nav,
.sidebar #vyhledavani,
.sidebar #call_to_action_button {
  display: block;
}
@media (min-width: 1437px) {
  .sidebar {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 1436px) {
  nav,
  .hlavicka-stred,
  #vyhledavani,
  #call_to_action_button {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  header {
    padding: 20px 24px;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999;
}
#mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(150%);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
#mobile-search {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 12px;
  border-radius: 30px;
  backdrop-filter: blur(15px) saturate(160%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  animation: shine-form 7s linear infinite;
}
@keyframes shine-form {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.05),
      inset 0 0 4px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15),
      inset 0 0 10px rgba(255, 255, 255, 0.12);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.05),
      inset 0 0 4px rgba(255, 255, 255, 0.1);
  }
}
#mobile-search input {
  padding: 12px 22px;
  font-size: 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  width: 280px;
  transition: 0.3s;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08);
}
#mobile-search input:focus {
  outline: 0;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.25);
}
#mobile-search input::placeholder {
  color: #eee;
}
#mobile-search button {
  padding: 12px 28px;
  font-size: 1.05rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.18)
  );
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2),
    inset 0 0 6px rgba(255, 255, 255, 0.08);
}
#mobile-search button:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #6e0000;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(255, 255, 255, 0.2),
    inset 0 4px 8px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-call-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
#mobile-call {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #ff3c78, #e60073);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(230, 0, 115, 0.5),
    inset 0 -3px 6px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
#mobile-call:hover {
  background: linear-gradient(135deg, #ff6390, #ff1a64);
  box-shadow: 0 10px 25px rgba(255, 26, 100, 0.75),
    inset 0 -4px 8px rgba(255, 255, 255, 0.3);
  transform: scale(1.08) translateY(-3px);
}
#mobile-call:active {
  background: linear-gradient(135deg, #e60073, #b30058);
  box-shadow: 0 4px 10px rgba(179, 0, 88, 0.6),
    inset 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
}
#mobile-call:focus {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 99, 144, 0.6),
    0 10px 25px rgba(255, 26, 100, 0.6);
}
.odhlasit-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff4e4e, #f00);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.odhlasit-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0,
    transparent 70%
  );
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
  border-radius: 50%;
  pointer-events: none;
}
.odhlasit-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6),
    inset 0 4px 8px rgba(255, 255, 255, 0.25);
}
.odhlasit-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5),
    inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.odhlasit-btn:hover::before {
  transform: scale(1);
  opacity: 1;
}
