@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    scroll-margin-top: 100px;
}

p {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 2;
    font-weight: 400;
}

strong{
    font-weight: 600;
}

label{
  font-family: "Poppins", sans-serif;  
}

html{
   overflow-x: hidden !important; 
}

body{
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    width: 100%;
    overscroll-behavior: contain;
    overflow-x: clip;
}

:root{
    --defaultColor:#564CAA; /*#101D3D - Modrá*/ /*#564CAA - Fialová*/
    --secondColor:#44388D; /*#413976 - Modrá*/  /*#44388D - Fialová*/
    --secondBackground: #F5F3FF; /*#F5F4FF - Svtěle modrá*/ /*#F8F6FF - Světle fialová*/
    --primary_text_color:black;
    --second_text_color:white;
    --max-width:1250px;
    --box-shadow: 0px 2px 20px #43388d1f;
}

.flex{
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight{
    color: var(--defaultColor);
}

.highlight-text{
    color: black;
    font-size: 16px;  
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}
.onmobile{
    display: none;
}
.active{
    color: var(--defaultColor);
}
/*Podnadpis*/
h2{
    font-weight: 600;
    font-size: 28px;
}

.title-edit{
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 15px;
}

.title-edit div{
    width: 35%;
    background-color: var(--defaultColor);
    height: 3px;
}

.terms{
    color: #FF9500;
    cursor: pointer;
}

#terms-p{
    display: none;
}

/*Navigace -----------------------------------------------------------*/

nav{
   width: 100%;
    height: 75px;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 997;  
    position: sticky;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
}

.nav-container{
    width: var(--max-width);
    height: 100%;
    justify-content: space-between !important;
}
.nav-left{
    content: '';
            position: relative;
            top: 0;
            flex: 1;
            background-color: var(--defaultColor);
            z-index: 1;
            height: 100%;
            justify-content: start;
}

.nav-left::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 100%;
    width: 100vw;
    background-color: var(--defaultColor);
    z-index: -1;
}

.nav-left::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: calc(100% - 1px);
    width: 51px;
    background-color: var(--defaultColor);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -1;
}

.nav-right{
    flex: 1;
    justify-content: end;
}
.logo{
    width: auto;
    height: 60px;
    z-index: 2;
}

.logo img{
    height: 90%;
}

nav ul{
    list-style: none;
    gap: 25px;
    z-index: 998;
}

nav ul li a{
    font-weight: 500;
    font-size: 15px;
    color: black;
     font-family: "Poppins", sans-serif;
     text-transform: uppercase;
}

nav ul li a:hover{
    transition: 0.1s;
    color: var(--defaultColor);
}


.menu{
    width: 30px;
    height: 30px;
    flex-direction: column;
    gap: 3px;
    display: none;
    margin-right: 20px;
    float: right;
    z-index: 999 !important;
}

.closeMenu{
    position: fixed;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
}
.closeMenu div:nth-child(1){
    transform: rotate(45deg);
}
.closeMenu div:nth-child(2){
display: none;
}

.closeMenu div:nth-child(3){
    transform: rotate(-45deg);
    position: relative;
    top: -6px;
}

.menu div{
    height: 3px;
    width: 100%;
    background-color: var(--defaultColor);
}





/*BUTTON -----------------------------------------------------------*/
.button{
    padding: 17px 30px;
    font-size: 13px ;
    color: var(--second_text_color);
    font-weight: 600;
    background: var(--defaultColor);
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.button:hover{
    transition: 0.2s;
    background-color: var(--secondColor);
    box-shadow: var(--box-shadow);
}
.buttons{
    gap: 15px;
}
.button-type2{
    width: 100px;
    height: 45px;
    font-size:20px;
    background-color: white;
    color: black;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-type2 img{
    height: 20px !important;
    width: auto !important;
}

.button-type2:hover{
    background-color: black;
    transition: 0.3s;
    color: white;
}

.button-type2:hover > img{
    filter: invert(100%);
}

.button-type3{
   border: 2px solid var(--defaultColor);
   background: none;
   color: var(--defaultColor);
}

.button-type3:hover{
    background: var(--defaultColor);
    transition: 0.3s;
    color: white;
}

/*MAIN SECTION -----------------------------------------------------------*/
.main-section {
    width: 100%;
    height: 93vh;
    align-items: start;
    justify-content: end;
    position: relative;
    top: 0; 
    left: 0;
    z-index: 1;
}

.bg-container {
    width: 100%; height: 100%;
    z-index: 1;
}
        .bg-slide {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease-in-out, transform 6s linear; /* Fade + Zoom efekt */
            transform: scale(1);
        }

        .bg-slide.active {
            opacity: 1;
        }

        /* Tmavý overlay přes fotku, aby byl text čitelný */
        .overlay {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to right, #1a1335 0%, transparent 80%);
            z-index: 2;
        }

        /* --- 2. Vrstva: Obsah (Content) --- */
        .content-container {
            position: absolute;
            z-index: 3;
            width: 100%; height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 20px;
        }

        .content-wrapper {
            max-width: var(--max-width);
            width: 100%;
            overflow: hidden;
            flex-direction: column;
            gap: 25px;
            justify-content: start;
            align-items: start;
        }

        .slide-text {
            display: none; /* Skryjeme vše, JS zobrazí aktivní */
            flex-direction: column;
            align-items: start;
            gap: 40px;
        }

        .slide-text.active {
            display: flex;
            width: 50%;
        }

        /* Animace textu */
        .slide-text h1 {
            font-size: 40px;
            font-weight: 600;
            opacity: 0;
            transform: translateY(30px);
            animation: slideUp 0.8s forwards 0.2s;
            color: white;
            text-align: left;
        }

        .slide-text p {
            font-size: 15px;
            opacity: 0;
            transform: translateY(30px);
            animation: slideUp 0.8s forwards 0.4s;
            color: white;
            text-align: left;
        }

        .slide-text .btn {
            padding: 15px 30px;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
           
            color: white;
            background: var(--defaultColor);
            cursor: pointer;
            transition: all 0.3s;
            opacity: 0;
            transform: translateY(30px);
            animation: slideUp 0.8s forwards 0.6s;
            text-decoration: none;
        }

        .slide-text .btn:hover {
            background: white;
            color: var(--defaultColor);
        }

        @keyframes slideUp {
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- Ovládací prvky --- */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background: rgba(255,255,255,0.08);
            border: 2px solid rgba(255,255,255,0.55);
            color: white;
            font-size: 1.4rem;
            width: 48px;
            height: 48px;
            cursor: pointer;
            transition: all 0.3s;
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .nav-btn:hover {
            background: rgba(255,255,255,0.2);
            border-color: white;
        }
        .prev { left: 20px; }
        .next { right: 20px; }

        /* Indikátory (linky dole) */
        .indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .indicators .dot {
            width: 32px;
            height: 3px;
            background: rgba(255,255,255,0.35);
            border-radius: 2px;
            cursor: pointer;
            transition: all 0.3s;
        }
        .indicators .dot.active {
            background: white;
            width: 52px;
        }

       





.title-setion{
    background-size: cover;  /* Roztáhne obrázek na celou sekci */
    background-position: center center; /* Zarovná obrázek na střed */
    background-repeat: no-repeat;
    background-color: var(--secondBackground); /* Zabrání opakování obrázku */
    width: 100%;
    height: 20vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.main-content{
    max-width: var(--max-width);
    width: 100%;
    justify-content: start;
    align-items: center;
}

.title-setion h1{
    font-size: 32px;
    font-weight: 500;
}

/*SECTION --------------------*/
.section{
    width: var(--max-width);
    padding: 100px 0px 0px 0px;
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 25px;
    flex-direction: column;
}


.container{
    width: var(--max-width);
}


/*HOW IT WORKS*/

.steps{
    padding-bottom: 100px;
    padding-top: 50px;
}

.steps-container{
    gap: 25px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.step-card{
    flex-direction: column;
    gap: 20px;
    flex: 1 1 300px;
    padding: 20px;
    align-items: start;
    justify-content: start;
    min-height: 200px;
    border-bottom: 1px solid var(--defaultColor);
    background-color: var(--secondBackground);
}



.step-card-horiontal{
    gap: 25px;
    width: 100%;
    align-items: center;
    justify-content: start;
}

.step-card-horiontal h3{
    font-size: 16px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    color: var(--defaultColor);
}

.step-icon{
    background-color: var(--defaultColor);
    height: 50px;
    width: 50px;
    border-radius: 5px;
}

.step-icon img{
    height: 20px;
    width: auto;
}

.step-card p{
    font-size: 15px;
}





/*ABOUT US ---------------------------------------------------------*/
.about-us{
    gap: 50px;
    padding: 50px 0px 150px 0px;
    flex-direction: column;
    width: 100%;
    background-color: var(--secondBackground);
    position: relative;
}
.about-us-container{
    width: 100%;
    max-width: var(--max-width);
    gap: 50px;
    flex-wrap: wrap;
    align-items: start;
}

.about-us-img{
    flex: 1 1 400px;
    aspect-ratio: 16/14;
    align-self: stretch;
    box-shadow: 0px 8px 50px rgba(0,0,0,0.02);
}

.about-us-container img{
   width: 100%;
   height: 100%;
   object-fit: cover;
   filter: brightness(.92);
}

.about-us-info{
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 25px;
    flex: 1 1 400px;
}

.review{
    width: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 15px;
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 25px;
}

.review h3{
    font-size: 16px;
    font-weight: 600;
}

.review a{
    color: var(--defaultColor);
    padding-bottom: 3px;
}

.review a:hover{
    border-bottom: 1px solid var(--defaultColor);
}

.review-stars{
    gap: 10px;
    align-items: start;
    justify-content: start;
}

.review-stars img{
    height: 15px;
    width: 15px;
}

/*SERVICE*/
.services{
    width: 100%;
    overflow: hidden !important;
    position: absolute;
    bottom: -75px;
}
.services-container{
    padding: 40px 0px;
    margin: 0 auto;
    flex-wrap: wrap;
    width: var(--max-width);
    background: linear-gradient(80deg, var(--secondColor), var(--defaultColor));
}
.service-block{
    flex: 1;
    min-width: 200px;
}
.service-text{
    flex-direction: column;
    gap: 5px;
    align-items: start;
    color: white;
    font-weight: 600;
}
.service-text span:first-child{
    font-size: 23px;
    font-weight: 600;
    color: white;
}
.service-block{
    gap: 15px;
}

.service-block img{
    height: 50px;
}

.service-block:nth-child(1) img{
    height: 60px; 
}

.service-block:nth-child(3) img{
    height: 60px; 
}

.service-gap{
    gap: 5px;
}

.plus{
    font-size: 20px;
}

/*WORK SECTION-------------------------------------------------------------*/
.work{
    padding: 200px 0px 150px 0px;
    
}

.work-container{
    gap: 25px;
    width: 100%;
    flex-wrap: wrap;
}

.work-card{
    flex: 1 1 300px;
    height: 450px;
    align-items: start;
    justify-content: end;
    gap: 25px;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    transition: 0.2s ease-in-out;
     background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}



.work-card-overlay{
    height: 100%;
    width: 100%;
   background: linear-gradient(
        to top, 
        #1a1335 0%,        /* Úplně dole: Tmavá fialová (100% krytí) */
        #1a1335 15%,       /* Do 40% výšky: Stále plná barva (kvůli textu) */
        transparent 100%   /* Nahoře: Úplně průhledná */
    );
    flex-direction: column;
    align-items: start;
    justify-content: end;
    padding-bottom: 25px;
    gap: 15px;
    transition: 0.2s ease-in-out;
    background-color: transparent;
}

.work-card:nth-child(1){
    background-image: url(Images/instalateri.webp);
}

.work-card:nth-child(2){
    background-image: url(Images/sadrokarton.jpeg);
}

.work-card:nth-child(3){
    background-image: url(Images/topeni.webp);
}

.work-card img{
    height: 45%;
    width: 100%;
}

.work-text{
    gap: 10px;
    padding: 0px 25px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.work-text-full{
    flex-direction: column;
    gap: 50px;
    transform: translateY(calc(100% - 75px));
    transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
    padding-top: 25px;
}

.work-text h3{
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
}

.work-text img{
    height: 35px;
    width: 35px;
}

.button-search{
    background-color: var(--defaultColor);
    height: 50px;
    width: 50px;
}

.button-search img{
    height: 20px;
    width: 20px;
    transform: rotate(-90deg);
    transition: transform 0.4s ease;
}

.work-text-flex{
    gap: 15px;
}


.work-card p{
    padding: 0px 25px;
    color: white;
}

.work-card-overlay:hover > .work-text-full{
    transform: translateY(0);
    background-color: #1a1335;
    gap: 25px;
}

.work-card-overlay:hover .button-search img{
    transform: rotate(90deg);
}

@keyframes priletTextu {
    from {
        opacity: 0;
        transform: translateY(10px); /* Přiletí zespodu */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*CONTACT FORM*/
.contact-section {
            position: relative;
            width: 100%;
            min-height: 600px;
            background-color: var(--secondBackground); /* Světle fialové pozadí vpravo */
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden; /* Aby obrázek nepřetékal */
            padding: 50px 20px;
        }

        /* --- 1. VRSTVA: OBRÁZEK VLEVO (Dřevo) --- */
        .bg-image {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 45%; /* Zabírá 45% šířky obrazovky */
        
            background-image: url(/Images/sadrokarton.jpeg);
            background-size: cover;
            background-position: center;
            
            clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
            
            z-index: 1;
        }

        /* Tmavý filtr přes fotku (volitelné) */
        .bg-image::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.3);
        }

        /* --- 2. VRSTVA: KONTEJNER PRO OBSAH --- */
        .container {
            position: relative;
            z-index: 2;
            max-width: var(--max-width);
            width: 100%;
            display: flex;
            gap: 60px;
            align-items: start;
        }

        /* --- LEVÁ ČÁST: FORMULÁŘ --- */
        .contact-form {
            flex: 1;
            max-width: 500px;
            background-color: var(--defaultColor); /* Tvá fialová */
            padding: 40px;
            color: white;
            box-shadow: 0 15px 30px rgba(72, 54, 136, 0.3);
            gap: 25px;
            flex-direction: column;
        }

        .contact-form h2 {
            font-size: 24px;
            align-self: start;
        }

        .contact-form form{
            flex-direction: column;
            gap: 25px;
            width: 100%;
        }

        .form-group{
            width: 100%;
            flex-direction: column;
            justify-content: start;
            align-items: start;
            gap: 5px;
            font-size: 14px;
        }

        .row { 
            display: flex;
            gap: 20px;
            width: 100%;
        }
        
        .contact-form input, 
        .contact-form textarea {
            width: 100%;
            padding: 15px;
            border: none;
            font-size: 14px;
            outline: none;
        }
        
        .contact-form textarea { height: 120px; resize: none; }

        .btn-submit {
            width: 100%;
            padding: 15px;
            background: white;
            color: var(--defaultColor);
            font-weight: 700;
            border: none;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: 0.3s;
        }
        .btn-submit:hover { background: #eee; }

        /* --- PRAVÁ ČÁST: TEXT A KONTAKTY --- */
        .contact-info {
            flex: 1;
            color: #333;
            flex-direction: column;
            align-items: start;
            justify-content: start;
            gap: 25px;
            position: relative;
            height: 100%;
        }

        .contact-info h3 {
            font-size: 28px;
            margin-bottom: 15px;
            color: #000;
        }

        .info-card {
            background: white;
            padding: 20px;
            display: flex;
            align-items: start;
            justify-content: start;
            gap: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            width: 100%;
            flex-direction: column;
        }

      
        .info-card-info{
            gap: 10px;
            justify-content: center;
            align-items: center;
        }

        .info-card a{
            font-weight: 600;
            color: #333;
        }

        .info-card-info img{
            height: 16px;

        }

        .info-card strong {
            display: block;
            color: #483688;
            text-transform: uppercase;
            font-size: 14px;
        }


        .social-medias{
            gap: 25px;
            width: 100%;
        }

        .social-medias div{
            background-color: var(--defaultColor);
            height: 1px;
            width: 100%;
        }

        .social-medias .icons{
            width: auto;
            height: auto;
            background-color: transparent;
            gap: 15px;
        }

        .social-medias .icons img{
            height: 35px;
        }






/* --- HLAVNÍ SEKCE --- */
.projects-section {
    text-align: center;
    padding: 60px 0;
    width: 100%;
    background: #fff;
    overflow: hidden;
    justify-content: center;
    align-items: center; /* Aby nám slider nerozhodil šířku stránky */
}



/* --- KONTEJNER (RÁM) --- */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    /* Pevná výška je nutná, protože karty mají absolute position */
    height: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- KARTA (ZÁKLADNÍ STYL) --- */
.carousel-card {
    position: absolute;
    /* Vycentrování karty doprostřed kontejneru */
    top: 50%;
    left: 50%;
    /* Defaultní stav: vycentrovaná, zmenšená, neviditelná */
    transform: translate(-50%, -50%) scale(0.8);
    
    width: 350px;       /* Základní šířka */
    height: 300px;      /* Základní výška */
    
    background: #f0f0f0;
    overflow: hidden;
    opacity: 0;         /* JS se postará o zviditelnění */
    transition: all 0.5s ease-in-out; /* Hladká animace pohybu */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- STAVY KARET (PŘIDÁVÁ JS) --- */

/* 1. AKTIVNÍ KARTA (UPROSTŘED) */
.carousel-card.active {
    opacity: 1;
    z-index: 10;
    /* Zvětšíme ji (scale 1.3) a necháme přesně uprostřed */
    transform: translate(-50%, -50%) scale(1.3);
}

/* 2. LEVÁ KARTA (PREV) */
.carousel-card.prev {
    opacity: 0.6;
    z-index: 5;
    /* Posuneme doleva (-150%) */
    transform: translate(-150%, -50%) scale(0.9);
}

/* 3. PRAVÁ KARTA (NEXT) */
.carousel-card.next {
    opacity: 0.6;
    z-index: 5;
    /* Posuneme doprava (50%) - matematika: -50% (střed) + 100% (posun) */
    transform: translate(50%, -50%) scale(0.9);
}

/* --- OVLÁDÁNÍ (TLAČÍTKA) --- */
.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--defaultColor);
    color: white;
    border: none;
    width: 46px; height: 46px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-nav:hover {
    background-color: #35266b;
    transform: translateY(-50%) scale(1.05);
}

.project-prev { left: 0%; }
.project-next { right: 0%; }

/* --- LINKY (PAGINACE) --- */
.project-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.project-pagination .dot {
    width: 32px;
    height: 3px;
    background: #ccc;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.project-pagination .dot.active {
    background: var(--defaultColor);
    width: 52px;
}




/*FOOTER ------------------------------------------------------------------*/
footer{
    background: linear-gradient(80deg, var(--secondColor), var(--defaultColor));
    width: 100%;
    padding: 50px 0px 0px 0px;
    flex-direction: column;
}

.footer-container{
    width: var(--max-width);
    padding-bottom: 50px;
}

.footer-left-block{
    flex-direction: column;
    gap: 20px;
    align-items: start;
    flex: 1;
}

.footer-logo{
    height: 75px;
    width: 75px;
}

.footer-logo img{
    height: 95%;
}

.footer-left-block p{
    color: white;
}
.footer-info{
    gap: 10px;
    width: 220px;
    align-items: center;
    justify-content: start;
}
.footer-info span{
    color: white;
}

.footer-info a{
    color: white;
    font-weight: 500;
}

.footer-info img{
    height: 20px;
}

.footer-blocks{
    flex: 2;
    align-items: start;
}

.footer-block{
    flex-direction: column;
    flex: 1;
    gap: 25px;
}

.footer-block h2{
    color: white;
    font-weight: 500;
    font-size: 22px;
    width: 70px;
}

.footer-block:nth-child(2) h2{
    width: 220px;
}

.footer-block:last-child{
    align-items: start;
}

.footer-block ul{
    list-style: none;
    flex-direction: column;
    gap: 25px;
    align-items: start;
    justify-content: start;
    width: 70px;
}
.footer-block ul li{
    align-items: center;
    justify-content: start;
    gap: 15px;
}
.footer-block ul li a{
    color: white;
    font-weight: 500;
}
.footer-block ul li img{
    height: 15px;
}

.footer-block:nth-child(2){
    align-items: center;
}

.footer-bottom{
    width: 100%;
    background-color: var(--secondBackground);
    padding: 15px 0px;
}

.footer-bottom p{
    max-width: var(--max-width);
    width: 100%;
    text-align: center;
}

.footer-icons{
    gap: 15px;
}

.footer-icons img{
    height: 25px;
}

/*PLACE ----------------------------------------------------*/
.place{
    width: 100%;
    flex-direction: column;
    gap: 25px;
}

.place iframe{
    width: 100%;
    height: 400px;
}

.place-info{
    width: var(--max-width);
}




/*ANIMATIONS*/
.scroll-animation-right,
.scroll-animation-left {
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.scroll-animation-right {
    transform: translateX(100px);
}

.scroll-animation-left {
    transform: translateX(-100px);
}

/* Když se prvek zobrazí, posune se na místo a ukáže */
.show-right {
    opacity: 1;
    transform: translateX(0);
}

.show-left {
    opacity: 1;
    transform: translateX(0);
}



/*Gallery*/
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: var(--max-width);
    padding: 50px 0;
}

.gallery-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex: 1 1 300px;
    height: 250px;
}

.gallery img {
    transition: 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-gallery {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: #35266b79;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

.overlay-gallery::after {
    content: "+";
    font-size: 14px;
    font-weight: 400;
    color: var(--defaultColor);
    font-weight: bold;
    background-color: white;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover .overlay-gallery {
    opacity: 1;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}
/*
.prev, .next {
    position: absolute;
    top: 50%;
    font-size: 30px;
    color: var(--defaultColor);
    background: white;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}
*/

/*accommodations-container*/
.accommodations-section {
    width: var(--max-width);
    flex-direction: column;
    gap: 50px;

}

.accommodation-block{
    height: 350px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.accommodation-info{
    padding: 25px;
    gap: 15px;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.accommodation-info h3{
    font-size: 22px;
}

.accommodation-block:nth-child(2){
    flex-direction: row-reverse;
}

.accommodation-block img{
    width: 40%;
    height: 100%;
}

/*Equipment*/
.equipment-container{
    width: var(--max-width);
    gap: 20px;
}

.equipment-card{
    width: 300px;
    height: 70px;
    border: 2px solid var(--defaultColor);
    border-radius: 50px;
    padding: 7px;
    overflow: hidden;
    gap: 15px;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}
.equipment-card h3{
    font-size: 14px;
    color: var(--defaultColor);
}

.equipment-card-info{
    width: 100%;
    justify-content: space-between;
   
}

.equipment-name{
    gap: 10px;
}

.equipment-card img:last-child{
    height: 20px;
}
.equipment-card-icon{
    height: 55px;
    width: 55px;
    border-radius: 50%;
    background-color: var(--defaultColor);
}

.equipment-card-icon img{
    height: 35px !important;
}


/*NEWS PAGE*/
.news-section{
    padding-top: 0px;
    padding-bottom: 100px;
}

/*ACTION*/
.action-container{
    width: var(--max-width);
    gap: 50px;
}
.action-img{
    width: 50%;
    aspect-ratio: 16/12;
    min-width: 300px;
}

.action-img img{
    width: 100%;
    height: 100%;
    box-shadow: -7px 7px 0px var(--defaultColor);
}

.action-block{
    width: 50%;
    flex-direction: column;
    gap: 20px;
    align-items: start;
    justify-content: start;
}

.action-block h3{
    font-size: 25px;
}

.date{
    color: var(--defaultColor);
    font-weight: 700;
    font-size: 18px;
}



/* --- LIGHTBOX POZADÍ --- */
.modal {
  display: none;
  position: fixed;
  z-index: 99990; /* Vysoké číslo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

/* --- KŘÍŽEK (ZAVŘÍT) - UPRAVENO --- */
.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #f1f1f1;
  font-size: 50px; /* Velký křížek */
  font-weight: bold;
  cursor: pointer;
  z-index: 100000; /* Musí být úplně nahoře */
  transition: 0.3s;
  
  /* Zvětšení klikací plochy pro lepší ovládání */
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Jemné podbarvení, aby byl vidět i na světlém obr. */
  border-radius: 50%; 
}

.close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* --- OBRÁZEK --- */
.modal-content {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  user-select: none; /* Aby se neoznačoval při dvojkliku */
}

/* Animace */
/* Animace - přidat do tvého CSS */
.fade-anim {
  animation-name: fade;
  animation-duration: 0.4s;
}

@keyframes fade {
  from {opacity: 0.3} 
  to {opacity: 1}
}

/* --- ŠIPKY --- */
.prev-picture, .next-picture {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  z-index: 99995;
  background-color: rgba(0,0,0,0.3); /* Aby byly lépe vidět */
  border-radius: 3px;
}

.next-picture { right: 10px; }
.prev-picture { left: 10px; }

.prev-picture:hover, .next-picture:hover {
  background-color: rgba(0,0,0,0.8);
}

.error-page-container{
    min-height: 50vh;
    background-color: var(--ColorLightYellow);
    flex-direction: column;
    gap: 50px;
}