html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  color: #57602A;
}

#uvod h1 {
  color: white;
}

a {
  color: #57602A;
}
  
a:hover {
  color: #6A7435;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 155px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .navbar.scrolled {
    height: 70px;
    background: #222;
  }
  
  .navbar.hidden {
    transform: translateY(-100%);
  }
  
  .nav-inner {
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo img {
    height: 120px;
    transition: height 0.3s ease;
  }
  
  .navbar.scrolled .logo img {
    height: 55px;
  }
  
  .nav-links {
    display: flex;
    gap: 45px;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    transition: color 0.3s ease;
  }
  
  .nav-links a {
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    transition: color 0.3s ease;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after {
    width: 70%;
  }
  
  .nav-links a.active::after {
    width: 70%;
  }

  .button {
    background: #57602A;
    color: white;
  }
  
  .button:hover {
    background: #6A7435;
  }

section {
  min-height: 100vh;
  padding: 60px 40px;
}

#kontakt {
    min-height: auto;
    padding: 40px 40px 200px 40px;
  }

#uvod {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
  }
  .uvod-content {
    max-width: 800px;
    padding: 20px;
  }
  
  .uvod-content h1 {
    font-size: 64px;
    margin-bottom: 15px;
  }
  
  .uvod-content p {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .button {
    display: inline-block;
  
    margin-top: 20px;
  
    background: white;
    color: #222;
  
    padding: 20px 45px;
  
    border-radius: 999px;
  
    text-decoration: none;
  
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
  
    transition: all 0.3s ease;
  }
  
  .button:hover {
    background: #57602A;
    color: white;
  }
  
  #uvod img {
    max-width: 180px;
    margin: 30px 0;
  }
  
  #uvod h1 {
    font-size: 56px;
    margin-bottom: 10px;
  }
  
  #uvod p {
    font-size: 22px;
  }

#onas {
  background: #e8e8e8;
  min-height: unset;
}

#sluzby {
  background: #dcdcdc;
}

#kontakt {
  background: #cfcfcf;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.services-grid {
    grid-template-columns: 1fr;
}

.two-columns {
    display: flex;
    align-items: center;
    gap: 50px;
}
  
.two-columns > div {
    flex: 1;
}
  
.two-columns img {
    width: 100%;
    border-radius: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
  
.flip-card {
    aspect-ratio: 1 / 1;
    perspective: 1000px;
}
  
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}
  
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
  
.flip-card-front,
  .flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
}
  
.flip-card-front {
    background-size: cover;
    background-position: center;
  }
  
  .card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: 600;
  }
  
  .flip-card-back {
    background: #222;
    color: white;
    transform: rotateY(180deg);
  
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
  }
  
  .service-card h3 {
    margin-top: 0;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
  }
  
  .contact-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  
  .contact-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #57602A;
    margin-top: 0;
  }
  
  .contact-card h3 i {
    color: #57602A;
    font-size: 24px;
  }
  
  .contact-card h3 {
    margin-top: 0;
    color: #57602A;
  }
  
  .contact-card a {
    color: #57602A;
    text-decoration: none;
  }
  
  .contact-card a:hover {
    text-decoration: underline;
  }

  .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    color: #57602A;
    font-size: 16px;
  }
  
  .copy-btn:hover {
    opacity: 0.7;
  }
  
  .copy-message {
    margin-left: 12px;
    color: #57602A;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .copy-message.show {
    opacity: 1;
  }

  .service-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }
  
  .service-modal.show {
    display: flex;
  }
  
  .service-modal-content {
    position: relative;
    background: white;
    width: min(1200px, 95vw);
    height: min(760px, 90vh);
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #57602A;
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
  }
  
  .modal-left,
  .modal-right {
    min-height: 0;
  }
  
  .modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .modal-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
  }
  
  .price-list {
    margin-top: 30px;
  }
  
  .price-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
  }
  
  .price-list span {
    text-align: left;
  }
  
  .price-list strong {
    text-align: right;
    white-space: nowrap;
    color: #57602A;
  }
  
  .modal-right {
    overflow-y: auto;
    padding-right: 15px;
  }
  
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
  }
  
  .lightbox.show {
    display: flex;
  }
  
  .lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
  }
  
  .lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
  }
  
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .lightbox-arrow.left {
    left: 30px;
  }
  
  .lightbox-arrow.right {
    right: 30px;
  }
  
  .lightbox-close,
  .lightbox-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 38px;
    cursor: pointer;
  }

  .contact-footer {
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
  
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    color: #666;
    font-size: 14px;
  }
  
  .contact-footer a {
    color: #57602A;
    text-decoration: none;
  }
  
  .contact-footer a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none;
  
    background: none;
    border: none;
  
    color: white;
    font-size: 32px;
  
    cursor: pointer;
}

@media (max-width: 768px) {

    .two-columns {
      flex-direction: column;
    }
  
    .services-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
    #kontakt {
      scroll-margin-top: 40px;
    }
  
    .nav-inner {
      padding: 0 20px;
    }
  
    .menu-toggle {

        display: block;
    
    }
    
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
    
      background: #222;
    
      display: none;
      flex-direction: column;
      align-items: flex-end;
    
      gap: 20px;
      padding: 25px 0;
    }
    
    .nav-links.show {
      display: flex !important;
    }
    
    .nav-links a {
      display: inline-block;
      width: auto;
      margin-right: 35px;
      font-size: 20px;
      text-align: right;
    }
    
    .nav-links a::after {
      left: 50%;
      width: 0;
      transform: translateX(-50%);
    }
    
    .nav-links a:hover::after,
    .nav-links a.active::after {
      width: 70%;
    }
    
    .navbar {
    
      height: 90px;
    
    }
    
    .navbar.scrolled {
    
      height: 70px;
    
    }
    
    .navbar.hidden {
    
      transform: none;
    
    }
    
    .logo img {
    
      height: 70px;
    
    }
    
    .navbar.scrolled .logo img {
    
      height: 45px;
    
    }
    .service-modal {
      align-items: flex-end;
      justify-content: center;
      padding: 0;
      overflow: hidden;
    }
    
    .service-modal-content {
      width: 100%;
      height: 88dvh;
      max-height: 88dvh;
    
      border-radius: 24px 24px 0 0;
      padding: 60px 22px 30px 22px;
    
      display: flex;
      flex-direction: column;
      gap: 28px;
    
      overflow-y: auto;
    }
    
    .modal-close {
      position: fixed;
      right: 18px;
      bottom: calc(88dvh - 52px);
      top: auto;
    
      z-index: 5000;
    
      width: 42px;
      height: 42px;
    }
    
    .modal-right h2 {
      margin-top: 0;
      margin-bottom: 16px;
    }

    .modal-gallery {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .modal-gallery img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 14px;
    }
    
    .price-list div {
      font-size: 14px;
    }

    .modal-left {
      display: contents;
    }
    
    .modal-gallery {
      order: 1;
    }
    
    .price-list {
      order: 2;
      margin-top: 0;
    }
    
    .modal-right {
      order: 3;
      margin-top: 25px;
      padding-right: 0;
      overflow: visible;
    }
    
    .modal-right h2 {
      margin-top: 0;
    }
    
    .modal-right::after {
      content: "";
      display: block;
      height: 80px;
    }
}