* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Geist Mono", monospace;
    background-color: rgb(224, 224, 224);
}

body,
button,
input,
textarea {
    font-family: "Geist Mono", monospace;
    outline: 0;

}

input,
textarea {
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    border: 3px solid transparent;
    box-shadow: 0px 2px 8px rgb(184, 184, 184);
}

label,
input,
textarea {
    resize: vertical;
    font-size: 1.25rem;
}

input:focus,
textarea:focus {
    outline: 0;
    border: 3px solid rgb(247, 71, 30);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(14, 50, 173);
    padding: 24px 120px;
}

nav {
    display: flex;
    gap: 24px;
    font-size: 1.25rem;
}

nav a {
    color: rgb(247, 71, 30);
    text-decoration: none;
}

nav a:hover {
    font-weight: bold;
    text-decoration: underline;
}

main {
    display: flex;
    flex-direction: column;
    gap: 160px;
    padding: 80px 120px;
    max-width: 1920px;
    align-self: center;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 300;
}

h2 span {
    font-weight: 500;
    color: black;
}

h2 span:hover {
    background-color: rgb(247, 71, 30);
    color: rgb(14, 50, 173);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
}


p {
    font-size: 1.25rem;
}

section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

article {
    display: grid;
    grid-template-rows: 100px auto auto;
    gap: 8px;
    background-color: rgb(247, 71, 30);
    padding: 24px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 2px 8px rgb(184, 184, 184);
    width: 100%;
    border-left: 8px solid rgb(14, 50, 173);
}

article a {
    color: rgb(14, 50, 173);
    font-weight: bold;
    cursor: pointer;
}

article a::after {
    content: '►';
    padding-left: 8px;
}

article a:hover::after {
    padding-left: 24px;
}

address {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

address a {
    color: rgb(247, 71, 30);
}


.button {
    text-decoration: none;
    width: fit-content;
    border-radius: 8px;
    background-color: rgb(247, 71, 30);
    border: none;
    color: rgb(14, 50, 173);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 2px 8px rgb(184, 184, 184);
}

.button-big {
    padding: 16px 32px;
    font-size: 1.25rem;
}


.button-small {
    padding: 8px 16px;
    font-size: 1rem;
}



footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 24px 80px;
    background-color: rgb(14, 50, 173);
    color: rgb(247, 71, 30);
    gap: 40px;
}

footer div,
footer form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.logo {
    height: 48px;
    width: 48px;
}

.section-side-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.section-side-img {
    width: 100%;
}

#section-articles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

#section-articles h3 {
    font-size: 1.5rem;
    color: rgb(14, 50, 173);
}

#section-articles p {
    font-size: 2.5rem;
    font-weight: bolder;
    letter-spacing: 4px;
    color: rgb(14, 50, 173);
    font-family: "Wallpoet", sans-serif;
}


#section-articles img {
    width: 80px;
    position: absolute;
    right: 12px;
    bottom: 12px;
    opacity: 0.2;
}

#section-technologies {
    display: flex;
    gap: 40px;
    flex-direction: column;
}

.section-technologies-cards {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 160px;
}

.section-technologies-cards img {
    width: 8%;
}

.section-contact-us-form {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        'name       surname'
        'email      phone'
        'message    message'
        'submit     submit';
}

.section-contact-us-form .section-contact-us-form-textarea {
    grid-area: message;
}

.section-contact-us-form-submit {
    grid-area: submit;
}

#section-contact-us .section-side-img {
    mix-blend-mode: multiply;
}

.form-label-input {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-required::before {
    content: '*';
}



.footer-socials-icons {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.footer-socials img {
    width: 40px;
}

@media (max-width: 1200px) {

    header,
    main,
    footer {
        padding-left: 80px;
        padding-right: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    section {
        gap: 20px;
    }

    #section-articles {
        grid-template-columns: 1fr 1fr;
    }

    .section-technologies-cards {
        padding: 0 120px;
    }

    .section-technologies-cards img {
        width: 10%;
    }

}

@media (max-width: 992px) {
    section {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        justify-items: center;
    }

    footer {
        grid-template-columns: auto auto auto;
    }

    header {
        padding: 12px 80px;
    }

    .section-side-content {
        align-items: center;
    }

    .section-side-content h1,
    .section-side-content h2,
    .section-side-content h3,
    .section-side-content h4,
    .section-side-content p {
        text-align: center;
    }


    #section-articles {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    #section-plan .section-side-img {
        grid-row-start: 2;
    }

    .section-technologies-cards {
        padding: 0;
    }



    #section-contact-us .section-side-img {
        display: none;
    }

    .section-side-img {
        max-height: 400px;
        object-fit: contain;
    }



}

@media (max-width: 768px) {

    main {
        gap: 60px;
    }

    h1 {
        font-size: 2rem;
    }

    button {
        padding: 12px 20px;
        font-size: 1.25rem;
    }

    header,
    main,
    footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    footer {
        grid-template-rows: auto auto auto;
        grid-template-columns: auto;
        gap: 40px;
    }

    #section-articles {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    #section-contact-us .section-contact-us-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            'name'
            'surname'
            'email'
            'phone'
            'message'
            'submit';
    }

    .section-technologies-cards img {
        width: 16%;
    }
}