* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}


body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #f5f5f5;
}

.header {
    padding: 4rem 1rem;
    text-align: center;
    color: #fff;
    background: #2d6e25;
    font-size: 35px;
    border-bottom: 1px solid black;
}





.nav {
    position: fixed;
    inset: 0;
    background: #2d6e25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    width: 20rem;
    border-top: 2px solid white;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

.nav a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
    display: flex;
    height: 5rem;
    padding-left: 1rem;
    align-items: center;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background-color: #452822;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    width: 100%;
}


.content {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
}


.section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.section h2 {
    margin-bottom: 1rem;
    color: #2d6e25;
    font-size: 50px;
}

.section p {
    font-size: 22px;
}


.footer {
    position: relative;
    height: 100px;
    display: flex;
    color: #666;
    border-top: 1px solid #ddd;
    flex-direction: row;
    padding-top: 100px;
    align-items: center;
}



.contact-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 400px;
    gap: 10px;

}

.Adresa {
    padding-top: 25px;
}

.copy {
    padding-left: 73rem;
}

.contact {
    padding-right: 3%;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: #2d6e25;
    font-weight: bold;
}

.map {
    margin-top: 1.5rem;
    border: 1px solid #ddd;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    width: 15%;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hamburger {
    position: fixed;
    top: 1.2rem;
    left: 1.2rem;
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.home-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  color: #444;
  border-radius: 8px;

  text-decoration: none;
  z-index: 1000;
}

.home-btn:hover {
  background: #444;
  color: #fff;
}



.subnav li a {
    font-size: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #abc9a7;
    padding-left: 100px;
    padding-right: 100px;
    color: #fff;
}

h4 {
    font-size: 30px;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

h5 {
    font-size: 20px;
    text-align: left;
}


.section li {
    text-align: left;
    margin-left: 100px;
}


.gallery {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
    
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: #abc9a7;
    padding: 1rem;
    border-radius: 6px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.barvy {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}


.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.barvy img {
        max-width: 20%;
    max-height: 20%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;

    font-size: 32px;
    color: #fff;
    cursor: pointer;

    z-index: 2100;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 40px;
    color: #fff;
    cursor: pointer;

    padding: 10px;
    user-select: none;
    z-index: 2100;
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox figure {
    text-align: center;
    color: #fff;
}

.lightbox-caption {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.85;
    color: white;
}



.team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    padding-left: 5rem;
    gap: 2rem;
}


.team img{
    width: 55%;
    aspect-ratio: 1 / 1;
}

#rdi3d {
    text-align: left;
    display: grid;
    gap: 1rem;
}

.tabulka {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    text-align: center;
    border: 2px solid #abc9a7;
}

.tabulka p {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.tabulka2 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    text-align: center;
    border: 2px solid #abc9a7;
}

.tabulka2 p {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.tabulka2 h5 {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #2d6e25;
    color: #fff;
    text-align: center;
}
.tabulka h5 {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #2d6e25;
    color: #fff;
    text-align: center;
}

.tabulka3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    text-align: center;
    border: 2px solid #abc9a7;
}

.tabulka3 p {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.tabulka3 h5 {
    border: 1px solid #abc9a7;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #2d6e25;
    color: #fff;
    text-align: center;
}

#cena{
    text-align: left;
    padding: 2rem;
}

#cena h2{
    text-align: center;
}

.zlab {
    padding: 2rem;
}

.vetrani {
    text-align: left;
}

.otazky h4{
    text-align: left;
}

#foto li {
    font-size: 30px;
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        width: 100%;
        height: 60rem;
        justify-content: center;
        gap: 1.5rem;
        top: 6rem;
        
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    }

    .footer {
    height: 80px;
    display: flex;
    color: #666;
    border-top: 1px solid #ddd;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
    text-align: center;
}

.hamburger {
    top: 2rem;
    position: absolute;
    display: flex;
}

.nav.open {
    transform: translateX(0);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


.contact-container {
    padding-left: 0px;

}


main {
    padding-top: 20px;
    flex: 1;
    padding-bottom: 0px;
}

.copy {
    padding-left: 0%;
}

.contact {
    padding-right: 0%;
}

    .content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
