html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

h1,
h2,
p,
a {
    padding: 5px;
    margin: 0;
    font-size: 14px;
}

section {
    height: 100vh;
    width: calc(100%-120px);
    position: sticky;
    top: 0;
    scroll-margin-top: 100vh;
}

section h1 {
    font-size: 70px;
    font-weight: 900;
    line-height: 50px;
    letter-spacing: 1px;
}

#home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding-top: 100px;
    padding-left: 70px;
    z-index: 1;
}

.house {
    width: 700px;
    height: 560px;
}

.house img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 15px;
}

.complectation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    justify-content: start;
}

.choise {
    display: flex;
    flex-direction: row;
    align-items: center;
}

section h2 {
    font-size: 24px;
    font-weight: 500;
}

section p {
    font-size: 20px;
    font-weight: 900;
}

.order-btn {
    font-size: 24px;
    padding: 10px 20px;
    border: 2px solid #DC882C;
    border-radius: 25px;
    background: rgba(255, 180, 18, 0.3);
    font-weight: 600;
    cursor: pointer;
}

#perspective {
    z-index: 2;
    background-color: rgb(16, 82, 65);
    color: white;
    padding: 100px 50px;
    height: 60vh;
}

#perspective h1 {
    text-align: center;
    margin-bottom: 50px;
}

.proposes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: center;
    justify-content: first baseline;
}

.propose {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.propose img {
    width: 64px;
    height: 64px;
}

.propose h2 {
    min-height: 28px;
    font-size: 26px;
    font-weight: 600;
}

.propose p {
    font-weight: 400;
    font-size: 18px;
}

#gallery {
    z-index: 3;
    background-color: white;
    padding: 100px 50px 0 50px;
}

#contact {
    z-index: 4;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://dovkola.media/wp-content/uploads/2023/09/202242390-1024x680.jpeg');
    background-size: cover;
    color: white;
    padding: 160px 15px 50px 15px;
    height: 70vh;
}

.contact-box {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-box h1 {
    margin-bottom: 15px;
}

.contact-box p {
    color: white;
    margin-bottom: 50px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    color: white;
    width: 700px;
}

.contact-form input,
.contact-form textarea {
    padding: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 25px;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    outline: none;
    color: white;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.3);
}

.contact-form textarea {
    grid-column: span 2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-submit {
    grid-column: span 2;
    padding: 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    background: #8a5208;
    letter-spacing: 5px;
}

@media (max-width: 1024px) {
    section h1 {
        font-size: 40px;
    }

    section h2 {
        font-size: 20px;
    }

    section p {
        font-size: 18px;
    }

    .house {
        width: 100%;
        height: 560px;
    }

    .order-btn {
        font-size: 20px;
    }

    .propose h2 {
        font-size: 20px;
    }

    .propose p {
        font-size: 16px;
    }

    .btn-submit {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 60px !important;
    }

    #home {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
        padding: 80px 15px 0 15px;
    }

    section h1 {
        font-size: 25px;
        padding: 0;
    }

    section h2 {
        font-size: 16px;
    }

    section p {
        font-size: 14px;
    }

    .order-btn {
        font-size: 16px;
    }

    .complectation {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }

    .house {
        width: 100%;
        height: 380px;
    }

    #perspective {
        padding-top: 70px;
        height: 70vh;
    }

    #perspective h1 {
        margin-bottom: 5px;
    }

    .proposes {
        display: flex;
        flex-direction: column;
    }

    .propose {
        flex-direction: row;
        text-align: start;
        flex-wrap: wrap;
        gap: 0;
    }

    .propose h2 {
        font-size: 16px;
        text-align: center;
        min-height: auto;
    }

    .propose p {
        font-size: 14px;
        flex-basis: 100%;
    }

    .propose img {
        width: 36px;
        height: 36px;
    }

}