@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Slab:wght@100..900&display=swap');

html {
    box-sizing: border-box;
    font-size: 15px;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background-color: #dfdfdf;
    color: #2D3748;
    line-height: 1.6;
}

.header {
    margin: 7rem 10rem;
}

.header h1 {
    font-size: 3rem;
    color: #2C7A7B;
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.2;
}

.header p {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #2D3748;
    margin: 0;
}

.section1 {
    width: 100%;
    display: flex;
    min-height: 70vh;
    padding: 3rem 0;
    background: #2C7A7B;
    margin: 0;
    position: relative;
    align-items: center;
    overflow: hidden;
}

.section1 img {
    margin-left: 5rem;
    width: 50%;
    object-fit: contain;
    max-height: 60vh;
}

.section1 .block {
    width: 40%;
    height: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    padding: 2rem 35px;
    background: rgba(255, 255, 255, 0.4);
}

.block h1 {
    font-size: 3rem;
    width: fit-content;
    text-transform: uppercase;
    color: #fff;
    position: static;
    margin-bottom: 1rem;
}

.block p {
    position: static;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.89);
    width: auto;
}

.section2 {
    margin: 10rem 10rem;
    text-align: center;
}

.section2 h1 {
    font-size: 3rem;
    color: #2D3748;
    position: relative;
    margin-bottom: 1.5rem;
}

.section2 h1::after {
    content: "";
    position: absolute;
    width: 8%;
    min-width: 50px;
    height: 5px;
    background: #2C7A7B;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section2 .cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 5% 0;
    flex-wrap: wrap;
}

.card {
    width: 25%;
    min-width: 280px;
    margin: 15px;
    text-align: center;
    padding: 1rem;
}

.card .icon {
    background: #2C7A7B;
    border-radius: 50%;
    height: 75px;
    width: 75px;
    padding: 0.5rem;
    margin: 0 auto 1rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .icon svg {
    height: 60%;
    width: 60%;
    color: #fff;
}

.section3 {
    margin: 10rem 10rem;
    text-align: center;
}

.section3 h1 {
    font-size: 3rem;
    color: #2D3748;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1.5rem;
}

.section3 h1::after {
    content: "";
    position: absolute;
    width: 8%;
    min-width: 50px;
    height: 5px;
    background: #2C7A7B;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section3 p {
    font-size: 1.5rem;
    margin-top: 5rem;
}

.section3 .btn {
    background: #2C7A7B;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1.3rem;
    color: #ffffff;
    text-decoration: none;
}

.btn:hover {
    background: #32989a;
}

.footer {
    width: 100%;
    min-height: fit-content;
    background: #2C7A7B;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.footer h1 {
    line-height: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.footer p {
    line-height: 0;
}

/* ------------------------------------ */
/* RESPONSIVE - TABLET (např. do 1024px) */
/* ------------------------------------ */
@media (max-width: 1024px) {
    .header {
        margin: 5rem 5rem;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1.3rem;
    }

    .section1 img {
        margin-left: 2rem;
        width: 45%;
    }
    .section1 .block {
        width: 50%;
        padding: 1.5rem 25px;
    }
    .block h1 {
        font-size: 3rem;
    }
    .block p {
        font-size: 1.1rem;
    }

    .section2 {
        margin: 7rem 5rem;
    }
    .section2 h1 {
        font-size: 2.5rem;
    }
    .card {
        width: 40%;
    }
}


/* ------------------------------------ */
/* RESPONSIVE - MOBIL (např. do 768px) */
/* ------------------------------------ */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header {
        margin: 3rem 1.5rem;
    }
    .header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    .header p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .section1 {
        flex-direction: column;
        padding: 2rem 0;
        min-height: auto;
        height: auto;
    }
    .section1 img {
        width: 80%;
        max-width: 400px;
        margin: 0 auto 2rem auto;
        max-height: none;
    }
    .section1 .block {
        position: static;
        transform: none;
        width: 90%;
        margin: 0 auto;
        text-align: center;
        padding: 2rem 1.5rem;
        background: rgba(0, 0, 0, 0.2);
    }
    .block h1 {
        font-size: 2.5rem;
        width: auto;
        margin-bottom: 0.5rem;
    }
    .block p {
        font-size: 1rem;
        width: auto;
    }

    .section2 {
        margin: 4rem 1.5rem;
    }
    .section2 h1 {
        font-size: 2rem;
    }
    .section2 h1::after {
        width: 15%;
        min-width: 60px;
    }
    .section2 .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 85%;
        max-width: 400px;
        margin: 1.5rem 0;
        min-width: 0;
    }
    .card .icon {
        height: 65px;
        width: 65px;
    }
}

/* ------------------------------------ */
/* RESPONSIVE - MENŠÍ MOBIL (např. do 480px) */
/* ------------------------------------ */
@media (max-width: 480px) {
    .header {
        margin: 2rem 1rem;
    }
    .header h1 {
        font-size: 1.8rem;
    }
    .header p {
        font-size: 1rem;
    }

    .section1 .block {
        padding: 1.5rem 1rem;
    }
    .block h1 {
        font-size: 2rem;
    }
    .block p {
        font-size: 0.9rem;
    }

    .section2 {
        margin: 3rem 1rem;
    }
    .section2 h1 {
        font-size: 1.8rem;
    }
    .card {
        width: 95%;
    }
}