* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #f6d365;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Velké rozostřené barevné celky na pozadí - rychlejší a přes celou stránku */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Změnit barvy a zrychlit animace */
.bg-blob-1 {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: radial-gradient(circle at 30% 30%, #ffdd00, transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
  animation: moveBlob1 8s ease-in-out infinite;
}

/* Druhý velký barevný celek - změněn na sytější oranžovou */
.bg-blob-2 {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background: radial-gradient(circle at 70% 60%, #ff7e29, transparent 55%);
  filter: blur(70px);
  opacity: 0.6;
  animation: moveBlob2 10s ease-in-out infinite;
}

/* Třetí velký barevný celek - změněn na zlatavou */
.bg-blob-3 {
  position: absolute;
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  background: radial-gradient(circle at 20% 80%, #ffb347, transparent 65%);
  filter: blur(80px);
  opacity: 0.5;
  animation: moveBlob3 9s ease-in-out infinite;
}

/* Čtvrtý velký barevný celek - přidán nádech světle modré */
.bg-blob-4 {
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(circle at 80% 20%, #ffecd2, transparent 70%);
  filter: blur(50px);
  opacity: 0.6;
  animation: moveBlob4 7s ease-in-out infinite;
}

/* Pátý barevný celek - změněn na sytější žlutou */
.bg-blob-5 {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle at 50% 50%, #ffc107, transparent 75%);
  filter: blur(65px);
  opacity: 0.5;
  animation: moveBlob5 8s ease-in-out infinite;
}

/* Přidán šestý barevný celek - změněno z modré na červenou */
.bg-blob-6 {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  background: radial-gradient(circle at 30% 40%, #ff3333, transparent 80%);
  filter: blur(55px);
  opacity: 0.3;
  animation: moveBlob6 6s ease-in-out infinite;
}

/* Rychlejší a výraznější pohyby přes celou obrazovku */
@keyframes moveBlob1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(25%, 15%);
  }
  50% {
    transform: translate(15%, 30%);
  }
  75% {
    transform: translate(-20%, 25%);
  }
}

@keyframes moveBlob2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-25%, -20%);
  }
  66% {
    transform: translate(-15%, -30%);
  }
}

@keyframes moveBlob3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-20%, 15%);
  }
  40% {
    transform: translate(15%, 30%);
  }
  60% {
    transform: translate(30%, 10%);
  }
  80% {
    transform: translate(20%, -15%);
  }
}

@keyframes moveBlob4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-15%, -25%);
  }
  50% {
    transform: translate(-30%, -10%);
  }
  75% {
    transform: translate(-12%, -35%);
  }
}

@keyframes moveBlob5 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  30% {
    transform: translate(20%, -15%);
  }
  60% {
    transform: translate(-10%, 25%);
  }
  90% {
    transform: translate(25%, 15%);
  }
}

/* Animace pro šestý celek */
@keyframes moveBlob6 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(15%, 20%);
  }
  50% {
    transform: translate(25%, -15%);
  }
  75% {
    transform: translate(-15%, -20%);
  }
}

header {
  text-align: center;
  padding-top: 26px;
  position: relative;
  z-index: 10;
}

.langs {
  margin-bottom: 20px;
}

.langs a {
  display: inline-block;
  font-size: 2em;
  margin: 0 6px;
  padding: 4px;
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
  opacity: 1;
  transition: transform 0.2s ease-in-out;
  will-change: transform;
}

.langs a:hover {
  transform: scale(1.15);
}

.langs a.active {
  border-bottom: 3px solid #4464d6;
  transform: scale(1.1);
}

.logo {
  font-size: 2.8em;
  font-weight: 700;
  color: #4464d6;
  margin: 12px 0 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: logoFloat 4s ease-in-out infinite;
}

/* Jemný float bez rotace */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

.domain {
  font-size: 2.05em;
  color: #ffffff;
  opacity: 1;
  margin-bottom: 12px;
}

main {
  max-width: 500px;
  margin: 40px auto;
  padding: 38px 30px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
  animation: cardFloat 6s ease-in-out infinite;
}

/* Jemný float karty */
@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-icon {
  display: block;
  width: auto;
  max-width: 96px;
  height: auto;
  margin: 0 auto 15px;
  animation: iconBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-icon img {
  width: 100%;
  height: auto;
  max-width: 96px;
  object-fit: contain;
}

/* Jemný bounce bez rotace */
@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

h1 {
  font-size: 1.45em;
  margin: 8px 0 11px;
  text-align: center;
}

.description {
  margin: 0 0 20px;
  text-align: center;
  color: #666;
}

.message {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: messageSlide 0.5s ease-out;
}

@keyframes messageSlide {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.message.success {
  background: rgba(212, 237, 218, 0.9);
  color: #155724;
  border: 1px solid rgba(195, 230, 203, 0.5);
}

.message.error {
  background: rgba(248, 215, 218, 0.9);
  color: #721c24;
  border: 1px solid rgba(245, 198, 203, 0.5);
}

form {
  display: flex;
  flex-direction: column;
}

input[type="email"],
input[type="text"] {
  padding: 12px;
  border-radius: 9px;
  border: 1px solid rgba(187, 187, 187, 0.3);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-size: 1.05em;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #4464d6;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(68, 100, 214, 0.2);
  transform: translateY(-1px);
}

.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #666;
  cursor: pointer;
}

.gdpr-checkbox input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 2px;
  transform: scale(1.2);
}

button {
  padding: 14px;
  font-size: 1.1em;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(45deg, #4464d6, #4fc3f7);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(68, 100, 214, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: buttonGlow 4s ease infinite;
}

/* Tlačítko glow bez rotace */
@keyframes buttonGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(68, 100, 214, 0.4);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.disclaimer {
  font-size: 0.9em;
  color: #888;
  text-align: center;
  margin-top: 26px;
  line-height: 1.4;
}

.counter {
  text-align: center;
  font-size: 0.85em;
  color: #666;
  margin-top: 18px;
}

/* Cookie Consent s glassmorphism */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: cookieSlideUp 0.6s ease-out;
}

@keyframes cookieSlideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  padding: 20px;
}

.cookie-content h3 {
  margin-bottom: 8px;
  color: #333;
}

.cookie-content p {
  margin-bottom: 15px;
  color: #666;
  font-size: 0.9em;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: rgba(68, 100, 214, 0.9);
  color: white;
}

.btn-primary:hover {
  background: rgba(54, 83, 173, 0.9);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(248, 249, 250, 0.8);
  color: #666;
  border: 1px solid rgba(221, 221, 221, 0.5);
}

.btn-secondary:hover {
  background: rgba(233, 236, 239, 0.9);
  transform: translateY(-1px);
}

/* Footer s paralax efektem */
.legal-footer {
  text-align: center;
  padding: 30px 20px 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 100; /* Zvýšen z-index z 10 na 100 */
  backdrop-filter: blur(5px);
}

.legal-links {
  margin-bottom: 10px;
}

.legal-link {
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  font-size: 0.85em;
  transition: all 0.3s ease;
  padding: 6px 12px; /* Zvětšena klikací oblast */
  border-radius: 4px;
  backdrop-filter: blur(5px);
  display: inline-block; /* Přidáno pro lepší kontrolu */
  position: relative;
  z-index: 101; /* Ještě vyšší z-index */
}

.legal-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  /* Odstraněn transform: translateY(-1px); který způsoboval mizení */
}

.separator {
  margin: 0 8px;
  opacity: 0.5;
}

.copyright {
  font-size: 0.8em;
  color: rgba(0, 0, 0, 1);
  opacity: 0.6;
}

/* Právní stránky */
.legal-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-page h1 {
  color: #4464d6;
  border-bottom: 2px solid #4464d6;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.legal-page h2 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-page li {
  margin-bottom: 8px;
}

.warning-box {
  background: rgba(255, 243, 205, 0.9);
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.warning-box p {
  margin: 0;
  font-weight: bold;
  color: #856404;
}

.legal-page a {
  color: #4464d6;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background: rgba(68, 100, 214, 0.9);
  color: white !important;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-link:hover {
  background: rgba(54, 83, 173, 0.9);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 600px) {
  main {
    margin-top: 20px;
    padding: 24px 16px;
  }

  .langs a {
    font-size: 1.8em;
    margin: 0 4px;
  }

  .logo {
    font-size: 2em;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .legal-page {
    margin: 20px;
    padding: 20px;
  }

  .legal-footer {
    padding: 20px 10px 15px;
  }

  .legal-links {
    font-size: 0.8em;
  }

  .separator {
    margin: 0 4px;
  }

  /* Menší pohyby na mobilních zařízeních */
  .bg-blob-1,
  .bg-blob-2,
  .bg-blob-3,
  .bg-blob-4,
  .bg-blob-5 {
    animation-duration: 20s;
  }
}

/* Accessibility: Respektovat prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body {
    background: #f6d365;
  }

  .background-elements {
    display: none;
  }
}

/* Vylepšené animace pro desktop */
@media (min-width: 768px) {
  .langs a:hover {
    transform: translateY(-3px) scale(1.05);
  }

  input[type="email"]:focus,
  input[type="text"]:focus {
    transform: translateY(-2px) scale(1.01);
  }

  button:hover {
    transform: translateY(-3px) scale(1.02);
  }
}

/* Optimalizace pro touch zařízení */
@media (hover: none) and (pointer: coarse) {
  .langs a:hover,
  button:hover,
  .legal-link:hover {
    transform: none;
  }

  .langs a:active,
  button:active {
    transform: scale(0.95);
  }
}

/* Performance optimalizace */
.reduce-animations * {
  animation-duration: 0.1s !important;
  transition-duration: 0.1s !important;
}

.battery-saver * {
  animation: none !important;
  transition: none !important;
}

.battery-saver .background-elements {
  display: none !important;
}

.no-animations * {
  animation: none !important;
}

/* GPU acceleration pro smooth animace */
.hero-icon,
.logo,
main,
.langs a,
button {
  will-change: transform;
  transform: translateZ(0);
}
