/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color, #121212);
  color: var(--text-color, #eee);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Přepínání tmavého a světlého režimu pomocí CSS proměnných --- */

:root {
  /* Výchozí tmavý režim */
  --bg-color: #121212;
  --text-color: #eee;
  --accent-color: #ff7e5f;
  --accent-light: #feb47b;
  --text-muted: #ffd1cc;
  --text-highlight: #ffd1dc;
  --shadow-color: rgba(255, 126, 95, 0.6);
  --nav-link-color: #ffbca3;
  --nav-link-hover-color: #fff;
  --toggle-bg: transparent;
  --toggle-color: #ff7e5f;
}

:root[data-theme='light'] {
  --bg-color: #fefefe;
  --text-color: #222222;
  --accent-color: #ff7e5f;
  --accent-light: #feb47b;
  --text-muted: #666666;
  --text-highlight: #ff7e5f;
  --shadow-color: rgba(255, 126, 95, 0.3);
  --nav-link-color: #555555;
  --nav-link-hover-color: #000000;
  --toggle-bg: #ff7e5f;
  --toggle-color: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.8);
  padding: 1rem 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-color);
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.logo-text {
  font-weight: 900;
  font-size: 2.5rem;
  user-select: none;
  white-space: nowrap;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
}

.qr-color {
  color: #00FF00; /* Zelená pro QR */
}
.ping-color {
  color: #FFFFFF; /* Bílá pro ping */
}
.l-color {
  color: #00FF00; /* Zelená pro L */
}

/* Navigation */
.nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-list li a,
.nav-list li button {
  color: var(--nav-link-color);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-list li a:hover,
.nav-list li a:focus,
.nav-list li button:hover,
.nav-list li button:focus {
  color: var(--nav-link-hover-color);
  border-bottom-color: var(--accent-color);
  outline: none;
}

/* Přepínač tématu - styl tlačítka */
#toggle-theme {
  background: var(--toggle-bg);
  color: var(--toggle-color);
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#toggle-theme:hover,
#toggle-theme:focus {
  background: var(--accent-light);
  color: #fff;
  outline: none;
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
#hamburger span {
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}
#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.active span:nth-child(2) {
  opacity: 0;
}
#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto 6rem;
  padding: 0 3vw;
  gap: 3rem;
  min-height: 60vh;
  color: var(--text-color);
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-shadow: 0 0 12px var(--accent-color);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: white;
  padding: 1.25rem 3rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 12px 25px var(--shadow-color);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  user-select: none;
  text-transform: uppercase;
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 16px 35px var(--shadow-color);
  transform: translateY(-5px);
  outline: none;
}

.hero-image {
  flex: 1;
  max-width: 500px;
  filter: drop-shadow(0 0 20px var(--accent-color));
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* Tiles */
.tiles-section {
  padding: 0 3vw 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tiles-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
  color: var(--text-highlight);
  text-shadow: 0 0 8px var(--accent-color);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2.5rem;
}

.tile {
  background: rgba(255 255 255 / 0.1);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 8px 30px var(--shadow-color);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
  will-change: transform;
  position: relative;
  outline-offset: 6px;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 50px var(--shadow-color);
  outline: none;
}

.tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255 255 255 / 0.3);
  transition: transform 0.6s ease;
  border-radius: 24px 24px 0 0;
  display: block;
}

.tile:hover img {
  transform: scale(1.1);
}

.tile p {
  padding: 1.5rem 2rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 0 8px var(--accent-color);
  margin: 0;
}

.tile p span {
  font-size: 2rem;
  font-weight: 900;
  color: #ffccbb;
  transition: transform 0.3s ease;
}

.tile:hover p span {
  transform: translateX(8px);
}

/* Why section centering */
.why-section {
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  text-align: center;
  color: var(--text-highlight);
}
.why-section h2 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  color: var(--accent-color);
  text-shadow: 0 0 8px var(--accent-color);
}
.why-section ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: var(--text-muted);
}
.why-section ul li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}
.why-section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 900;
}

/* FAQ */
.faq-section {
  max-width: 720px;
  margin: 3rem auto 6rem;
  padding: 0 1rem;
  color: var(--text-highlight);
}
.faq-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 10px var(--accent-color);
}
.faq-item {
  border-bottom: 1px solid rgba(255 255 255 / 0.2);
  padding: 1.25rem 0;
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffb3a7;
  transition: color 0.3s ease;
}
.faq-question:hover,
.faq-question:focus {
  color: var(--text-color);
  outline: none;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-weight: 400;
}
.faq-answer p {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}
.faq-question.active + .faq-answer {
  max-height: 400px;
}

/* Contact */
.contact-section {
  max-width: 600px;
  margin: 0 auto 6rem;
  padding: 0 1rem;
  text-align: center;
  color: var(--text-highlight);
}
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
  font-weight: 900;
  text-shadow: 0 0 10px var(--accent-color);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact-form label {
  font-weight: 700;
  text-align: left;
  color: #ffb3a7;
  text-shadow: 0 0 5px var(--accent-color);
}
.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1.25rem;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255 255 255 / 0.3);
  background: rgba(255 255 255 / 0.1);
  color: var(--text-color);
  transition: border-color 0.3s ease;
  font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255 255 255 / 0.6);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  background: rgba(255 255 255 / 0.15);
}
.contact-form button {
  background: var(--accent-color);
  color: white;
  font-weight: 900;
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(255 126 95, 0.6);
}
.contact-form button:hover,
.contact-form button:focus {
  background: #ff967f;
  box-shadow: 0 12px 30px rgba(255 126 95, 0.9);
  outline: none;
}
.contact-info p {
  margin: 0.6rem 0;
  color: #ffb3a7;
  font-size: 1.1rem;
  text-shadow: 0 0 5px var(--accent-color);
  user-select: none;
}
.contact-info .email,
.contact-info .phone {
  unicode-bidi: bidi-override;
  direction: rtl;
  pointer-events: none;
  letter-spacing: 0.25em;
  font-family: monospace;
}

/* Footer */
.footer {
  /*
    Gradient začíná barvou pozadí body (--bg-color, což je #121212 v tmavém režimu)
    a plynule přechází do světlejší šedé (např. #333333 nebo #444444).
  */
  background: linear-gradient(to bottom, var(--bg-color), #333333); /* Začíná #121212, přechází do tmavší šedé */
  color: white; /* Barva textu v patičce */
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: none; /* Odstraněno text-shadow pro hladší vzhled */
}

.footer nav a {
  /* Odkazy zůstanou viditelné na pozadí patičky */
  color: var(--nav-link-hover-color, #fff); /* Použijeme světlou barvu pro odkazy */
  margin: 0 0.7rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer nav a:hover,
.footer nav a:focus {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero-content,
  .hero-image {
    max-width: 100%;
  }
  .hero-image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 64px;
    right: 0;
    background: linear-gradient(135deg, var(--accent-color), #833ab4);
    flex-direction: column;
    width: 220px;
    height: calc(100vh - 64px);
    padding-top: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 12px rgba(255, 65, 108, 0.6);
    border-radius: 0 0 0 20px;
    z-index: 105;
  }

  /* Pravidlo pro zmenšení nadpisu <h1> v hero sekci na mobilu */
  .hero h1 {
    font-size: 2.2rem; /* Tato hodnota pro tablety a větší telefony */
    line-height: 1.2;
  }

  /* Pravidlo pro zmenšení loga v mobilní verzi */
  .logo-text {
    font-size: 1.8rem; /* Upravte tuto hodnotu pro mobilní zařízení */
  }

  .nav-list.active {
    transform: translateX(0);
  }
  .nav-list li a,
  .nav-list li button {
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    display: block;
  }
  #hamburger {
    display: flex;
  }
  #toggle-theme {
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
  }
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal.show {
  display: flex;
}
.modal-content {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  color: var(--text-color);
  box-shadow: 0 0 30px var(--shadow-color);
  position: relative;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: color 0.3s ease;
}
.modal-close:hover,
.modal-close:focus {
  color: var(--text-highlight);
  outline: none;
}