:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --muted: #ede7df;
  --text: #3a312b;
  --text-muted: #6e6258;
  --primary: #d6b97b;
  --accent: #bfa372;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  --radius: 14px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}

.logo {
    width: 50px; /* velikost obrázku */
    height: 50px; /* čtvercový tvar */
    object-fit: cover; /* zajištění, že obrázek nebude deformován */
    margin-right: 10px; /* mezera mezi obrázkem a nadpisem */
}

html {
  scroll-behavior: smooth;
}
img {
  width: 100%;
  border-radius: var(--radius);
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.section {
  padding: 80px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--muted);
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 1.3rem;
}
.brand span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.main-nav a:hover {
  background: var(--muted);
}

.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--text);
  height: 2px;
  width: 26px;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-label span::before {
  top: -7px;
}
.nav-toggle-label span::after {
  top: 7px;
}

/* Hero */
.section-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.section-hero p {
  max-width: 800px;
}

/* Table */
.table-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.services-table {
  width: 100%;
  border-collapse: collapse;
}
.services-table th,
.services-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--muted);
  text-align: left;
}
.services-table th {
  background: var(--primary);
  color: #fff;
}
.services-table tr:hover {
  background: #f7f3ec;
}

/* Carousel */
.carousel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  overflow: hidden;
}
.carousel input[type="radio"] {
  display: none;
}
.slides {
  display: grid;
  grid-template-columns: 100%;
}
.slides figure {
  grid-area: 1/1;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#slide-1:checked ~ .slides figure:nth-child(1),
#slide-2:checked ~ .slides figure:nth-child(2),
#slide-3:checked ~ .slides figure:nth-child(3),
#slide-4:checked ~ .slides figure:nth-child(4),
#slide-5:checked ~ .slides figure:nth-child(5) {
  opacity: 1;
}

.nav-arrows label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-arrows label:hover {
  background: var(--accent);
  color: #fff;
}

.nav-arrows .prev {
  left: 20px;
}
.nav-arrows .next {
  right: 20px;
}
.nav-arrows .s2,
.nav-arrows .s3,
.nav-arrows .s4,
.nav-arrows .s5 {
  display: none;
}
#slide-2:checked ~ .nav-arrows .s2,
#slide-3:checked ~ .nav-arrows .s3,
#slide-4:checked ~ .nav-arrows .s4,
#slide-5:checked ~ .nav-arrows .s5 {
  display: block;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 26px;
}
.dots label {
  cursor: pointer;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
#slide-1:checked ~ .dots label[for="slide-1"],
#slide-2:checked ~ .dots label[for="slide-2"],
#slide-3:checked ~ .dots label[for="slide-3"],
#slide-4:checked ~ .dots label[for="slide-4"],
#slide-5:checked ~ .dots label[for="slide-5"] {
  opacity: 1;
}

/* Contact */
.section-contact .contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 24px;
}
.contact-card,
.map-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.map-card iframe {
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  text-align: center;
  border-top: 1px solid var(--muted);
  padding: 24px 0;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    display: none;
    border-bottom: 1px solid var(--muted);
  }
  .main-nav a {
    padding: 14px 20px;
    border-radius: 0;
  }
  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }
  .section {
    padding: 64px 0;
  }
  .section-contact .contact-grid {
    grid-template-columns: 1fr;
  }
}

.service-category {
  margin-top: 60px;
  font-size: 1.6rem;
  color: var(--accent);
  border-left: 6px solid var(--primary);
  padding-left: 10px;
}

.service-cards {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.service-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--muted);
  font-weight: 500;
}

.service-card ul li:first-child {
  border-top: none;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 14px 30px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border 0.3s;
  margin-right: 20px;
  border: 2px solid transparent; /* Transparentní rámeček pro neaktivní tab */
  font-size: 1.1rem;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary); /* Aktivní tab má bezový rámeček */
}

.tab-btn:hover {
  background: #333;  /* Tmavší pozadí při hoveru */
  color: #fff; /* Text bílý při hoveru */
  border-color: #000; /* Černý rámeček při hoveru */
}

/* ===== TAB CONTENT ===== */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== SERVICE CARDS ===== */
.service-cards {
  display: grid;
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.service-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid var(--muted);
  font-weight: 500;
}

.service-card ul li:first-child {
  border-top: none;
}

.carousel .slides figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel .slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}


/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8); /* Dark background */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure it's on top */
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* Maintain aspect ratio */
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  cursor: zoom-out; /* Indicate that image can be clicked to close */
}


/* Vylepšení pro desktopové rozlišení (např. nad 860px) */
@media (min-width: 861px) {
  .service-cards {
    /* Změní rozložení na mřížku se dvěma sloupci, pokud je dostatek místa */
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Styly pro navigační tlačítka v Lightboxu */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); /* Poloprůhledné pozadí */
  color: white;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10000; /* Nad obrázkem */
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

/* Umístění šipek */
.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

/* Řeší, že navigační taby v sekci Služby přetékají na mobilu */
.tab-list {
  display: flex;
  overflow-x: auto; 
  padding-bottom: 10px; 
  margin-bottom: 20px;
  
  white-space: nowrap; /* Tlačítka zůstanou v jedné řadě */
  width: 100%; /* Zajistí, že flex kontejner neexpanduje mimo rodiče */
  
  /* Skryje standardní scrollbar pro čistší vzhled na některých zařízeních */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Skrytí scrollbaru pro Chrome/Safari/Opera */
.tab-list::-webkit-scrollbar {
  display: none;
}

/* Zajištění správného vzhledu tlačítek */
.tab-list .tab-btn {
    flex-shrink: 0; /* Zabrání zmenšování tlačítek */
    margin-right: 10px; /* Malá mezera mezi tlačítky */
}