/* reset styling */
html,
body {
    height: 100%;
}

* {
    margin: 0;
    box-sizing: border-box;
}

img {
    user-select: none;
}

button {
    cursor: pointer;
    border: none;
    padding: 0;
    background-color: transparent;
}

#contacts-sect #confirm-policies input {
    appearance: none;
    padding: 0;
    min-width: 32px;
    width: 32px;
    height: 32px;
    transition: 0.2s all linear;
    cursor: pointer;
    box-shadow: 0px 3.28px 3.28px 0px #00000040;
}

#contacts-sect #confirm-policies input:checked {
    background-color: #D9D9D9;
}

button,
input,
textarea,
select {
    outline: none;
}

h1,
h2 {
    font-size: 64px;
}

/* other */

#scroll-up-btn {
    opacity: 0;
    transition-duration: 0.3s;
    width: 60px;
    height: 60px;
    background-color: #eeeeee;
    border: 1px solid #292626;
    box-shadow: 2.99px -1.2px 4.9px 0px #00000040;
    border-radius: 100%;
    cursor: pointer;
    position: fixed;
    bottom: 52px;
    right: 52px;
    pointer-events: none;
    z-index: 10;
}

#scroll-up-btn.active {
    opacity: 1;
    pointer-events: auto;
}

#cookies-popup {
    position: fixed;
    background-color: #D9D9D9;
    box-shadow: 0px 4px 4px 0px #00000040;
    width: 100%;
    max-width: 556px;
    min-height: 182px;
    z-index: 10;
    border-radius: 7px 7px 7px 29px;
    bottom: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px 12px 36px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-in forwards !important;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

#cookies-popup a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

#cookies-popup p {
    line-height: 20px;
    width: 100%;
    max-width: 500px;
    margin-right: auto;
}

#cookies-popup button {
    background-color: #10545E;
    box-shadow: 0px 4px 4px 0px #00000040;
    width: 100%;
    max-width: 312px;
    height: 52px;
    border-radius: 1px;
    font-size: 20px;
    color: white;
    text-shadow: 0px 2px 2px #00000073;
    margin-top: 24px;
}

#cookies-popup .home-sect-icon {
    left: -8px;
    bottom: -6px;
}

/* header */

header {
    height: 176px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    margin-left: 124px;
}

.header-btn-container {
    display: flex;
    gap: 92px;
    margin-right: 124px;
}

.header-btn-container button {
    text-shadow: 0px 4px 4px #00000073;
    font-size: 16px;
}

.header-btn-container button.active {
    font-weight: 600;
}

/* home section */

#home-sect {
    position: relative;
}

#home-sect>img {
    width: 100%;
    height: 1026px;
    object-fit: cover;
}

.home-sect-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-sect-content h1 {
    color: #FFFFFF;
    text-shadow: 0px 1px 5.7px #FFFFFF;
    font-weight: 700;
    text-align: center;
}

.home-sect-content p {
    font-family: "Belgrano", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    text-shadow: 0px 4.48px 4.48px #00000040;
    color: white;
    text-align: center;
}

.home-sect-content button {
    margin-top: 140px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    font-size: 27px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
}

.home-sect-content button img {
    position: absolute;
    top: 40px;
    animation: moveDown 3s ease-in-out infinite;
}

@keyframes moveDown {
    0% {
        top: 40px;
    }

    50% {
        top: 70px;
    }

    100% {
        top: 40px;
    }
}


.home-sect-icon {
    width: 92px;
    height: 86px;
    border-radius: 100%;
    box-shadow: 0px 4px 4px 0px #00000040;
    background-color: #D9D9D9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.home-sect-icon:not(.cookies-icon) {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 10;
    animation: fadeIn 0.5s ease-in forwards;
    cursor: pointer;
}

.home-sect-icon img {
    width: 64px;
    height: 64px;
}


/* services section */

#services-sect {
    background-color: #f5f5f5;
    min-height: 1227px;
}

.services-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 26px;
    padding-top: 140px;
    margin-bottom: 296px;
}

.services-title-container p {
    font-size: 24px;
    text-align: center;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.service-container {
    width: 414px;
    height: 400px;
    position: relative;
    background-color: #D9D9D9;
    border-radius: 16px;
    box-shadow: 0px 4.12px 4.12px 0px #00000040;
    margin-bottom: 100px;
}

.service-image-container img:first-of-type {
    width: 414px;
    height: 384px;
    border-radius: 209px;
    object-fit: cover;
    position: absolute;
    top: -200px;
}

.service-image-container img:last-of-type {
    top: 110px;
    left: 0px;
    width: 414px;
    position: absolute;
}

.service-container .service-text-container {
    position: absolute;
    bottom: -27px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-text-container h3 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0px 2.06px 2.06px #00000073;
}

.services-container div div p:first-of-type {
    font-size: 16px;
    text-align: center;
    margin-bottom: 18px;
}

.services-container div div p:last-of-type {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.services-container div button {
    width: 300px;
    height: 54px;
    background-color: #10545E;
    box-shadow: 0px 4.12px 4.12px 0px #00000040;
    border-radius: 20px;
    /* font-family: Constantia; */
    font-weight: 700;
    font-size: 25px;
    color: white;
}

/* about us section */

#about-us-sect {
    display: flex;
}

#about-us-sect img {
    /* width: 975px; */
    width: 55%;
    object-fit: contain;
}

#about-us-sect div h2 {
    color: #292626;
    text-shadow: 0px 3.35px 3.35px #00000073;
    text-align: center;
    margin: 100px 0;
    font-size: 75px;
}

#about-us-sect div p {
    color: #292626;
    font-size: 36px;
    max-width: 520px;
    text-align: center;
}

#about-us-sect div p:first-of-type {
    margin-bottom: 36px;
}

#about-us-sect div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

/* contacts section */

#contacts-sect {
    background-color: #292626;
    box-shadow: 0px 14px 8.4px 0px #00000040;
    min-height: 818px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0 8px;
}

#contacts-sect h2 {
    font-size: 45px;
    color: white;
    text-align: center;
    margin-top: 120px;
    margin-bottom: 64px;
}

#contacts-sect form {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#contacts-sect form p {
    font-size: 22px;
    margin: 20px 0;
    padding-left: 12px;
    color: white;
    width: 100%;
    max-width: 1226px;
}

.inputs-container {
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

#contacts-sect input,
#contacts-sect select {
    height: 64px;
    padding: 0 20px;
    width: 100%;
}

#contacts-sect textarea {
    width: 100%;
    max-width: 644px;
    height: 282px;
    resize: none;
    padding: 20px;
}

#contacts-sect button {
    background-color: #10545E;
    color: white;
    box-shadow: 0px 4px 4px 0px #00000040;
    font-size: 25px;
    font-weight: 700;
    height: 52px;
    width: 100%;
    max-width: 644px;
    margin-top: 30px;
}

#contacts-sect #confirm-policies {
    height: 32px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1226px;
}


#contacts-sect #confirm-policies p {
    margin: 0;
    max-width: 710px;
}

#contacts-sect #confirm-policies a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

#contacts-sect input,
#contacts-sect select,
#contacts-sect textarea {
    box-shadow: 0px 3.28px 3.28px 0px #00000040;
    border: 3px solid #D9D9D9;
    border-radius: 3px;
    font-size: 22px;
    background-color: #434141;
    color: white;
}

.form-container {
    display: flex;
    gap: 34px;
}

.form-top-left-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* footer */

footer {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer img {
    height: 93px;
}

footer p {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 24px;
}

footer p:first-of-type {
    text-align: start;
}

footer p:last-of-type {
    text-align: center;
}

footer a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

footer a:not(.policy) {
    color: #E51937;
    text-align: center;
}

.hidden-br {
    display: none;
}

.form-container button:disabled {
    opacity: 50%;
    cursor: default;
}

#success-message {
    display: none;
    margin-top: 20px;
    font-size: 22px;
    color: #8aff8a
}

#error-message {
    display: none;
    margin-top: 20px;
    font-size: 22px;
    color: #ff8a8a
}

@media screen and (max-width: 1536px) {
    .services-container {
        flex-wrap: wrap;
    }

    .services-title-container {
        margin-bottom: 100px;
    }

    .service-container {
        margin-top: 170px;
    }

    .form-container {
        flex-direction: column;
    }

    #contacts-sect {
        padding-bottom: 120px;
    }

    footer p {
        font-size: 18px;
    }

    .form-container button {
        margin-top: 16px;
    }

    #contacts-sect form p,
    #contacts-sect #confirm-policies {
        max-width: 650px;
    }

    #contacts-sect #confirm-policies {
        height: unset;
    }
}

@media screen and (max-width: 1280px) {
    #about-us-sect div h2 {
        font-size: 55px;
        margin: 80px 0;
    }

    #about-us-sect div p {
        font-size: 26px;
    }

    #about-us-sect div p:first-of-type {
        margin-bottom: 26px;
    }

    h1,
    h2 {
        font-size: 54px;
    }

    .home-sect-content p {
        font-size: 28px;
    }

    .header-btn-container {
        margin-right: 62px;
        gap: 46px;
    }

    #home-sect>img {
        height: 986px;
    }

    footer p {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        padding: 24px 8px;
        gap: 24px;
    }

    .home-sect-icon:not(.cookies-icon) {
        scale: 0.5;
        left: 20px;
        bottom: 10px;
    }

    footer p:first-of-type {
        text-align: center;
    }

    #scroll-up-btn {
        bottom: 30px;
        right: 44px;
    }
}

@media screen and (max-width: 1024px) {

    h1,
    h2 {
        font-size: 44px;
    }

    .home-sect-content p {
        font-size: 24px;
    }

    #home-sect>img {
        height: 600px;
    }

    #home-sect button {
        scale: 0.75
    }

    #about-us-sect img {
        display: none;
    }

    #about-us-sect div {
        width: 100%;
        padding: 0 8px 20px 8px;
    }

    header {
        flex-direction: column;
        height: 100px;
    }

    header img {
        margin: 0;
        height: 74px;
    }

    .header-btn-container {
        margin: 0;
        justify-content: space-around;
        height: 26px;
        gap: unset;
        width: 100%;
    }

    .header-btn-container button {
        font-size: 14px;
    }

    #contacts-sect input,
    #contacts-sect select,
    #contacts-sect textarea,
    #contacts-sect p {
        font-size: 16px !important;
    }

    #contacts-sect input,
    #contacts-sect select {
        padding: 0 12px;
        height: 48px;
    }

    #contacts-sect h2 {
        margin-top: 60px;
        margin-bottom: 32px;
    }

    #contacts-sect form p,
    #contacts-sect #confirm-policies {
        max-width: 480px;
    }

    #contacts-sect form p {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {

    h1,
    h2 {
        font-size: 34px;
    }

    .home-sect-content p {
        font-size: 20px;
    }

    #about-us-sect div h2 {
        font-size: 35px;
        margin: 20px 0;
    }

    #about-us-sect div p {
        font-size: 20px;
        max-width: 289px;
    }

    #about-us-sect div p:first-of-type {
        margin-bottom: 14px;
    }

    .service-container {
        margin-top: 40px;
        scale: 0.75;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 640px) {

    h1,
    h2 {
        font-size: 20px;
    }

    .home-sect-content p {
        font-size: 16px;
    }


    .inputs-container {
        flex-direction: column;
    }

    .hidden-br {
        display: block;
    }

    #cookies-popup {
        padding: 16px 14px 12px 14px;
        border-radius: 7px;
        left: 50%;
        transform: translateX(-50%);
    }

    #cookies-popup p {
        text-align: center;
        padding: 0;
    }

    #cookies-popup .home-sect-icon {
        display: none;
    }
}

@media screen and (max-width: 450px) {
    .home-sect-icon:not(.cookies-icon) {
        left: -15px;
    }

    #scroll-up-btn {
        right: 8px;
    }
}