
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: black;
}


.wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.header{
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    /*flex-direction: column;*/
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    opacity: 0.95;
}
.footer {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*position: sticky;*/
    /*top: 0;*/
    /*z-index: 10;*/
    /*opacity: 0.95;*/
}

.title {
    font-size: 1.5rem;
}

.nav {
    /*padding: 1rem;*/
    display: flex;
    gap: 2rem;
    /*font-size: 1rem;*/
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.block1-section {
    position: relative;
    height: 400px;
}

.block1-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block1-text {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #F0F8FFCC;
    padding: 2rem;
    max-width: 70%;
    height: 100%;
}


.features-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    border: 2px solid black;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.feature-text{
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.feature img {
    border-radius: 1rem;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 1rem 0;
}

.feature-links {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    width: 100%;
}

.feature-links a {
    background-color: #f65472;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    width: 50%;
}


.contact-section {
    text-align: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.contact-image {
    width: 100%;
    max-width: 300px;
    border-radius: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.contact-form input{
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CCCCCCFF;
    border-radius: 1rem;
}
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CCCCCCFF;
    border-radius: 1rem;
}

.contact-form button {
    padding: 0.75rem;
    background-color: black;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
}

.footer {
    background: black;
    color: white;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.footer  div {
    flex: 1;
    min-width: 200px;
}

.footer-social label {
    display: block;
    margin-bottom: 0.5rem;
}


@media (min-width: 700px) {
    .features-section {
        flex-direction: row;
    }

    .feature {
        width: 48%;
    }

    .contact-wrapper {
        flex-direction: row;
        justify-content: center;
    }

    .contact-image {
        max-width: 40%;
    }

    .contact-form {
        max-width: 50%;
    }

    .block1-text {
        left: 60%;
        max-width: 40%;
    }

    .title {
        font-size: 2rem;
    }

    .nav {
        font-size: 1.2rem;
    }
}
