/* =========================
   GLOBAL
========================= */
html {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--base-color);
  background-image: 
    /* Excentrický gradient - oranžová */
    radial-gradient(ellipse at 20% 30%, rgba(255, 122, 32, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 122, 32, 0.08) 0%, transparent 50%),
    /* Excentrický gradient - zelená */
    radial-gradient(ellipse at 70% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(46, 125, 50, 0.08) 0%, transparent 50%),
    /* Šikmý gradient pro jemné pozadí */
    linear-gradient(135deg, rgba(255, 122, 32, 0.06) 0%, transparent 40%, rgba(76, 175, 80, 0.05) 60%, transparent 100%),
    linear-gradient(45deg, rgba(46, 125, 50, 0.04) 0%, transparent 50%, rgba(255, 122, 32, 0.04) 100%);
  background-attachment: fixed;
  background-size: 100% 100%;
  min-height: 100vh;
}

body {
  background-color: transparent;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Dekorativní ovály - odstraněno, nahrazeno padajícími hvězdami */

/* Diagonální čáry - odstraněno, nahrazeno padajícími hvězdami */

/* Animace pohybu oválů - původní hodnoty */
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

/* Animace pohybu diagonálních čar */
@keyframes backgroundMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 180px 180px, -180px -180px;
  }
}

/* =========================
   PADAJÍCÍ HVĚZDY/PAPRSKY
========================= */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star.ray {
  position: absolute;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Tvar plamene - nahoře široké, dolů se zužující */
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  /* Zaoblené horní rohy */
  border-top-left-radius: 40%;
  border-top-right-radius: 40%;
  overflow: visible;
}

/* Základní - střední */
.star.ray {
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, 
    rgba(255, 122, 32, 1) 0%, 
    rgba(255, 122, 32, 1) 10%,
    rgba(255, 122, 32, 0.95) 20%,
    rgba(255, 122, 32, 0.8) 40%,
    rgba(255, 122, 32, 0.5) 60%,
    rgba(255, 122, 32, 0.2) 80%,
    transparent 100%);
  /* Záře kolem celého paprsku + výrazná záře nad horní hranou */
  box-shadow: 
    0 0 15px rgba(255, 122, 32, 1), 
    0 0 25px rgba(255, 122, 32, 0.8),
    0 0 40px rgba(255, 122, 32, 0.6),
    0 0 60px rgba(255, 122, 32, 0.3),
    /* Záře nad horní hranou - negativní Y offset */
    0 -15px 20px rgba(255, 122, 32, 0.9),
    0 -20px 30px rgba(255, 122, 32, 0.7),
    0 -25px 40px rgba(255, 122, 32, 0.5),
    0 -30px 50px rgba(255, 122, 32, 0.3);
}

/* Výrazné a silné */
.star.ray.strong {
  width: 6px;
  height: 100px;
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
  border-top-left-radius: 40%;
  border-top-right-radius: 40%;
  background: linear-gradient(to bottom, 
    rgba(255, 122, 32, 1) 0%, 
    rgba(255, 122, 32, 1) 15%,
    rgba(255, 122, 32, 1) 35%,
    rgba(255, 122, 32, 0.9) 55%,
    rgba(255, 122, 32, 0.6) 75%,
    rgba(255, 122, 32, 0.3) 90%,
    transparent 100%);
  box-shadow: 
    0 0 20px rgba(255, 122, 32, 1), 
    0 0 35px rgba(255, 122, 32, 0.9),
    0 0 50px rgba(255, 122, 32, 0.7),
    0 0 70px rgba(255, 122, 32, 0.4),
    0 -18px 25px rgba(255, 122, 32, 1),
    0 -25px 40px rgba(255, 122, 32, 0.9),
    0 -32px 55px rgba(255, 122, 32, 0.7),
    0 -40px 70px rgba(255, 122, 32, 0.5);
}

/* Dlouhé a slabší */
.star.ray.long {
  width: 3px;
  height: 120px;
  clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 12% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 12% 100%);
  border-top-left-radius: 40%;
  border-top-right-radius: 40%;
  background: linear-gradient(to bottom, 
    rgba(255, 122, 32, 0.8) 0%, 
    rgba(255, 122, 32, 0.75) 15%,
    rgba(255, 122, 32, 0.6) 35%,
    rgba(255, 122, 32, 0.4) 55%,
    rgba(255, 122, 32, 0.2) 75%,
    rgba(255, 122, 32, 0.1) 90%,
    transparent 100%);
  box-shadow: 
    0 0 10px rgba(255, 122, 32, 0.7), 
    0 0 20px rgba(255, 122, 32, 0.5),
    0 0 30px rgba(255, 122, 32, 0.3),
    0 -12px 18px rgba(255, 122, 32, 0.8),
    0 -18px 28px rgba(255, 122, 32, 0.6),
    0 -24px 38px rgba(255, 122, 32, 0.4);
}

/* Krátké a slabší */
.star.ray.short {
  width: 3px;
  height: 50px;
  clip-path: polygon(0% 0%, 100% 0%, 82% 100%, 18% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 82% 100%, 18% 100%);
  border-top-left-radius: 40%;
  border-top-right-radius: 40%;
  background: linear-gradient(to bottom, 
    rgba(255, 122, 32, 0.7) 0%, 
    rgba(255, 122, 32, 0.65) 20%,
    rgba(255, 122, 32, 0.5) 45%,
    rgba(255, 122, 32, 0.3) 70%,
    rgba(255, 122, 32, 0.15) 90%,
    transparent 100%);
  box-shadow: 
    0 0 8px rgba(255, 122, 32, 0.6), 
    0 0 15px rgba(255, 122, 32, 0.4),
    0 -10px 15px rgba(255, 122, 32, 0.7),
    0 -15px 25px rgba(255, 122, 32, 0.5);
}

/* Dlouhé a slabé */
.star.ray.long-weak {
  width: 2px;
  height: 140px;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
  border-top-left-radius: 40%;
  border-top-right-radius: 40%;
  background: linear-gradient(to bottom, 
    rgba(255, 122, 32, 0.5) 0%, 
    rgba(255, 122, 32, 0.45) 20%,
    rgba(255, 122, 32, 0.3) 45%,
    rgba(255, 122, 32, 0.2) 70%,
    rgba(255, 122, 32, 0.1) 90%,
    transparent 100%);
  box-shadow: 
    0 0 6px rgba(255, 122, 32, 0.5), 
    0 0 12px rgba(255, 122, 32, 0.3),
    0 -8px 12px rgba(255, 122, 32, 0.6),
    0 -12px 20px rgba(255, 122, 32, 0.4);
}

/* Zelené varianty */
.star.ray.green {
  background: linear-gradient(to bottom, 
    rgba(76, 175, 80, 1) 0%, 
    rgba(76, 175, 80, 1) 10%,
    rgba(76, 175, 80, 0.95) 20%,
    rgba(76, 175, 80, 0.8) 40%,
    rgba(46, 125, 50, 0.5) 60%,
    rgba(46, 125, 50, 0.2) 80%,
    transparent 100%);
  box-shadow: 
    0 0 15px rgba(76, 175, 80, 1), 
    0 0 25px rgba(76, 175, 80, 0.8),
    0 0 40px rgba(76, 175, 80, 0.6),
    0 0 60px rgba(46, 125, 50, 0.3),
    0 -15px 20px rgba(76, 175, 80, 0.9),
    0 -20px 30px rgba(76, 175, 80, 0.7),
    0 -25px 40px rgba(46, 125, 50, 0.5),
    0 -30px 50px rgba(46, 125, 50, 0.3);
}

.star.ray.green.strong {
  background: linear-gradient(to bottom, 
    rgba(76, 175, 80, 1) 0%, 
    rgba(76, 175, 80, 1) 15%,
    rgba(76, 175, 80, 1) 35%,
    rgba(76, 175, 80, 0.9) 55%,
    rgba(46, 125, 50, 0.6) 75%,
    rgba(46, 125, 50, 0.3) 90%,
    transparent 100%);
  box-shadow: 
    0 0 20px rgba(76, 175, 80, 1), 
    0 0 35px rgba(76, 175, 80, 0.9),
    0 0 50px rgba(76, 175, 80, 0.7),
    0 0 70px rgba(46, 125, 50, 0.4),
    0 -18px 25px rgba(76, 175, 80, 1),
    0 -25px 40px rgba(76, 175, 80, 0.9),
    0 -32px 55px rgba(46, 125, 50, 0.7),
    0 -40px 70px rgba(46, 125, 50, 0.5);
}

.star.ray.green.long {
  background: linear-gradient(to bottom, 
    rgba(76, 175, 80, 0.8) 0%, 
    rgba(76, 175, 80, 0.75) 15%,
    rgba(76, 175, 80, 0.6) 35%,
    rgba(46, 125, 50, 0.4) 55%,
    rgba(46, 125, 50, 0.2) 75%,
    rgba(46, 125, 50, 0.1) 90%,
    transparent 100%);
  box-shadow: 
    0 0 10px rgba(76, 175, 80, 0.7), 
    0 0 20px rgba(76, 175, 80, 0.5),
    0 0 30px rgba(46, 125, 50, 0.3),
    0 -12px 18px rgba(76, 175, 80, 0.8),
    0 -18px 28px rgba(76, 175, 80, 0.6),
    0 -24px 38px rgba(46, 125, 50, 0.4);
}

.star.ray.green.short {
  background: linear-gradient(to bottom, 
    rgba(76, 175, 80, 0.7) 0%, 
    rgba(76, 175, 80, 0.65) 20%,
    rgba(76, 175, 80, 0.5) 45%,
    rgba(46, 125, 50, 0.3) 70%,
    rgba(46, 125, 50, 0.15) 90%,
    transparent 100%);
  box-shadow: 
    0 0 8px rgba(76, 175, 80, 0.6), 
    0 0 15px rgba(46, 125, 50, 0.4),
    0 -10px 15px rgba(76, 175, 80, 0.7),
    0 -15px 25px rgba(46, 125, 50, 0.5);
}

.star.ray.green.long-weak {
  background: linear-gradient(to bottom, 
    rgba(76, 175, 80, 0.5) 0%, 
    rgba(76, 175, 80, 0.45) 20%,
    rgba(76, 175, 80, 0.3) 45%,
    rgba(46, 125, 50, 0.2) 70%,
    rgba(46, 125, 50, 0.1) 90%,
    transparent 100%);
  box-shadow: 
    0 0 6px rgba(76, 175, 80, 0.5), 
    0 0 12px rgba(46, 125, 50, 0.3),
    0 -8px 12px rgba(76, 175, 80, 0.6),
    0 -12px 20px rgba(46, 125, 50, 0.4);
}

@keyframes ray-rise {
  0% {
    transform: translate3d(var(--start-x, 0px), var(--start-y, 100vh), 0);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--end-x, 0px), var(--end-y, -100px), 0);
    opacity: 0;
  }
}

.star.ray {
  animation: ray-rise linear infinite;
  transform: translateZ(0);
}


main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;     /* aby se sekce roztáhly na 100% */
  position: relative;
  z-index: 1;
}

h2 {
  width: 100%;
  font-size: 3rem;
  text-align: center;
  box-shadow: 0 2px 0 var(--primary-color);
}

/* ========================================
   HERO SECTION - 3D Karty s animacemi
======================================== */

/* --- Základní styly hero sekce --- */
.hero-section {
  width: 100%;
  min-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 128px 32px;
  background: transparent;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.hero-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding-top: 80px;
}

.hero-box {
  position: relative;
  border-radius: 20px;
  transform-style: preserve-3d;
  transform: perspective(var(--hero-perspective, 1000px)) rotateX(var(--hero-tilt-x, 0deg)) rotateY(var(--hero-tilt-y, 13deg));
  transition: transform 0.1s ease-out;
}

.hero-box-left {
  width: 100%;
  max-width: 680px;
  position: relative;
  min-height: 800px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.05);
}

.hero-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.05);
  transform-style: preserve-3d;
  transform: translateZ(0);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero-card-bg {
    background: rgba(255, 255, 255, 0.1);
  }
}

.hero-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  transform-style: preserve-3d;
  transform: translateZ(0);
  pointer-events: none;
  box-shadow: 0 25px 25px rgba(0, 0, 0);
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* --- Hero elementy (jméno, content) --- */
.hero-elements {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.05);
  opacity: 1;
  pointer-events: none;
  transform-style: preserve-3d;
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .hero-elements {
    background: rgba(255, 255, 255, 0.15);
  }
}

.hero-name {
  top: 120px;
  right: 32px;
  width: 60%;
  padding: 16px 24px;
  text-align: right;
  transform: translateZ(100px);
}

.hero-name h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 700;
}

.hero-content {
  top: initial;
  bottom: 14px;
  right: 42px;
  width: 45%;
  min-height: 144px;
  padding: 32px;
  text-align: center;
  transform: translateZ(300px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
  animation: heroContentFadeIn 1.5s ease-out;
  position: absolute !important;
  overflow: hidden;
  contain: layout style paint;
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .hero-content {
    background: rgba(255, 255, 255, 0.35) !important;
  }
}

.hero-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: shine 4s infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 10px;
  transform: translateZ(0);
  will-change: transform;
}

.hero-content p {
  position: relative;
  font-size: 1.34em;
  color: var(--text-color);
  line-height: 1.8;
  opacity: 1;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: heroTextFadeIn 2s ease-out;
  z-index: 1;
}

/* --- Hero responzivita --- */
@media (max-width: 968px) {
  .hero-section {
    min-height: 320px;
    padding: 32px 12px 24px;
  }

  .hero-container {
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
  }

  .hero-box-left{
    max-width: 80%;
    margin-top: 100px;
    margin-bottom: 30px;
  }

  .hero-card {
    min-height: 280px;
  }

  .hero-name {
    right: 10px;
    left: -30px;
    width: 60%;
    padding: 8px 10px;
    top: 160px;
  }

  .hero-name h2 {
    font-size: 1.85rem;
  }

  .hero-content {
    right: 45px;
    left: 50px;
    width: 70%;
    padding: 10px 8px;
    bottom: 84px;
    min-height: 80px;
  }

  .hero-content p {
    font-size: 0.85em;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .hero-box-left{
    min-height: 440px;
  }
  .hero-section {
    min-height: 400px;
    max-height: 600px;
    padding: 24px 10px 16px;
  }

  .hero-container {
    padding-top: 32px;
  }

  .hero-card {
    min-height: 220px;
    max-height: 440px;
  }

  .hero-name {
    top: 40px;
    padding: 6px 8px;
  }

  .hero-name h2 {
    font-size: 1.1rem;
  }

  .hero-content {
    right: 35px;
    left: 30px;
    width: 60%;
    padding: 10px 8px;
    bottom: 20px;
    min-height: 80px;
  }

  .hero-content p {
    font-size: 0.8em;
  }
}
/* ======================================== 
   KONEC HERO SECTION
======================================== */



/* =========================
   OSTATNÍ RESPONZIVITA
========================= */
@media (max-width: 480px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  .about-me {
    padding: 50px 0 80px;
    margin-bottom: 80px;
  }

  .about-me-inner {
    padding: 0 15px;
  }

  .price-list-body {
    padding: 0 15px;
  }

  .price-item {
    padding: 18px 14px;
  }

  .form {
    padding: 0 10px;
  }

  .faq-items {
    padding: 0 15px;
  }

  .faq-item {
    padding: 18px 15px;
  }

  .faq-content h3 {
    font-size: 1.35rem;
  }

  .faq-content p {
    font-size: 0.95rem;
  }

  .contact-me h2,
  .contact h2 {
    font-size: 1.5rem;
    text-align: center;
    padding: 0 10px;
  }
}

/* Střední mobily – zmenšení textů (nadpisy h2 beze změny) */
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  h2 {
    font-size: 2rem;
  }

  h3, .about-me h3, .faq-content h3, .price-item > h3 {
    font-size: 1.1rem;
  }

  h4, .price-item > h4 {
    font-size: 0.9rem;
  }

  p, .about-me p, .about-me li, .price-list-body p, .price-item p,
  .form-section1 p, .form-section2 p, .faq-content p, .footer-main p {
    font-size: 0.9rem;
  }

  .contact-me h2,
  .contact h2 {
    font-size: 1.35rem;
  }

  .price-list-body h2 {
    font-size: 1.35rem;
  }

  .about-me-inner h2 {
    font-size: 1.4rem;
  }

  .pli-h3 {
    font-size: 1.2rem;
  }

  .price-list-ul li {
    font-size: 0.9rem;
  }

  #loading h2 {
    font-size: 2.5rem;
  }

  .message-success p {
    font-size: 1.5rem;
  }
}



/* =========================
   ABOUT ME
========================= */
.about-me {
  width: 100%;
  height: auto;
  margin-bottom: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, 
    rgba(30, 30, 35, 0.95) 0%, 
    rgba(40, 40, 45, 0.95) 50%,
    rgba(35, 35, 40, 0.95) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 122, 32, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.about-me-inner{
  max-width: 1200px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.about-me h2,
.about-me h3 {
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.about-me p {
  padding: 0 20px;
  text-align: justify;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.about-me ul {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.about-me li {
  color: rgba(255, 255, 255, 0.85);
}

.about-me-0 {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

/* "Více o mně" tlačítko */
.about-more-btn {
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 122, 32, 0.6);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 122, 32, 0.15);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.about-more-btn:hover {
  border-color: rgba(255, 122, 32, 1);
  background: rgba(255, 122, 32, 0.25);
  box-shadow: 0 0 15px rgba(255, 122, 32, 0.4);
  color: rgba(255, 255, 255, 1);
}

/* Skrytý blok */
.hidden-about-me[hidden] { display: none !important; }
.hidden-about-me {
  margin-top: 16px;
  line-height: 1.6;
}
.hidden-about-me h3,
.hidden-about-me h4 { margin-top: 1rem; }
.hidden-about-me ul {
  margin: .4rem 0 1rem 1.2rem;
}
/* animovaný výjezd skrytého bloku */
.hidden-about-me{
  /* místo [hidden] budeme řídit třídami */
  visibility: hidden;
  opacity: 0;
  transform: translateX(-20px);
  max-height: 0;
  overflow: hidden;
  transition:
    max-height .6s ease,
    opacity .4s ease,
    transform .6s cubic-bezier(.2,.7,.2,1),
    visibility 0s linear .6s; /* zviditelni až po animaci zavření */
}
.hidden-about-me.open{
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  max-height: 3000px; /* dost velké, ať se to „rozvine“ */
  transition:
    max-height .6s ease,
    opacity .4s ease .1s,
    transform .6s cubic-bezier(.2,.7,.2,1),
    visibility 0s;
}

/* animovaný „odjezd“ tlačítka */
.about-more-btn{
  transition: opacity .3s ease, transform .3s ease;
}
.about-more-btn.leaving{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* respekt k prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .hidden-about-me,
  .about-more-btn{ transition: none !important; }
  .hidden-about-me{ visibility: visible; opacity:1; transform:none; max-height:none; }
}
@media (min-width: 840px) and (max-width: 1299px) {

  .about-me-01 {
    width: 80%;
  }
  .about-me-0{
    width: 80%;
    padding-left: 40px;
  
  }
    .hidden-about-me{
    width: 80%;
  }
}
@media (max-width: 839px) {
  .about-me {
    max-height:none !important;
    height: auto;
    margin-bottom: 0px;
  }
  .about-me p, ul{
    font-size: 0.9rem;
  }
  .about-me-01 {
    width: 80%;
  }
  .about-me-0{
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
  }
  .hidden-about-me{
    width: 80%;
    padding-bottom: 30px;
  }
}





/* =========================
   PRICE LIST
========================= */
.price-list {
    width: 100%;
    height: auto;
    padding-bottom: 150px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.price-list-body {
    max-width: 1200px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.price-list-hr {
    width: 100%;
    max-width: 600px;
    height: 2px;
    border: none;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 122, 32, 0.3) 50%, 
        transparent 100%);
    margin: 15px 0 25px 0;
    position: relative;
    overflow: hidden;
}

.price-list-hr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 122, 32, 0.4) 20%,
        rgba(255, 122, 32, 0.9) 50%,
        rgba(255, 122, 32, 0.4) 80%,
        transparent 100%
    );
    filter: blur(8px);
    -webkit-filter: blur(8px);
    animation: shine 5s infinite;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(255, 122, 32, 0.6);
}

.price-list-items {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.price-item {
    width: 230px;
    min-height: 350px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 25px 20px;
    border-radius: 20px;
    border: 3px solid rgba(255, 122, 32, 0.6);
    background: linear-gradient(135deg, 
        rgba(30, 30, 35, 0.95) 0%, 
        rgba(40, 40, 45, 0.95) 50%,
        rgba(35, 35, 40, 0.95) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(90deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

.price-item.revealed {
    transform: perspective(1000px) rotateX(0deg) rotateY(25deg);
    opacity: 1;
}

.price-item > h3 {
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 12px;
    position: relative;
    border-bottom: solid 2px rgba(255, 122, 32, 0.6);
    overflow: hidden;
    text-align: center;
}

.price-item > h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -100%;
    width: 80px;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 122, 32, 0.3) 20%,
        rgba(255, 122, 32, 0.9) 50%,
        rgba(255, 122, 32, 0.3) 80%,
        transparent 100%
    );
    filter: blur(6px);
    -webkit-filter: blur(6px);
    animation: shine 4s infinite;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 12px rgba(255, 122, 32, 0.7), 0 0 20px rgba(255, 122, 32, 0.4);
}

.price-item > h4 {
    margin: 0 0 15px 0;
    padding: 0;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}


.price-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 122, 32, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.price-item.revealed:hover {
    border-color: rgba(255, 122, 32, 0.9);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
    animation: priceItemGlow 2s ease-in-out infinite;
}

@keyframes priceItemGlow {
    0%, 100% {
        box-shadow: 
            0 0 12px rgba(255, 122, 32, 0.5),
            0 0 20px rgba(255, 122, 32, 0.3),
            0 0 28px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 
            0 0 18px rgba(255, 122, 32, 0.7),
            0 0 28px rgba(255, 122, 32, 0.45),
            0 0 38px rgba(16, 185, 129, 0.35);
    }
}
.price-item h3 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 2;
    text-align: center;
}

.price-item h3 strong {
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.price-item > h4 {
    font-size: 0.95rem;
    color: rgba(255, 122, 32, 0.9);
    margin: 0 0 15px 0;
    padding: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.price-item p {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    line-height: 1.6;
}
.pli-h3 {
    margin-top: 50px;
    font-size: 1.5rem;
}
.price-list-ul li{
    padding: 4px 0 4px 0;
}

@media (min-width: 750px) and (max-width: 1260px) {
  .price-list-body {
      width: 80%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 0 20px;
  }
  .price-list-items {
      width: 100%;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 44px;
      justify-items: center;
  }
  .price-item {
      width: 100%;
      max-width: 380px;
      min-height: 300px;
      margin-bottom: 20px;
      margin-top: 20px;
  }
  /* Pravý sloupec – zrcadlové natočení (minus) */
  .price-list-items .price-item:nth-child(2n) {
      transform: perspective(1000px) rotateX(0deg) rotateY(-90deg);
  }
  .price-list-items .price-item:nth-child(2n).revealed {
      transform: perspective(1000px) rotateX(0deg) rotateY(-25deg);
  }
  .price-list-items .price-item:nth-child(2n).revealed:hover {
      transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
  }
}
@media (max-width: 749px) {
  .price-list {
      width: 100%;
      margin-bottom: 20px;
      padding-bottom: 0;
  }
  .price-list-body {
      width: 90%;
  }
    .price-list-body p{
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }
  .price-list-items {
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 35px;
  }
  .price-item {
      width: 90%;
      min-height: auto;
      margin-bottom: 0;
  }
  /* Sudé položky – zrcadlové natočení (minus) */
  .price-list-items .price-item:nth-child(2n) {
      transform: perspective(1000px) rotateX(0deg) rotateY(-90deg);
  }
  .price-list-items .price-item:nth-child(2n).revealed {
      transform: perspective(1000px) rotateX(0deg) rotateY(-25deg);
  }
  .price-list-items .price-item:nth-child(2n).revealed:hover {
      transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
  }
}






/* =========================
   CONTACT FORM
========================= */
.contact{
  width: 100%;
  padding: 80px 0 150px 0;
  background: linear-gradient(135deg, 
    rgba(30, 30, 35, 0.95) 0%, 
    rgba(40, 40, 45, 0.95) 50%,
    rgba(35, 35, 40, 0.95) 100%);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 122, 32, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.contact-me {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

.contact-me h2,
.contact h2 {
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

.form-section1 p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}
.form {
  max-width: 1200px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: space-between;
  margin-top: 10px;
  padding: 5px;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

.form-section1 {
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin: 20px 0 40px 0;
}
.form-section1 p {
  padding: 50px;
  text-align: justify;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.form-section2 {
  width: 48%;
  height: 436px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 2px solid rgba(255, 122, 32, 0.6);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  margin: 3px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.form-section2 p{
  color: rgba(255, 255, 255, 0.9);
  padding: 50px;
  text-align: justify;
  font-size: 1.1rem;
}


form {
  width: 45%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Honeypot pole - neviditelné pro uživatele (anti-spam) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  visibility: hidden;
  display: none;
}

.first-name,
.second-name,
.factory,
.phone,
.email {
  width: 100%;
  height: 40px;
  border: 2px solid rgba(255, 122, 32, 0.6);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  padding: 0 15px;
  margin: 3px auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.first-name::placeholder,
.second-name::placeholder,
.factory::placeholder,
.phone::placeholder,
.email::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea {
  width: 100%;
  height: 140px;
  border: 2px solid rgba(255, 122, 32, 0.6);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  padding: 15px;
  margin: 3px 0;
  text-align: center;
  position: relative;
  z-index: 1;
  resize: vertical;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit {
  width: 100%;
  height: 40px;
  border: 2px solid rgba(255, 122, 32, 0.6);
  border-radius: 20px;
  background-color: rgba(255, 122, 32, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  letter-spacing: 2px;
  padding: 5px 0 5px 20px;
  margin: 3px 0 10px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.submit:hover {
  border: 2px solid rgba(255, 122, 32, 1);
  background-color: rgba(255, 122, 32, 0.25);
  color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 15px rgba(255, 122, 32, 0.4);
  box-shadow: 0 0 45px var(--shadow1-color),
              0 0 35px var(--shadow1-color),
              0 0 25px var(--shadow1-color);
}

/* Loading overlay */
#loading {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primaryLOW-color);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-align: center;
  padding-top: 20%;
  z-index: 1000;
}
#loading h2 {
  font-size: 3rem;
  color: var(--text-color);
}
@media (max-width: 1060px) {
.form-section1 {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin: 12px 0 24px 0;
  padding: 0 15px;
}
.form-section1 p {
  padding: 20px 16px;
  font-size: 1.05rem;
}
.form-section2 {
  width: 600px;
  min-height: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 10px 15px;
  margin: 0 0;
  margin-left: 15px;
  margin-bottom: 15px;
}
.form-section2 p {
  padding: 16px 12px;
  font-size: 1rem;
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 15px;
  margin: 0;
}
.form input, textarea {
  margin: 8px 0;
  min-height: 44px;
}
.submit {
  min-height: 48px;
  margin: 12px 0;
  width: 634px;
}
.first-name,
.second-name,
.factory,
.phone,
.email {
  width: 600px;
}

textarea {
  width: 600px;

}
}

/* Kontaktní formulář – mobil: užší pole, centrování */
@media (max-width: 750px) {
  .contact {
    width: 100%;
    padding: 0px 0 50px;
  }
  .contact-me {
    width: 90%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .form {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  .form-section1 {
    width: 100%;
    margin: 8px 0 20px 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .form-section1 p {
    width: 100%;
    padding: 14px 0;
    font-size: 0.95rem;
    margin-left: 0;
    margin-right: 0;
  }
  .form-section2 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .form-section2 p{
    width: 90%;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  form {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .submit {
    width: 100%;
    min-height: 48px;
    margin: 12px 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .first-name,
  .second-name,
  .factory,
  .phone,
  .email {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  textarea {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 49px) {
  .contact {
    padding: 28px 0 60px;
  }
  .contact-me {
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-me h2,
  .contact h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .form,
  .form-section1,
  .form-section2,
  form {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .form {
    align-items: center;
    align-self: center;
    text-align: center;
  }
  .form-section1 {
    margin-top: 6px;
    margin-bottom: 16px;
    width: 100%;
  }
  .form-section1 p {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  .form-section2 {
    padding: 12px 10px;
    width: 100%;
  }
  .form-section2 p {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  form {
    padding: 0 10px;
    width: 100%;
  }
}

/* =========================
   FAQ
========================= */
.faq {
  width: 100%;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.faq-items {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.faq-item {
  padding: 25px 20px;
  border-bottom: 2px solid var(--primary-color);
}
.faq-item:nth-child(2n+1){
  background-color: var(--base-color);
}
.faq-content {
  width: 90%;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.faq-content h3 {
  font-size: 1.7rem;
  margin: 0 0 5px 0;
}

.faq-content p {
  font-size: 1rem;
  text-align: justify;
}



/* Kontejner FAQ – potřebujeme overflow pro masku/gradient */
.faq-content {
  position: relative;
  overflow: hidden;
  transition: max-height 2.7s ease; /* animace rozbalení */
}

/* Start: složený stav – výška se dopočítá JS a zapíše do --faq-collapsed */
.faq-content.collapsed {
  max-height: var(--faq-collapsed, 720px);
}

/* End: rozbalený stav */
.faq-content.expanded {
  max-height: 5000px; /* dost velké, aby to plynule dojelo */
}

/* FÁDING 4. položky – PRIMÁRNĚ přes masku (moderní prohlížeče) */
.faq-content.collapsed {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
          mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0));
}

/* Fallback pro starší – gradientový překryv dole jen když je složené */
.faq-content.collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--base-color));
  pointer-events: none;
}



/* Položky 5+ při složeném stavu lehce schovej (kvůli plynulému nájezdu po rozbalení) */
.faq-content.collapsed .faq-item:nth-child(n+5) {
  opacity: 0;
  transform: translateY(8px);
}
.faq-content .faq-item {
  transition: opacity .45s ease, transform .45s ease;
}
/* když je rozbaleno, nechej 5+ „doteč“ do plné viditelnosti */
.faq-content.expanded .faq-item:nth-child(n+5) {
  opacity: 1;
  transform: translateY(0);
}


/* základ: už máš transition na .faq-content .faq-item */
.faq-content .faq-item {
  will-change: opacity, transform;
}

/* collapsed: 5+ jsou skryté a lehce posunuté – LICHÉ zleva, SUDÉ zprava */
.faq-content.collapsed .faq-item:nth-child(n+5) {
  opacity: 0;
}
.faq-content.collapsed .faq-item:nth-child(2n+1):nth-child(n+5) {
  transform: translate(-260px, 8px); /* zleva dolů */
}
.faq-content.collapsed .faq-item:nth-child(2n):nth-child(n+5) {
  transform: translate(260px, 8px);  /* zprava dolů */
}

/* expanded: 5+ „dotečou“ na místo (stagger dělá JS přes transitionDelay) */
.faq-content.expanded .faq-item:nth-child(n+5) {
  opacity: 1;
  transform: translate(0, 0);
}


/* Tlačítko */
.faq-more-btn{
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 12px;
  border: 2px solid var(--primaryLOW-color);
  color: var(--text-color);
  background: var(--base-color);
  cursor: pointer;
  margin-bottom: 100px;
}
.faq-more-btn:hover{
  border-color: var(--primary-color);
  box-shadow: 0 0 8px var(--primaryLOW-color);
}

/* Respekt k prefers-reduced-motion */
@media (prefers-reduced-motion: reduce){
  .faq-content { transition: none !important; }
  .faq-content.collapsed,
  .faq-content.expanded { -webkit-mask-image: none; mask-image: none; }
}







/* ==== CAROUSEL – layout (HTML beze změny) ==== */
.my-work {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.my-work .work-carousel{
  --card-w: 900px;
  --gap: 24px;
  --progress-h: 4px;
  --slide-h: 820px;
  width: min(100%, var(--card-w));
  margin: 0 auto 10px auto;
}

/* Progress */
.work-carousel .wc-progress{
  height: var(--progress-h);
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 10px 0;
}
.work-carousel .wc-progress-fill{
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  transform-origin: left center;
}

/* Plátno drží výšku aktivního slidu a vše uvnitř ořízne */
.work-carousel .wc-slides{
  position: relative;
  overflow: hidden;            /* ← bez vnitřního scrollu při blur/transform */
  transition: height 1.35s ease;
  height: var(--slide-h) !important; 
}

/* Každý slide je absolutní, plátno má fixní výšku z JS */
.work-carousel .wc-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--slide-h);
  min-height: 0;
  overflow: hidden; 

  box-sizing: border-box;

  overflow: hidden;            /* ← rozmazané okraje nevytečou */
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transform: translate3d(40px,0,0) scale(.985);
  filter: blur(2px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  contain: paint;              /* menší reflow */
  z-index: 0;                  /* základní vrstva */
}

/* Aktivní slide */
.work-carousel .wc-slide.is-active{
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;                  /* pod „enter“, nad „leave“ */
}
/* vnitřek karty – stabilní pro měření výšky */
.work-carousel .wc-inner{
  position: relative;
  display: block;
  /* nepoužívá žádné transform/blur – animuje se obal .wc-slide */
  border-radius: inherit;
}

/* Vrstvení pro animace, aby nikdy „neprosvítal“ špatný slide */
.work-carousel .wc-slide.anim-leave{ z-index: 2; }
.work-carousel .wc-slide.anim-enter{ z-index: 4; }

/* Klíčové snímky */
@keyframes wc-leave {
  from { opacity:1; transform: translate3d(0,0,0) scale(1);    filter: blur(0); }
  to   { opacity:0; transform: translate3d(-80px,0,0) scale(.985); filter: blur(4px); }
}
@keyframes wc-enter {
  from { opacity:0; transform: translate3d(80px,0,0) scale(.985);  filter: blur(4px); }
  to   { opacity:1; transform: translate3d(0,0,0)   scale(1);    filter: blur(0); }
}
.work-carousel .wc-slide.anim-leave{
   animation: wc-leave .55s ease forwards;
   }
.work-carousel .wc-slide.anim-enter{
   animation: wc-enter .55s ease forwards;
   }

/* Vnitřek karty – stejné jako dřív */
.work-carousel .wc-slide .description{
  width:95%;
  margin:0 auto;
  padding:10px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:100%;
}
.work-carousel .wc-slide h3{
  margin:10px 0 0 15px;
  font-size:2rem;
  }
.work-carousel .wc-slide h4{ font-size:1.3rem; margin:0; }
.work-carousel .wc-slide p{ font-size:.95rem; text-align:justify; }
.work-carousel .wc-slide .detail{
  display:flex; justify-content:space-between; align-items:center; gap:20px;
}
.work-carousel .wc-slide .img_pages{ display:block; width:40%; height:auto; }
.work-carousel .wc-slide .img_pages_inA{ width:100%; display:block; }

/* Timeline (bar-graf) + ovládání – beze změn */
.work-carousel .wc-timeline{
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; margin: 12px 0 6px 0;
}
.work-carousel .wc-seg{
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--primaryLOW-color);
  cursor: pointer; padding: 0;
}
.work-carousel .wc-seg.is-active{
  background: linear-gradient(90deg, var(--primary-color), rgba(255,122,32,.65));
  box-shadow: 0 0 0 1px var(--primary-color) inset;
}
.work-carousel .wc-seg:focus-visible{ outline: 2px solid var(--primary-color); }

.work-carousel .wc-controls{
  display:flex; gap:10px; justify-content:center; margin: 4px 0 0 0;
}
.work-carousel .wc-controls button{
  padding:6px 12px; border-radius:12px;
  border:2px solid var(--primaryLOW-color);
  background:var(--base-color); color:var(--text-color); cursor:pointer;
}
.work-carousel .wc-controls button:hover{
  border-color:var(--primary-color); box-shadow:0 0 8px var(--primaryLOW-color);
}

@media (max-width: 900px){
.my-work .work-carousel{
  font-size: 0.6rem;
  --card-w: 100%;
  --slide-h: 890px;
  }
  .work-carousel .wc-slide .detail{
     flex-direction: column;
     align-items: stretch;
  }
  .work-carousel .wc-slide .img_pages{
     width:100%;
     margin: 0 auto;
  }
  .work-carousel .wc-slide .img_pages_inA{ width:40%; display:block; margin:0 auto;}
}






/* =========================
   SEND SUCCESS MODAL
========================= */
.send-success {
  display: block; /* původně bylo 'show' (neplatné), vizuálně se nic nemění */
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  animation: fadeIn 1s forwards;
  z-index: 9999;
}

.message-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--base-color);
  padding: 30px;
  box-shadow: 0 0 45px var(--shadow1-color),
              0 0 35px var(--shadow1-color),
              0 0 25px var(--shadow1-color);
  border: 1px solid var(--shadow1-color);
  border-radius: 18px;
  z-index: 10000;
  width: 80%;
  max-width: 1000px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.message-success p {
  font-size: 2rem;
  text-align: center;
}

.message-success button {
  width: 200px;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 30px;
}
.message-success button:hover {
  background-color: var(--shadow2-color);
  box-shadow: 0 0 15px var(--primary-color);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateZ(300px) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateZ(300px) translateY(0);
  }
}

@keyframes heroTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  50%, 100% {
    transform: translateX(200%);
  }
}
