*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    display: block;
    text-decoration: none;

    img {
        width: 100%;
        height: 100%;
    }
}

html {
    font-size: 10px;
    color: #333;
    background: #FFF;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* -- Rem support --*/

@media screen and (max-width: 1263px) and (min-width: 1025px) {
    html { font-size: calc(100vw / 126.3) !important; }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    html { font-size: calc(100vw / 102.4) !important; }
}

@media screen and (max-width: 768px) and (min-width: 415px) {
    html { font-size: calc(100vw / 76.8) !important; }
}

@media screen and (max-width: 414px) and (min-width: 321px) {
    html { font-size: calc(100vw / 41.4) !important; }
}

@media screen and (max-width: 320px) {
    html { font-size: calc(100vw / 32.0) !important; }
}

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



/* -- Header -- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    -webkit-box-shadow: 0px -2px 0px 0px #EFF2F2 inset;

            box-shadow: 0px -2px 0px 0px #EFF2F2 inset;
    background: #FFF;
}

    .header__wrapper {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: -webkit-min-content 5.1rem 1fr;
        -ms-grid-columns: min-content 5.1rem 1fr;
        grid-template-columns: -webkit-min-content 1fr;
        grid-template-columns: min-content 1fr;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        gap: 5.1rem;

        max-width: calc(120rem + 6.4rem);
        width: 100%;
        margin: 0 auto;

        padding: 1.4rem 3.2rem;
    }

        .header__logo {
            width: 5.1rem;
            height: 3.6rem;
        }

        .header__menu {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
                -ms-flex-flow: row nowrap;
                    flex-flow: row nowrap;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-pack: justify;
                -ms-flex-pack: justify;
                    justify-content: space-between;
            gap: 2rem;
        }

            .header__container-links {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: horizontal;
                -webkit-box-direction: normal;
                    -ms-flex-flow: row nowrap;
                        flex-flow: row nowrap;
                -webkit-box-align: center;
                    -ms-flex-align: center;
                        align-items: center;
                gap: 3rem;

                width: -webkit-fit-content;

                width: -moz-fit-content;

                width: fit-content;
            }

                .header__link {
                    font-size: 1.4rem;
                    font-weight: 500;
                    line-height: 1.6rem;
                    letter-spacing: 0.025rem;
                    color: #333;

                    -webkit-transition: 0.125s ease-in-out;

                    -o-transition: 0.125s ease-in-out;

                    transition: 0.125s ease-in-out;
                }

                .header__link:hover {
                    color: #03B2A5;
                }

                .header__dropdown {
                    position: relative;
                    display: inline-block;
                }

                .header__dropdown:hover {

                    .header__dropdown-content {
                        display: block;
                    }

                    .header__dropdown-title::after {
                        -webkit-transform: rotate(180deg);
                            -ms-transform: rotate(180deg);
                                transform: rotate(180deg);
                    }

                }
                
                    .header__dropdown-title {
                        display: -webkit-inline-box;
                        display: -ms-inline-flexbox;
                        display: inline-flex;
                        -webkit-box-align: center;
                            -ms-flex-align: center;
                                align-items: center;
                        gap: 0.8rem;

                        cursor: pointer;
                        height: 3.2rem;
                    }

                        .header__dropdown-title::after {
                            content: '';
                            display: block;
                            width: 1.4rem;
                            height: 1.4rem;
                            background: url("../img/dropdown-arrow.svg") center / cover no-repeat;
                            -webkit-transition: -webkit-transform 0.125s ease-in-out;
                            transition: -webkit-transform 0.125s ease-in-out;
                            -o-transition: transform 0.125s ease-in-out;
                            transition: transform 0.125s ease-in-out;
                            transition: transform 0.125s ease-in-out, -webkit-transform 0.125s ease-in-out;
                        }

                    .header__dropdown-content {
                        display: none;
                        position: absolute;
                        z-index: 1000;
                        top: 0;

                        width: -webkit-fit-content;

                        width: -moz-fit-content;

                        width: fit-content;
                        padding: 0.8rem 0.1rem;
                        border: 1px solid rgb(222, 222, 222);
                        border-radius: 0.8rem;
                        margin-top: 3.2rem;
                        background: #FFFFFF;
                    
                        .header__link {
                            width: 100%;
                            padding: 0.8rem 1.6rem;
                        }

                        .header__link:hover {
                            background-color: rgb(246, 246, 246);
                        }
                    }

            .header__button {
                width: -webkit-max-content;
                width: -moz-max-content;
                width: max-content;
                padding: 1.4rem 2rem;
                border-radius: 0.4rem;
                background: #E3F5F5;

                font-size: 1.6rem;
                font-weight: 700;
                line-height: 2rem;
                text-align: center;
                color: #03B2A5;

                -webkit-transition: 0.125s ease-in-out;

                -o-transition: 0.125s ease-in-out;

                transition: 0.125s ease-in-out;
            }

            .header__button:hover {
                background: #AEE1DD;
                color: #0056B3;
            }

        .header__burger-button {
            display: none;
        }
        

@media screen and (max-width: 1024px) and (min-width: 769px) {

    .header__wrapper {
        gap: 2rem;
    }

        .header__container-links {
            gap: 1.6rem;
        }

            .header__dropdown-title {
                gap: 0.4rem;
            }

}

@media screen and (max-width: 768px) {

    .header__logo {
        z-index: 1001;
    }
    
    .header__menu {
        display: none;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column nowrap;
                flex-flow: column nowrap;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        gap: 5rem;

        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;

        width: 100%;
        height: 100vh;
        background: #FFF;
    }

        .header__container-links {
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-flow: column nowrap;
                    flex-flow: column nowrap;
            -webkit-box-align: start;
                -ms-flex-align: start;
                    align-items: flex-start;
            gap: 1.6rem;

            width: 100%;
        }

            .header__link {
                font-size: 1.6rem;
                font-weight: 600;
                line-height: 2rem;
                
                height: auto;
                padding: 0.6rem 0;
            }

            .header__dropdown:hover .header__dropdown-content {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
            }

                .header__dropdown-content {
                    position: relative;
                    -webkit-box-orient: vertical;
                    -webkit-box-direction: normal;
                        -ms-flex-flow: column nowrap;
                            flex-flow: column nowrap;
                    gap: 1.6rem;
                    
                    padding: 0;
                    border: none;
                    border-radius: 0;
                    margin-top: 1.6rem;
                
                    .header__link {
                        width: -webkit-fit-content;
                        width: -moz-fit-content;
                        width: fit-content;
                        padding: 0.6rem 1.6rem;
                    }

                    .header__link:hover {
                        background: none;
                    }

                }

        .header__button {
            width: 100%;
        }
    
    .header__burger-button {
        display: block;
        -ms-grid-column-align: end;
            justify-self: end;
        width: 4rem;
        height: 4rem;
        z-index: 1001;

        padding: 0;
        border: 0;
        background: url("../img/burger-open.svg") center / cover no-repeat;
        -webkit-transition: background 0.2s ease;
        -o-transition: background 0.2s ease;
        transition: background 0.2s ease;
    }



    /* При открытии бургер-меню */

    .open-burger {
        position: fixed;
        overflow: hidden;

        .header__menu {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
        }

        .header__burger-button {
            background: url("../img/burger-close.svg") center / cover no-repeat;
        }

    }

}

@media screen and (max-width: 768px) and (min-width: 415px) {

    .header__wrapper {
        padding: 1.8rem 2rem;
    }

        .header__menu {
            padding: 10rem 2rem 2rem;
        }

}

@media screen and (max-width: 414px) {

    .header__logo {
        width: 4.8rem;
        height: 3.4rem;
    }

}

@media screen and (max-width: 414px) and (min-width: 321px) {

    .header__wrapper {
        padding: 1.6rem 2.4rem;
    }

        .header__menu {
            padding: 9.6rem 2.4rem 2.4rem;
        }

}

@media screen and (max-width: 320px) {

    .header__wrapper {
        padding: 0.8rem 0.8rem 0.8rem 1.6rem;
    }

        .header__menu {
            padding: 7.2rem 1.6rem 1.6rem;
        }

}



/* -- Footer -- */

footer {
    width: 100%;
    background: #2963A3;
}

    .footer__wrapper {
        max-width: calc(120rem + 6.4rem);
        width: 100%;
        margin: 0 auto;
    }

        .footer__container {
            display: -ms-grid;
            display: grid;
            -ms-grid-columns: -webkit-min-content 2rem -webkit-min-content 2rem -webkit-min-content 2rem -webkit-min-content;
            -ms-grid-columns: min-content 2rem min-content 2rem min-content 2rem min-content;
            grid-template-columns: repeat(4, -webkit-min-content);
            grid-template-columns: repeat(4, min-content);
            -webkit-box-pack: justify;
                -ms-flex-pack: justify;
                    justify-content: space-between;
            gap: 2rem;

            padding: 4rem 3.2rem 2.4rem;
        }

            .footer__links {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                    -ms-flex-flow: column nowrap;
                        flex-flow: column nowrap;
                gap: 1.6rem;
            }

                .footer__link, .footer__link:hover {
                    font-size: 1.6rem;
                    font-weight: 700;
                    line-height: 2.4rem;
                    color: #FFF;
                }

            .footer__form {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                    -ms-flex-flow: column nowrap;
                        flex-flow: column nowrap;
                gap: 0.8rem;

                width: 45rem;
            }

                .footer__title {
                    font-size: 1.8rem;
                    font-weight: 700;
                    line-height: 2.6rem;
                    color: #FFF;
                }

                .footer__input-email {
                    position: relative;
                }

                    .footer__input {
                        width: 100%;
                        padding: 1.3rem 7rem 1.3rem 1.5rem;
                        border-radius: 0.4rem;
                        border: 1px solid #9D9D9D33;
                        background: #FFFFFF;

                        font-size: 1.4rem;
                        font-weight: 400;
                        line-height: 2rem;
                        color: #333;

                        outline: none;
                    }

                    .footer__input:hover, .footer__input:active {
                        border-color: #03b2a5;
                    }

                    .footer__input:focus {
                        border-color: #03b2a5;
                        -webkit-box-shadow: 0 0 0 1px #03b2a5;
                                box-shadow: 0 0 0 1px #03b2a5;
                    }

                        .footer__input::-webkit-input-placeholder {
                            color: #9D9D9D;
                        }

                        .footer__input::-moz-placeholder {
                            color: #9D9D9D;
                        }

                        .footer__input:-ms-input-placeholder {
                            color: #9D9D9D;
                        }

                        .footer__input::-ms-input-placeholder {
                            color: #9D9D9D;
                        }

                        .footer__input::placeholder {
                            color: #9D9D9D;
                        }

                    .footer__button {
                        position: absolute;
                        top: 0;
                        right: 0;

                        width: 6.4rem;
                        height: 4.8rem;
                        border-radius: 0.4rem;
                        border: 0;
                        background: #16C8BB url("../img/input-arrow.svg") center / 2.4rem no-repeat;
                    }

                .footer__desc {
                    font-size: 1.2rem;
                    font-weight: 400;
                    line-height: 1.8rem;
                    opacity: 0.7;
                    color: #FFF;
                }

            .footer__contacts {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                    -ms-flex-flow: column nowrap;
                        flex-flow: column nowrap;
                gap: 4rem;
            }

                .footer__logo-sk {
                    width: 22.1rem;
                    height: 5rem;
                }

                .footer__socials {
                    display: -webkit-box;
                    display: -ms-flexbox;
                    display: flex;
                    -webkit-box-orient: horizontal;
                    -webkit-box-direction: normal;
                        -ms-flex-flow: row nowrap;
                            flex-flow: row nowrap;
                    gap: 1.6rem;

                    width: -webkit-fit-content;

                    width: -moz-fit-content;

                    width: fit-content;
                }

                    .footer__logo {
                        width: 3.2rem;
                        height: 3.2rem;
                    }

        .footer__delimiter {
            width: calc(100% - 6.4rem);
            margin: 0 auto;

            height: 1px;
            background: rgba(157, 157, 157, 0.3);
        }

        .footer__legal {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
                -ms-flex-flow: row nowrap;
                    flex-flow: row nowrap;
            gap: 4.8rem;

            padding: 1.6rem 3.2rem;

            .footer__link, .footer__link:hover {
                font-size: 1.4rem;
                font-weight: 400;
                line-height: 2rem;
                opacity: 0.7;
                color: #FFF;
            }
        }

@media screen and (max-width: 768px) and (min-width: 415px) {

    .footer__container {
        -ms-grid-columns: -webkit-min-content 3rem -webkit-min-content 3rem -webkit-min-content;
        -ms-grid-columns: min-content 3rem min-content 3rem min-content;
        grid-template-columns: repeat(3, -webkit-min-content);
        grid-template-columns: repeat(3, min-content);
        gap: 2.6rem 3rem;

        padding: 3.5rem 2rem 2.7rem;
    }

        .footer__form {
            width: 43rem;
        }

        .footer__contacts {
            -ms-grid-column: 1;
            -ms-grid-column-span: 3;
            grid-column: 1 / 4;
        }

    .footer__delimiter {
        width: calc(100% - 4rem);
    }

    .footer__legal {
        padding: 1.6rem 2rem 2.4rem;
    }

}

@media screen and (max-width: 414px) {

    .footer__container {
        -ms-grid-columns: -webkit-min-content 2.4rem -webkit-min-content;
        -ms-grid-columns: min-content 2.4rem min-content;
        grid-template-columns: repeat(2, -webkit-min-content);
        grid-template-columns: repeat(2, min-content);
        gap: 2.4rem;
    }

        .footer__form {
            -ms-grid-column: 1;
            -ms-grid-column-span: 2;
            grid-column: 1 / 3;
            width: 100%;
        }

            .footer__desc {
                margin-top: 0.4rem;
            }

        .footer__contacts {
            -ms-grid-column: 1;
            -ms-grid-column-span: 2;
            grid-column: 1 / 3;
        }

    .footer__legal {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column nowrap;
                flex-flow: column nowrap;
        gap: 2rem;

        .footer__link, .footer__link:hover {
            font-size: 1.4rem;
            font-weight: 400;
            line-height: 2rem;
            opacity: 0.7;
            color: #FFF;
        }
    }

}

@media screen and (max-width: 414px) and (min-width: 321px) {

    .footer__container {
        padding: 3.5rem 2rem 2rem;
    }

    .footer__legal {
        padding: 2rem 2rem 3.6rem;
    }

    .footer__delimiter {
        width: calc(100% - 4rem);
    }

}

@media screen and (max-width: 320px) {

    .footer__container {
        padding: 3.5rem 1.6rem 2rem;
    }

    .footer__legal {
        padding: 2rem 1.6rem 3.6rem;
    }

    .footer__delimiter {
        width: calc(100% - 3.2rem);
    }

}