/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overscroll-behavior: none;
}
h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    color: #3bb07a;
}

p {
    font-size: 1rem;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #F1F1F1;
    color: #333;
    overflow-x: hidden;
}
.section-1 {
    width: 100vw;
    display: flex;
    justify-content: center;
}
.div-section-1 {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9; 
    border-radius: 0 0 30px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.div-section-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 30px 30px;
}
.img1-overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #3bb07a, #3bb0794b, #3bb07900);
    opacity: 0.7; /* Poloprůhledná vrstva */
    border-radius: 0 0 30px 30px;
    top: 0;
    left: 0;
}
.nadpisy1 {
    position: absolute;
    width: 40%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
}
.nadpisy1 h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: white;
}
.nadpisy1 p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 200;
}
.navbar {
    position: fixed;
    width: 90%;
    height: 50px;
    background-color: white;
    border-radius: 100px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 11;
}
.logo {
    height: 100%;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo svg {
    width: auto;
    height: 80%;
    object-fit: contain;
}
.nav-links  {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    
}
.nav-links li {
    padding: 5px 0;
    border-radius: 30px;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
    transition: color 0.3s ease;
}
.nav-links li a:hover {
    color: #3bb07a; /* Změna barvy při najetí myší */
}
.nav-links li a.active2 {
    color: #3bb07a; /* Změna barvy při kliknutí */
    font-weight: bold;
}
.nav-links li a {
    text-decoration: none;
    color: inherit; /* Zajistí, že odkaz zdědí barvu rodiče */
    text-transform: uppercase; /* Velká písmena pro odkazy */
}
.navbar-overlay {
    opacity: 0;
    position: fixed;
    width: 90%;
    height: 70px;
    background-color: white;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}
    /* Section 2 */

.section-2 {
    width: 100vw;
    display: flex;
    justify-content: center;
}
.div-section-2 {
    padding: 80px 0;
    position: relative;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
}
.texty {
    width: 45%;
}
.texty h1 {
    margin-bottom: 20px;
}
.img1 {
    width: 55%;
    aspect-ratio: 3/2;
}
.img1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Section 3 */

.section-3 {
    width: 100vw;
    display: flex;
    justify-content: center;
}
.div-section-3 {
    padding: 0 0 80px 0;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}
.div-section-3 h1 {
    margin-bottom: 20px;
}
.main-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.blok {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
    color: #222;
}
.blok i {
    background-color: rgba(59, 176, 121, 0.15);
    color: #3bb07a;
    width: 30%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    font-size: 2rem;
    align-content: center;
    text-align: center;
    margin-bottom: 20px;

}

/* Section 4 */

.section-4 {
    width: 100vw;
    display: flex;
    justify-content: center;
    background-color: rgb(0, 0, 0);
}
.div-section-4 {
    padding: 160px 0;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
}
.div-section-4 h1 {
    color: white;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}
.main-container-2 {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}
.texty2 {
    width: 60%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.model {
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.texty2 p {
    font-size: 1.2rem;
    margin-top: 40px;
}
.menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.polozka {
    background-color: #fff;
    padding: 15px;
    border-radius: 30px;
    overflow: hidden;
    font-size: .8rem;
    color: #222;
    align-content: center;
    text-align: center;
}
.polozka.active {
    background-color: #3bb07a;
    color: white;
}
.polozka:hover {
    background-color: #3bb07a;
    color: white;
}

/* Section 5 */


.section-5 {
    width: 100vw;
    display: flex;
    justify-content: center;
    background-color: #F1F1F1;
}
.div-section-5 {
    padding: 80px 0;
    position: relative;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: nowrap;
}
.div-section-5 h1 {
    margin-bottom: 20px;
}
.main-container-3 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}
.left {
    width: 66%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.blok2 {
    background-color: #fff;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
    color: #222;
}
.blok2 i {
    background-color: rgba(59, 176, 121, 0.15);
    color: #3bb07a;
    width: 15%;
    aspect-ratio: 1/1;
    border-radius: 15px;
    font-size: 2rem;
    align-content: center;
    text-align: center;
    margin-bottom: 20px;
}
.blok2 h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.right {
    width: 33%;
    
}
.right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;

}





/* Section 6 */

.section-6 {
    width: 100vw;
    display: flex;
    justify-content: center;
}
.div-section-6 {
    padding: 20px 0;
    position: relative;
    width: 80%;
    border-radius: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: nowrap;
}
.img6 {
    width: 40%;
    aspect-ratio: 2/1;
    border-radius: 30px;
}
.img6 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}
.text6 {
    width: 60%;
    display: flex; 
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}
.text6 h1 {
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

/* Section form */

.contact {
    width: 100vw;
    display: flex;
    justify-content: center;
    background-color: #F1F1F1;
    margin-top: 80px;
}
.div-section-contact {
    padding: 80px 5%;

    position: relative;
    width: 90%;
    background-color: #3bb07a;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    border-radius: 30px;
    gap: 100px;
}
.contact-left {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}
.contact-left h1 {
    margin-bottom: 20px;
    color: white;
}


.contact-form {
    border-radius: 10px; /* Mírné zaoblení, pokud chcete */
    width: 60%;
    box-sizing: border-box;
    padding-top: 20px;
}

/* Skrytí labelů vizuálně, ale ponechání pro screen readery */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 18px 25px; /* Větší padding pro vyšší pole */
    margin-bottom: 20px;
    border: none;
    background-color: #f0f0f0; /* Světle šedé pozadí polí */
    border-radius: 30px; /* Výrazné zaoblení rohů */
    font-size: 16px;
    color: #222;
    box-sizing: border-box; /* Důležité pro správné počítání šířky s paddingem */
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #777; /* Barva placeholder textu */
    opacity: 1; /* Pro Firefox */
}

.contact-form textarea {
    resize: vertical; /* Umožní uživateli měnit výšku textarea */
    min-height: 150px; /* Minimální výška textarea */
}

.form-row {
    display: flex;
    gap: 20px; /* Mezera mezi Telefon a Email */
    margin-bottom: 0; /* Margin-bottom je na jednotlivých inputech */
}

.form-row > div {
    flex: 1; /* Každý input v řádku zabere stejnou šířku */
}

/* Oprava marginu pro poslední input v řádku, pokud nechceme dvojitý margin */
.form-row input {
    margin-bottom: 20px; 
}
/* Pokud by inputy v .form-row měly mít margin-bottom pouze pokud nejsou poslední: */
/*
.form-row > div:not(:last-child) input {
    margin-bottom: 20px;
}
.form-row > div:last-child input {
     margin-bottom: 20px; /* Nebo 0, pokud pod tím hned následuje další prvek bez vlastního horního marginu
}
*/


.consent-text {
    font-size: 14px;
    color: #ffffff; /* Tmavší odstín textu souhlasu */
    margin-top: 0; /* Snížení marginu po textarea */
    margin-bottom: 25px;
    text-align: left; /* Zarovnání textu doleva */
}

.consent-text .underline {
    text-decoration: underline;
}

.contact-form button[type="submit"] {
    background-color: black; /* Tmavě šedé pozadí tlačítka */
    color: white;
    padding: 18px 35px; /* Větší padding pro tlačítko */
    border: none;
    border-radius: 30px; /* Stejné zaoblení jako u inputů */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block; /* Aby se tlačítko přizpůsobilo obsahu */
}

.contact-form button[type="submit"]:hover {
    background-color: #333; /* Tmavší při najetí myší */
}


/* Section footer */

.footer {
    width: 100vw;
    display: flex;
    justify-content: center;
    background-color: black;
    margin-top: 100px;
}
.div-footer {
    padding: 40px 0;
    position: relative;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    color : white;
}



/* Responsive styles for mobile phones */
@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem;
        margin: 20px 0 10px 0 !important;
    }
    .section-1,
    .section-2,
    .section-3,
    .section-4,
    .section-5,
    .section-6,
    .contact,
    .footer {
        width: 100vw;
    }
    .footer {
        margin-top: 0;
    }
    .div-section-1 {
        aspect-ratio: 9/12; /* Změna poměru stran pro mobil */
        width: 100%;
    }
    .div-section-1 img {
        object-position: 86%;
    }
    .div-section-5 h1, .div-section-5 p {
        margin-bottom: 10px;
    }
    
    
    .div-section-3,
    .div-section-4,
    .div-section-5,
    .div-section-6,
    .div-footer {
        width: 90%;
        padding: 20px 0 !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center;
    }
    
    
    .navbar {
        
        position: absolute;
        width: 80%;
        height: 60px;
        padding: 0 20px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 30px 30px;
        justify-content: center;
    }
    .navbar-overlay {
        display: none;
    }
    
    
    .nav-links {
        display: none;
    }
    .nadpisy1 {
        display: none;
        width: 100%;
        left: 0;
        top: 80%;
        text-align: center;
    }
    .nadpisy1 h1 {
        font-size: 2rem;
    }
    .nadpisy1 p {
        font-size: 1rem;
    }
    .div-section-2,
    .main-container-2,
    .main-container-3,
    .div-section-contact {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;
        width: 100%;
        padding: 20px 8% !important;
        border-radius: 0;
    }
    .contact-left {
        text-align: center;
    }

    .texty,
    .img1,
    .texty2,
    .model,
    .left,
    .img6,
    .text6,
    .contact-left,
    .contact-form {
        width: 100% !important;
        min-width: 0;
    }
    .text6 h1, .texty2 h1 {
        width: 100%;
        text-align: center;
    }
    .right {
        display: none;
    }
    .main-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    .left {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 10px;
    }
    .blok,
    .blok2,
    .polozka {
        padding: 18px;
        font-size: 0.95rem;
    }
    .blok i,
    .blok2 i {
        width: 15%;
        font-size: 1.5rem;
    }
    .div-footer {
        flex-direction: column;
        gap: 15px;
        width: 95%;
        padding: 20px 0;
        text-align: center;
    }
    .contact {
        margin-top: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 14px 15px;
    }
    .contact-form button[type="submit"] {
        width: 100%;
        padding: 15px 0;
        font-size: 1rem;
    }
}


/* Responsive styles for tablets */
@media screen and (min-width: 767px) and (max-width: 1024px) {
    h1 {
        font-size: 1.8rem;
        margin: 20px 0 10px 0 !important;
    }
    .section-1,
    .section-2,
    .section-3,
    .section-4,
    .section-5,
    .section-6,
    .contact,
    .footer {
        width: 100vw;
    }
    .footer {
        margin-top: 0;
    }
    .div-section-1 {
        aspect-ratio: 16/9; /* Změna poměru stran pro mobil */
        width: 100%;
    }
    .div-section-1 img {
        object-position: 86%;
    }
    .div-section-5 h1, .div-section-5 p {
        margin-bottom: 10px;
    }
    
    .div-section-2,
    .div-section-3,
    .div-section-4,
    .div-section-5,
    .div-section-6,
    .div-footer {
        width: 90%;
        padding: 20px 0 !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center;
    }
    
    
    .navbar {
        position: fixed;
        width: 95%;
        height: 60px;
        padding: 0 15px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 30px;
        justify-content: space-between;
    }
    .navbar-overlay {
        width: 95%;
    }
    
    
    
    .nav-links {
        gap: 20px;
    }
    .nav-links li:nth-child(3) {
        display: none;
    }
    .nav-links li a {
        font-size: 0.9rem;
    }
    .nadpisy1 {
        width: 100%;
    }
    .nadpisy1 h1 {
        font-size: 2rem;
    }
    .nadpisy1 p {
        font-size: 1rem;
    }
    .div-section-2,
    .main-container-2,
    .main-container-3,
    .div-section-contact {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;

    }
    .div-section-contact {
        width: 100%;
        padding: 20px 8% !important;
        border-radius: 0;
    }
    .contact-left {
        text-align: center;
    }

    .texty,
    .img1,
    .texty2,
    .model,
    .left,
    .img6,
    .text6,
    .contact-left,
    .contact-form {
        width: 100% !important;
        min-width: 0;
    }
    .text6 h1, .texty2 h1 {
        width: 100%;
        text-align: center;
    }
    .right {
        display: none;
    }
    .main-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: 15px;
    }
    .left {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .texty2 {
        justify-content: center;
    }
    .menu {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 20px;
    }
    .blok,
    .blok2,
    .polozka {
        padding: 18px;
        font-size: 0.95rem;
    }
    .blok i,
    .blok2 i {
        width: 15%;
        font-size: 1.5rem;
    }
    .div-footer {
        flex-direction: column;
        gap: 15px;
        width: 95%;
        padding: 20px 0;
        text-align: center;
    }
    .contact {
        margin-top: 40px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 14px 15px;
    }
    .contact-form button[type="submit"] {
        width: 100%;
        padding: 15px 0;
        font-size: 1rem;
    }
}