/* -------------------
   ZÁKLADNÍ NASTAVENÍ
   -------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif;
}

:root {
  --primary-color: #ff715b;
  --primary-hover: #ff8a7a;
  --secondary-color: #1d2222;
  --color-white: #ffffff;
  --color-brown: #9b8b80;
  --color-muted: #6b5e55; /* text na světlém pozadí, kontrast > 4,5:1 */
  --color-light: #f7f4f3;

  --font-main: "Raleway", sans-serif;
  --font-serif: "Playfair Display", serif;

  --radius-lg: 30px;
  --content-width: 1076px; /* šířka karet nabídky, stejně široká je karta O mně i mapa */
  --page-top: 40px; /* odsazení nadpisu od menu na všech podstránkách */
  --radius-sm: 8px;
  --shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-light);
  color: var(--secondary-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Patička vždy na spodním okraji okna, i na krátkých stránkách (Ceník…) */
#footer-placeholder {
  margin-top: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  height: 100%;
}

.main-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.main-title h1,
.main-title h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: 400;
}

.main-title p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 300;
}

.accent-title {
  font-family: var(--font-serif);
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  word-spacing: 3px;
  line-height: 40px;
}

.subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 25px;
}

/* -------------------
       HORNÍ MENU
   -------------------*/

.navbar {
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

body.home .navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

body.home .nav-links a {
  color: var(--color-white);
}

body.subpage .navbar {
  position: relative;
  background: var(--color-white);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Běžné odkazy v menu na podstránkách jsou šedé/hnědé (kromě tlačítka) */
body.subpage .nav-links a:not(.btn-primary) {
  color: var(--color-muted);
  font-weight: 500;
}

/* Popisek "Nabídka služeb" vypadá stejně jako ostatní odkazy */
.dropdown-trigger > label {
  display: inline-block;
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-trigger > label::after {
  content: " ▾";
  font-size: 0.8rem;
}

body.subpage .dropdown-trigger > label {
  color: var(--color-muted);
  font-weight: 500;
}

/* Aktivní stránka v menu (třídu přidává main.js) */
body .nav-links a.active:not(.btn-primary),
body .dropdown-trigger.has-active > label {
  color: var(--primary-color);
  font-weight: 500;
}

/* Viditelné ohraničení při ovládání klávesnicí */
.nav-links a:focus-visible,
.dropdown-trigger > label:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Rozbalovací menu (dropdown) na podstránkách */
body.subpage .dropdown-menu {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Šipka nad menu na bílém pozadí podstránek (otočený čtverec s okrajem) */
body.subpage .dropdown-menu::before {
  top: -7px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-top-left-radius: 3px;
  background: var(--color-white);
  transform: rotate(45deg);
}

body.subpage .dropdown-menu li a {
  color: var(--color-muted);
}

body.subpage .dropdown-menu li a:hover {
  background: var(--color-light);
  color: var(--primary-color);
}

.nav-links ul {
  color: var(--secondary-color);
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  transform: translateY(-2px);
}

/* -------------------
        HAMBURGER
   -------------------*/

#menu-check,
.hamburger {
  display: none;
}

/* -------------------
      DROPDOWN MENU
   -------------------*/

.dropdown-trigger {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  list-style: none;
  padding: 10px 0;
  min-width: 180px;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 1000;
  display: block !important;
  box-shadow: none;
}

.dropdown-trigger:hover .dropdown-menu,
.dropdown-trigger:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(20px);
}

.dropdown-menu li a {
  color: var(--color-white);
  padding: 12px 20px;
  display: block;
  font-size: 0.95rem;
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* Neviditelný "most" přes mezeru, aby menu nezmizelo při přejezdu myší */
.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: calc(50% - 10px);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(255, 255, 255, 0.15);
}

/* -------------------
        BUTTON
   -------------------*/
.btn-primary {
  display: inline-block;
  font-weight: 500;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--color-white);
  text-decoration: none;
  border-radius: var(--radius-lg);
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

button.btn-primary,
input[type="submit"].btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
}

/* -------------------
          HERO
   -------------------*/

.hero {
  position: relative;
  height: 80vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 70vh;
}

.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("foto.png") no-repeat center center/cover;
  z-index: -1;
}

/* Video na pozadí hero (vlastní soubor video/hero.mp4). Fotka hero-bg je záloha. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* lehké ztmavení, aby bílý text zůstal čitelný */
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.hero-video.is-playing {
  opacity: 1;
}

.glass-panel {
  width: 45%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-serif);
  color: var(--color-white);
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 35px;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 200;
  color: var(--color-white);
  letter-spacing: 1px;
  margin-bottom: 2.5rem;
}

/* -------------------
        NABÍDKA
   -------------------*/

.services-section {
  padding: 80px 0 40px;
}

.services-section .main-title {
  margin-bottom: 50px;
}

.services-section .main-title h1,
.services-section .main-title h2 {
  margin-bottom: 0;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  max-width: var(--content-width);
  margin: 0 auto;
}

.service-card {
  perspective: 1000px;
  height: 420px;
  flex: 0 1 340px;
  min-width: 320px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card-inner .accent-title {
  color: var(--color-white);
}

.service-icon {
  height: 80px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 80px;
  height: auto;
}

.service-card p {
  color: var(--secondary-color);
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 300;
  flex-grow: 1;
  text-align: center;
}

@media (hover: hover) {
  .service-card:hover .service-card-inner {
    transform: rotateY(180deg);
  }
}

/* Otočení klávesnicí (Tab) nebo klepnutím na dotykovém zařízení (main.js) */
.service-card:focus-within .service-card-inner,
.service-card.is-flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-shadow: var(--shadow);
}

.service-card-front {
  /* fotka se nastavuje v HTML přes --card-img, tmavý přechod je tady */
  background-image:
    linear-gradient(
      to top,
      rgba(29, 34, 34, 0.88) 0%,
      rgba(29, 34, 34, 0.3) 55%,
      rgba(29, 34, 34, 0.45) 100%
    ),
    var(--card-img);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(29, 34, 34, 0.18);
}

.service-card-front::after {
  content: "Zjistit více →";
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

.service-card-front .service-icon {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 68px;
  height: 68px;
  margin: 0;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-card-front .service-icon img {
  width: 36px;
}

.service-card-front .accent-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.service-card-back {
  background-color: var(--color-light);
  color: var(--secondary-color);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.service-card-back p {
  font-weight: 300;
  margin-bottom: 20px;
  flex-grow: 0;
}

.service-card-back .btn-primary {
  margin-top: 10px;
  align-self: center;
  width: fit-content;
}

.service-card-back {
  background-color: var(--color-white);
  box-shadow: 0 20px 40px rgba(29, 34, 34, 0.18);
  padding: 36px;
}

.service-card-back p {
  font-size: 0.98rem;
  line-height: 1.7;
}

/* -------------------
      DETAIL SLUŽEB
   -------------------*/

.service-detail {
  padding: var(--page-top) 0 100px;
  background-color: var(--color-white);
}

.service-box {
  display: flex;
  background-color: var(--color-light);
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 60px;
}

.service-box.reverse {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-content {
  flex: 1;
  padding: 35px;
}

.service-content li {
  color: var(--secondary-color);
  line-height: 1.5;
  margin: 5px;
  margin-left: 30px;
  font-weight: 300;
}

.service-image {
  flex: 1;
}

.service-image img {
  width: 100%;
  border-radius: 30px 30px 0 0;
  object-fit: cover;
}

.service-button {
  text-align: center;
  margin-top: 60px;
}

.animate-on-scroll .service-card {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.is-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.is-visible .service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.animate-on-scroll.is-visible .service-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* -------------------
        KONTAKT
   -------------------*/

.contact-section {
  padding: var(--page-top) 0 0 0;
  background-color: var(--color-white);
  color: var(--secondary-color);
}

.contact-center-box {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 60px;
}

.contact-main-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 960px;
  width: 100%;
}

.contact-text-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
}

.contact-icon-img {
  width: 18px;
  height: 18px;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-weight: 300;
}

.hours-list {
  max-width: 280px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 300;
}

.contact-map-column {
  flex: 1;
  height: 340px;
  overflow: hidden;
  padding: 0;
  border: none;
}

.contact-map-column iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: var(--radius-lg);
}

.form-wrapper {
  background-color: var(--color-light);
  display: flex;
  padding: 80px 0;
  text-align: center;
}

.contact-form {
  max-width: 750px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  flex: 1;
  padding: 18px 25px;
  border: none;
  border-radius: 30px;
  background-color: #e9e2de;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form .btn-primary {
  padding: 14px 44px;
}

.contact-form textarea {
  width: 100%;
  margin-bottom: 30px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  background-color: var(--color-white);
}

.map-section {
  width: 100%;
  line-height: 0;
  padding: 70px 20px 80px;
}

.map-container {
  max-width: var(--content-width);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(29, 34, 34, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 380px;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.map-container iframe:hover {
  filter: grayscale(0%);
}

/* -------------------
        CENIK
   -------------------*/

.pricing-section {
  padding: var(--page-top) 0 80px;
}

.pricing-list {
  max-width: 600px;
  margin: 0 auto;
}

.pricing-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.pricing-item::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted #ccc;
  margin: 0 15px;
  order: 2;
}

.service-name {
  order: 1;
  color: var(--secondary-color);
  font-weight: 300;
}

.price {
  order: 3;
  color: var(--secondary-color);
  font-weight: 600;
  white-space: nowrap;
}

/* -------------------
        ABOUT
   -------------------*/
.about-intro {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 60px 0 0 0;
}

.about-image-wrapper {
  flex: 1;
  position: relative;
}

.main-portrait {
  width: 100%;
  max-width: 450px;
  display: block;
  margin: 0 auto;
}

.about-text {
  flex: 1.5;
}

.about-title .main-title {
  text-align: left;
  margin: 0 auto 40px;
}

.about-text p {
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 1.1rem;
}

/* Sekce "O mně": karta s fotkou, která přesahuje přes horní okraj */
.about-home {
  padding: 90px 0 90px;
}

.about-me {
  padding: calc(var(--page-top) + 90px) 0 0;
}

.about-card {
  --portrait-w: 300px; /* šířka fotky; výšku určuje poměr stran obrázku */
  --portrait-left: 50px; /* odsazení fotky zleva */
  position: relative;
  align-items: center;
  gap: 0;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 50px 60px 50px calc(var(--portrait-left) + var(--portrait-w) + 50px);
  background-color: var(--color-white);
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(107, 94, 85, 0.1);
}

.about-me .about-card {
  --portrait-w: 420px;
  --portrait-left: 20px;
}

.about-card .about-image-wrapper {
  position: absolute;
  left: var(--portrait-left);
  bottom: 0;
  width: var(--portrait-w);
  flex: none;
}

.about-card .main-portrait {
  width: 100%;
  max-width: none;
  height: auto;
}

.about-card .about-text {
  flex: 1;
  padding-bottom: 0;
}

.about-card .about-title .main-title {
  margin-bottom: 20px;
}

.about-card .about-title .main-title h1,
.about-card .about-title .main-title h2 {
  font-size: 2.4rem;
  margin-bottom: 0;
}

.about-card .about-text p {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Formulář na domovské stránce je na bílém pozadí */
.contact-home .form-wrapper {
  background-color: var(--color-white);
}

.experience-section {
  padding: 40px 0 90px;
  text-align: center;
}

/* dva bloky pod sebou (Zkušenosti, Galerie): oddělovník je v bloku, horní mezeru nepotřebujeme */
.experience-section + .experience-section {
  padding-top: 0;
}

.separator {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 60px;
}

/* -------------------
        GALERIE
   -------------------*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.gallery-item {
  padding: 5px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* -------------------
        LIGHTBOX
   -------------------*/
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.nav-btn:hover {
  color: var(--primary-color);
}
.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* -------------------
   KOLOTOC GALERIE
-------------------*/
.photo-carousel-full {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  cursor: grab;
}

.carousel-track-container {
  display: flex;
  width: 100%;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track-infinite {
  display: flex;
  width: max-content;
}

.carousel-img {
  height: 250px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-img:hover {
  opacity: 0.8;
}

/* -------------------
        PATIČKA
-------------------*/
.footer {
  background-color: var(--color-brown);
  color: var(--color-white);
  flex-shrink: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding: 60px 20px 40px;
  align-items: flex-start;
}

.footer-left {
  flex: 2;
  min-width: 0;
  text-align: left;
}

.footer-left h3 {
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-quote {
  font-style: italic;
  line-height: 1.6;
  font-weight: 300;
  max-width: 800px;
}

.footer-right {
  flex: 1;
  text-align: left;
}

.footer-contact-note {
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 14px;
}

.footer-right h4 {
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 10px;
}

.footer-right a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.footer-right a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* -------------------
        TABLET
   -------------------*/

@media (max-width: 1024px) {
  body.subpage .navbar {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    z-index: 2005;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
  }

  #menu-check:checked ~ .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #menu-check:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }
  #menu-check:checked ~ .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: auto;
    height: 100vh;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 80px 30px 40px 30px;
    gap: 10px !important;
    transition: right 0.4s ease;
    z-index: 2000;
    overflow-y: auto;
  }

  #menu-check:checked ~ ul {
    right: 0;
  }

  .nav-links ul li {
    width: 100%;
    margin: 0 !important;
    gap: 10px !important;
  }

  .nav-links a {
    color: white;
    font-size: 1.1rem;
    padding: 12px 0;
    display: block;
    width: 100%;
    text-align: left;
  }

  .dropdown-trigger {
    width: 100%;
  }

  #menu-check:checked ~ ul .dropdown-menu {
    display: block;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0 0 10px 20px;
    min-width: 0;
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    display: block !important; /* Přepíšeme desktopový display:none/block */
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 0 0 0 20px !important; /* Odsazení zleva pro vnoření */
    transition: max-height 0.4s ease; /* Plynulé vysunutí */
    box-shadow: none;
    border: none;
  }

  .dropdown-trigger label {
    color: white;
    font-size: 1.1rem;
    padding: 12px 0;
    display: block;
    cursor: pointer;
    font-weight: inherit;
  }

  .dropdown-trigger label::after {
    content: " ▾";
    font-size: 0.8rem;
    transition: transform 0.3s;
    display: inline-block;
  }

  #submenu-check:checked + label + .dropdown-menu {
    max-height: 500px; /* Dostatečná výška pro obsah */
    margin-bottom: 10px;
  }

  #submenu-check:checked + label::after {
    transform: rotate(180deg);
  }

  /* Úprava původního dropdownu, aby se neukazoval na hover na mobilu */
  .dropdown-trigger:hover .dropdown-menu {
    transform: none;
  }

  .dropdown-menu li {
    margin: 0;
    margin-bottom: 0px;
  }

  .dropdown-menu li a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    border: none;
  }

  .nav-links .btn-primary {
    display: inline-block;
    width: auto;
    margin-top: 10px;
    padding: 12px 25px;
    background-color: var(--primary-color);
    border-radius: 30px;
    text-align: center;
  }

  .glass-panel {
    width: 60%;
  }

  .services-grid {
    flex-direction: column;
    gap: 20px;
  }
  .about-intro {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-text {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-image-wrapper {
    order: 2;
    width: 100%;
    margin-top: 30px;
  }

  .main-portrait {
    margin: 0 auto;
    max-width: auto;
    max-height: 600px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-main-wrapper {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  .footer-right {
    text-align: left;
  }

  .btn-primary {
    margin-top: 10px;
    text-align: center;
    background-color: var(--primary-color);
  }

  .about-intro {
    flex-direction: column;
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-text h2 {
    font-size: 2.5rem;
  }
  .carousel-slide {
    min-width: 100%;
  }

  .service-card {
    width: 100%;
    height: 350px;
    margin-bottom: 20px;
  }

  .contact-main-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contact-map-column {
    height: 500px;
    width: 100%;
  }

  .contact-map-column iframe {
    width: 100%;
    height: 500px;
    border-radius: 0;
  }

  .contact-text-column {
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .contact-item {
    justify-content: center;
  }

  .hours-list {
    margin: 0 auto; /* Vycentruje blok v kontejneru */
    max-width: 300px; /* Aby tabulka nebyla roztažená moc do šířky */
  }

  .hour-row {
    justify-content: space-between;
  }

  /* Centrování nadpisů */
  .accent-title {
    text-align: center;
  }

  .main-title {
    text-align: center;
  }

  /* Odkazy v tmavém výsuvném panelu jsou bílé (přebíjí styly podstránek) */
  body.subpage .nav-links a:not(.btn-primary),
  body.subpage .dropdown-trigger > label {
    color: var(--color-white);
    font-weight: 400;
  }

  body.subpage .dropdown-menu {
    border: none;
    background: transparent;
  }

  body.subpage .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.7);
  }

  body .nav-links a.active:not(.btn-primary),
  body .dropdown-trigger.has-active > label {
    color: var(--primary-color);
    font-weight: 500;
  }

  .dropdown-menu::before,
  .dropdown-menu::after {
    display: none;
  }

  /* Hamburger jde ovládat klávesnicí */
  #menu-check {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  #menu-check:focus-visible ~ .hamburger {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* -------------------
         MOBIL
   -------------------*/

@media (max-width: 768px) {
  .nav-links ul {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links ul li {
    text-align: left;
  }

  .hero-content h1 {
    font-size: 3.5rem;
    justify-content: center;
  }

  .glass-panel {
    width: 100%;
    background: rgba(29, 34, 34, 0.7);
  }

  .container {
    padding: 0px 10px;
    width: 95%;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  header {
    padding: 20px;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .service-card h3 {
    min-height: 0;
    margin-bottom: 10px;
  }

  .service-content {
    padding: 20px;
  }

  .service-header h1 {
    font-size: 2.2rem;
  }

  .service-box {
    flex-direction: column;
    text-align: left;
  }

  .service-box.reverse {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
  }

  .contact-header h1,
  .form-wrapper h2 {
    font-size: 2.5rem;
  }
  .contact-main-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    padding-top: 50px;
    flex-direction: column;
    text-align: left;
  }

  .footer-right {
    text-align: left;
    margin-top: 30px;
  }

  .pricing-item {
    font-size: 1rem;
  }

  .nav-btn {
    font-size: 30px;
  }
}

/* -------------------
   MÉNĚ POHYBU
   -------------------*/

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card-inner,
  .animate-on-scroll .service-card {
    transition: none;
  }
}

/* -------------------
   ÚPRAVY PRO TABLET A MOBIL
   -------------------*/

@media (max-width: 1024px) {
  .about-card,
  .about-me .about-card {
    --portrait-w: 240px;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 36px;
    text-align: center;
  }

  .about-card .about-image-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    order: 0;
    margin-top: -80px;
    width: var(--portrait-w);
  }

  .about-card .about-text {
    order: 1;
    margin-top: 20px;
    align-items: center;
  }

  .about-card .about-title .main-title {
    text-align: center;
  }

  .service-card-front .accent-title {
    font-size: 1.7rem;
  }

  .contact-map-column {
    height: 320px;
  }

  .contact-map-column iframe {
    height: 320px;
    border-radius: var(--radius-lg);
  }

  .map-container iframe {
    height: 300px;
  }
}

/* -------------------
   FORMULÁŘ – STAV ODESLÁNÍ
   -------------------*/

.form-status {
  margin-top: 20px;
  text-align: center;
  color: #b3412e;
}

.form-success {
  max-width: 750px;
  margin: 0 auto;
  padding: 50px 30px;
  text-align: center;
  border: 1px solid rgba(255, 113, 91, 0.45);
  border-radius: var(--radius-lg);
}

.form-success h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
