:root {
  --orange: #F97316;
  --orange-dark: #EA580C;
  --dark: #1F2937;
  --light: #F3F4F6;
  --white: #FFFFFF;
  --shadow: 0 10px 25px rgba(0, 0, 0, .08);
  --insta: #E1306C;
}

/* === ZÁKLAD === */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--white);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.modal-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #444;
}

.modal-body li {
  margin-bottom: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section.light {
  background: var(--light);
}

/* === Loader === */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 9999;
  transition: opacity .4s ease, visibility .4s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid var(--light);
  border-top-color: var(--orange);
  animation: spin 1s linear infinite;
  position: relative;
}

.loader-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249, 115, 22, .12);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.1);
  }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all .3s ease;
  padding: 10px 20px;
}

.navbar.transparent {
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.navbar.solid {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--dark);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Logo */
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar .brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand .name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.brand .name .subtitle {
  font-size: 15px;
  color: var(--orange-dark);
  font-weight: 700;
  margin-bottom: -2px;
}

.brand .name strong {
  color: var(--orange);
  font-size: 1.4em;
  font-weight: 800;
  line-height: 1.1;
}

.brand .name small {
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 600;
  margin-top: -1px;
}

/* Barvy v transparentním módu */
.navbar.transparent .brand .name .subtitle,
.navbar.transparent .brand .name small {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.navbar.transparent .brand .name strong {
  color: var(--orange);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Menu Desktop */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  font-weight: 500;
  font-size: 16px;
  color: inherit;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange);
}

/* INSTAGRAM IKONA V MENU (PC) */
.nav-ig {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav-ig svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-ig:hover {
  color: var(--insta) !important;
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.1);
}

/* Telefon */
.phone {
  font-weight: 700;
  color: var(--orange-dark);
  white-space: nowrap;
}

.navbar.transparent .phone {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background-color: #fff;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: var(--orange) !important;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: var(--orange) !important;
}

.navbar.solid .hamburger span {
  background-color: var(--dark);
}

/* === MOBILNÍ OPRAVY (NAVBAR) === */
@media (max-width: 991px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: block !important;
  }

  .navbar .container {
    padding: 5px 0;
    justify-content: space-between;
  }

  .brand {
    flex: 1;
    max-width: 80%;
    overflow: hidden;
  }

  .navbar .brand img {
    height: 50px;
  }

  .brand .name .subtitle {
    font-size: 11px;
  }

  .brand .name strong {
    font-size: 1.1em;
  }

  .brand .name small {
    font-size: 10px;
    display: block;
    white-space: normal;
    line-height: 1.4;
  }
}

/* === MOBILNÍ MENU === */
.mobile-menu {
  display: block;
  position: fixed;
  inset: 0;
  background: var(--white);
  padding: 100px 24px 40px;
  z-index: 900;
  text-align: center;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-menu.active,
.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 18px;
  color: var(--dark);
}

.mobile-menu a:hover {
  color: var(--orange);
}

.mobile-menu a.mobile-ig {
  color: var(--insta);
  border-bottom: none;
  margin-top: 10px;
  font-weight: 700;
}

.mobile-menu a.mobile-ig svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-menu-services {
  font-size: 13px;
  color: var(--orange-dark);
  font-weight: 600;
  padding: 8px 0 14px;
  border-bottom: 1px solid #eee;
  text-align: center;
}


/* === HERO SEKCE === */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.5s ease, transform 12s ease;
  animation: kenburns 22s ease-in-out infinite alternate;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 40%, rgba(249, 115, 22, 0.15) 85%, rgba(0, 0, 0, 0));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #fff;
  z-index: 5;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  animation: heroText 1.2s ease forwards;
}

@keyframes heroText {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.75);
  border-bottom: 4px solid var(--orange);
  display: inline-block;
  padding-bottom: 8px;
  margin: 0;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-check {
  color: var(--orange);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f3f3f3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

/* Tlačítka */
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
  transition: transform 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-3px);
  background: var(--orange-dark);
}

/* Hero Controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.hero-dots {
  display: flex;
  gap: 12px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.hero-dots button.active {
  background: var(--orange);
  transform: scale(1.4);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  width: 24px;
  border-radius: 10px;
}

.hero-prev,
.hero-next {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 20px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-prev:hover,
.hero-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.hero-prev:active,
.hero-next:active {
  transform: translateY(0);
}

/* === OSTATNÍ SEKCE === */
.heading {
  font-size: 32px;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-top: 8px;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}

.about-text strong {
  color: var(--orange-dark);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bullets .bullet {
  background: var(--white);
  border-left: 5px solid var(--orange);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .bullets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bullets {
    grid-template-columns: 1fr;
  }
}

/* === SLUŽBY === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  display: block;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.55);
}

.service-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  font-size: 1.3rem;
  font-weight: 600;
  z-index: 2;
}

/* === CTA === */
.cta {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fff 30%, rgba(249, 115, 22, 0.1) 100%);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-inline {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === KONTAKT & FORMULÁŘ === */
.grid.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

@media (max-width: 768px) {
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

#formStatus {
  margin-top: 15px;
  font-weight: 600;
  display: none;
}

/* --- VLASTNÍ CHECKBOX A GDPR --- */
.form-gdpr-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #555;
}

.custom-checkbox-container input {
  display: none;
}

.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

/* Vlastní čtvereček */
.checkmark {
  width: 20px;
  height: 20px;
  background-color: #eee;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.custom-checkbox-container input:checked~.checkmark {
  background-color: var(--orange);
  border-color: var(--orange);
}

/* Fajfka */
.checkmark:after {
  content: "";
  display: none;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.custom-checkbox-container input:checked~.checkmark:after {
  display: block;
}

.custom-checkbox-container:hover .checkmark {
  border-color: var(--orange);
}

.gdpr-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--orange);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.gdpr-link:hover {
  color: var(--orange-dark);
}


/* === FOOTER (OPRAVENÝ NA FLEXBOX) === */
footer {
  padding: 40px 0 60px;
  /* Zvětšený spodní okraj kvůli mobilní liště */
  background: var(--light);
  margin-top: 50px;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* Vytvoří úhledné rovnoměrné mezery mezi všemi prvky pod sebou */
}

footer .copy {
  opacity: .8;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* Instagram v patičce (zmenšené a vycentrované) */
.footer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  padding: 10px 24px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

.footer-ig:hover {
  color: var(--insta);
  border-color: var(--insta);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 48, 108, 0.15);
  background: #fff;
}

.footer-ig svg {
  width: 20px;
  height: 20px;
  display: block;
}

footer .author {
  font-size: 13px;
  color: #888;
  font-weight: 500;
  margin: 0;
}

footer .author a {
  color: inherit;
  text-decoration: underline;
}

footer .author a:hover {
  color: var(--orange);
}

/* === SPODNÍ LIŠTA A PLOVOUCÍ TLAČÍTKA === */
.quick-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9998;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.quick-contact .item {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.quick-contact .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* Na mobilu zobrazit jen adresu a telefon */
@media (max-width: 768px) {
  .quick-contact {
    gap: 10px;
  }

  .quick-contact .item {
    font-size: 12px;
  }

  .quick-contact .item--name,
  .quick-contact .item--email {
    display: none;
  }
}

.call-floating {
  position: fixed;
  right: 20px;
  z-index: 9999;
  bottom: calc(60px + env(safe-area-inset-bottom, 20px));
  background: #4CAF50;
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s;
}

.call-floating:hover {
  transform: scale(1.1);
}

#toTop {
  position: fixed;
  right: 27px;
  bottom: 140px;
  z-index: 850;
  background: var(--orange);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

#toTop.show {
  opacity: 1;
  visibility: visible;
}

/* === COOKIE LIŠTA (ID #consent-box) === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #fff;
  padding: 20px;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--orange);
  display: flex;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

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

.btn-accept,
.btn-decline {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

.btn-accept {
  background: var(--orange);
  color: #fff;
}

.btn-accept:hover {
  background: var(--orange-dark);
}

.btn-decline {
  background: #eee;
  color: #555;
}

.btn-decline:hover {
  background: #ddd;
}

/* === MOBILNÍ UPRAVY PRO COOKIE LIŠTU (KOMPAKTNÍ VERZE) === */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 15px;
    /* Menší padding */
    padding-bottom: 85px;
    /* Místo pro telefon */
  }

  .cookie-content {
    flex-direction: column;
    text-align: left;
    gap: 10px;
  }

  .cookie-content p {
    font-size: 12px;
    /* Menší písmo */
    line-height: 1.3;
  }

  .cookie-buttons {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .btn-accept,
  .btn-decline {
    flex: 1;
    /* Tlačítka vedle sebe */
    padding: 8px 0;
    /* Tenčí tlačítka */
    font-size: 13px;
    text-align: center;
  }
}

/* === GDPR MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: #fff;
  max-width: 600px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
}

.close-modal:hover {
  color: var(--orange);
}

.modal-content h3 {
  margin-top: 0;
  color: var(--orange-dark);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-size: 20px;
}

.modal-body h4 {
  margin: 25px 0 8px;
  font-size: 16px;
  color: var(--dark);
  font-weight: 700;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 10px;
}

/* === GALERIE (VRÁCENO ZPĚT) === */
body.galerie-page {
  background: var(--white);
}

.gallery-main {
  margin-top: 100px;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 30px auto 60px;
  max-width: 900px;
}

.filter-btn {
  padding: 12px 26px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  background: var(--white);
  color: #555;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
  color: var(--orange-dark);
  border-color: rgba(249, 115, 22, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
  border-color: transparent;
  transform: translateY(-2px);
}

.filter-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, .5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.filter-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 0.5;
  }

  100% {
    transform: scale(40) translate(-50%, -50%);
    opacity: 0;
  }
}

.gallery-grid {
  columns: 3 280px;
  column-gap: 18px;
  padding: 20px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(249, 115, 22, 0.85), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-item::before {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 40px;
  color: #fff;
  opacity: 0;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gallery-item:hover::after {
  opacity: 0.8;
}

.gallery-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 150px;
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.6;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 10005;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(90deg);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 2;
  user-select: none;
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-prev:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) translateX(-6px);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.lightbox-next:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) translateX(6px);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

@media (max-width: 768px) {
  .gallery-grid {
    columns: 2 160px;
    padding: 10px;
  }

  .gallery-filter {
    gap: 8px;
    margin: 20px auto 30px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1 100%;
  }
}

/* === OPRAVA TLAČÍTKA S AUTEM === */
.submit-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  min-width: 180px;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 1. Základní stav (Text viditelný) */
.submit-btn .btn-text {
  opacity: 1;
  transition: opacity 0.2s;
  white-space: nowrap;
}

/* 2. Loading stav (Text zmizí, auto se objeví) */
.submit-btn.loading .btn-text {
  opacity: 0;
}

.truck-container {
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
  width: 50px !important;
  height: 35px !important;
  opacity: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.truck-icon {
  width: 100%;
  height: auto;
  color: #fff;
}

.submit-btn.loading .truck-container {
  opacity: 1;
  animation: driveTruck 2.5s linear infinite;
}

@keyframes driveTruck {
  0% {
    left: -60px;
  }

  100% {
    left: 120%;
  }
}

/* 3. Success stav (Zelená, ikona fajfky) */
.success-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
}

.success-icon svg {
  width: 24px;
  height: 24px;
}

.submit-btn.success .btn-text {
  opacity: 0;
}

.submit-btn.success .truck-container {
  opacity: 0;
  display: none;
}

.submit-btn.success .success-icon {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s;
}

.submit-btn.success {
  background: #10B981 !important;
  border-color: #10B981;
  pointer-events: none;
}