/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* VARIABLES */
:root {
  --accent: #42a5f5;
  --border: rgba(0,0,0,0.15);
}

/* BASE */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* LIGHT MODE */
body.light {
  background-color: #f4f4f4; /* Fallback proti blikání */
  background-image: url('img/hero-light.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #333;
}

/* DARK MODE */
body.dark {
  background-color: #0d0d0d; /* Fallback proti blikání */
  background-image: url('img/hero-dark.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  color: #f4f4f4;
}

/* HEADER */
.main-header {
  position: static;
  width: 100%;
  padding: 0 20px;
  height: 140px;
  display: flex;
  align-items: center;
  background: transparent;
}

.header-inner {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 140px;
}

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav ul li a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: 0.2s;
}

.nav ul li a:hover {
  opacity: 0.7;
}

.nav ul li a.active {
  font-weight: bold;
  border-bottom: 2px solid var(--accent);
}

/* NAV ACTIONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cta-small {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 900px) {
  .main-header {
    height: 150px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 260px;
    background: #0d47a1;
    flex-direction: column;
    padding: 90px 20px;
    z-index: 999;
    opacity: 0;
    transform: translateX(40px);
    transition: right 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  }

  .nav.open {
    right: 0;
    opacity: 1;
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .nav ul li a {
    color: #fff !important;
    font-size: 1.1rem;
  }

  .nav-actions {
    flex-direction: column;
    margin-top: 25px;
  }

  .logo img {
    height: 150px;
  }
}

@media (max-width: 600px) {
  .main-header {
    height: 140px;
  }

  .logo img {
    height: 140px;
  }
}

/* CONTENT */
.content {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

/* HERO (homepage only) */
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  max-width: 600px;
  text-align: left;
}

.hero-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* SERVICES (homepage only) */
.services h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* DARK MODE CARDS */
body.dark .card {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* CTA BOX */
.cta-box {
  margin: 50px auto;
}

.cta-box .btn {
  font-size: 1.1rem;
  padding: 14px 30px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #1565c0;
  transform: scale(1.05);
}

body.dark .btn {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
}

body.dark .btn:hover {
  background: rgba(255,255,255,0.45);
  color: #0d47a1;
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding: 25px 20px;
  margin-top: 40px;
}

body.light .footer {
  background: #f2f2f2;
  color: #333;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  columns: 2;
}

@media (max-width: 600px) {
  .footer-section ul {
    columns: 1;
    text-align: center;
  }
}

/* ANIMACE */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------
   CENÍK – OPRAVENÉ STYLY
----------------------------------------- */

.pricing-section {
  margin: 60px auto;
  text-align: center;
}

.pricing-section h2 {
  margin-bottom: 25px;
  font-size: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.pricing-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.35s ease;
  text-align: left;

  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeUp 0.7s ease forwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

body.dark .pricing-card {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.pricing-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-old {
  text-decoration: line-through;
  color: #888;
  font-size: 0.95rem;
}

body.dark .pricing-old {
  color: #bbb;
}

.pricing-new {
  font-size: 1.4rem;
  font-weight: bold;
  color: #0d47a1;
  margin: 5px 0 10px;
}

body.dark .pricing-new {
  color: #42a5f5;
}

.pricing-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* COUNTDOWN */
.countdown-box {
  text-align: center;
  margin: 40px auto;
  padding: 25px;
  background: rgba(66,165,245,0.1);
  border-radius: 12px;
  max-width: 500px;
}

#countdown {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0d47a1;
  animation: countdownPulse 1s ease-in-out infinite;
}

body.dark #countdown {
  color: #42a5f5;
}

@keyframes countdownPulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 10px;

  opacity: 0;
  transform: scale(0.8);
  animation: badgePop 0.5s ease forwards;
}

@keyframes badgePop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.badge-sale {
  background: #e53935;
  color: #fff;
}

.badge-popular {
  background: #ffb300;
  color: #000;
  margin-right: 6px;
}

/* FEATURED CARD */
.pricing-card.featured {
  border: 2px solid #ffb300;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transform: translateY(-6px);
  position: relative;
}

body.dark .pricing-card.featured {
  border-color: #ffca28;
  box-shadow: 0 8px 20px rgba(255,255,255,0.15);
}

.pricing-card.featured::before {
  content: "Doporučujeme";
  position: absolute;
  top: -14px;
  right: 20px;
  background: #ffb300;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 999px;
}

body.dark .pricing-card.featured::before {
  background: #ffca28;
  color: #000;
}

/* CTA BUTTON INSIDE CARD */
.pricing-card .btn {
  display: inline-block;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

.pricing-card .btn:hover {
  transform: scale(1.05);
}