@import url("./assets/fonts/onest.css");
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}
:root {
    --background-color: #f5fcff;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;
}

ol, ul, menu, summary {
    list-style: none;
}

a, button {
    cursor: revert;
}
img {
    max-inline-size: 100%;
    max-block-size: 100%;
}
.text {
    font-family: "Onest", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    text-transform: none;
    color: #112A46;
}
.text--medium {
    font-size: 18px;
}

svg {
    display: flex;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: transparent;
}

h1 {
    font-size: 20px;
    font-weight: bold;
}

body {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 375px;
    min-height: 100vh;
    font-family: "Onest", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #112a46;
    background-color: var(--background-color);
    overflow-x: hidden;
    header {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 44px 0;
        background-color: var(--background-color);
        .header__top {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-pack: justify;
            -ms-flex-pack: justify;
            justify-content: space-between;
            gap: 25px;
            margin-bottom: 35px;
            .header__control {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                gap: 10px;
                .burger {
                    position: relative;
                    display: none;
                    width: 22px;
                    height: 18px;
                    cursor: pointer;
                    .burger__item {
                        position: absolute;
                        top: 8px;
                        left: 0;
                        display: -webkit-box;
                        display: -ms-flexbox;
                        display: flex;
                        width: 22px;
                        height: 2px;
                        background-color: #000;
                    }
                }
                .logo {
                    display: flex;
                    width: 295px;
                    height: 52px;
                }
            }
            .header__list {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex
            ;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                gap: 16px;
            }
            .search-block {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex
            ;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -webkit-box-flex: 1;
                -ms-flex-positive: 1;
                flex-grow: 1;
                padding: 10px 21px;
                background-color: rgba(17, 42, 70, .1);
            }
            .search-block__label {
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                gap: 10px;
                width: 100%;
            }
            .header__list {
                display: flex;
                align-items: center;
                gap: 16px;
                .header__item {
                    .header__link {
                        position: relative;
                        display: flex;
                        -webkit-box-align: center;
                        -ms-flex-align: center;
                        align-items: center;
                        -webkit-box-pack: center;
                        -ms-flex-pack: center;
                        justify-content: center;
                        cursor: pointer;
                        -webkit-transition: .2s linear;
                        transition: .2s linear;
                    }
                    .header__link:hover {
                        opacity: .7;
                    }
                    .header__link svg {
                        display: flex;
                        width: 32px;
                        height: 32px;
                    }
                    .header__count {
                        position: absolute;
                        top: -1px;
                        right: -7px;
                        display: flex;
                        -webkit-box-align: center;
                        -ms-flex-align: center;
                        align-items: center;
                        -webkit-box-pack: center;
                        -ms-flex-pack: center;
                        justify-content: center;
                        -ms-flex-negative: 0;
                        flex-shrink: 0;
                        width: 16px;
                        height: 16px;
                        font-family: "Onest", sans-serif;
                        font-weight: 700;
                        font-size: 10px;
                        line-height: 1.2;
                        text-transform: none;
                        color: #FFFFFF;
                        background-color: #112a46;
                        border: 1px solid #fff;
                        border-radius: 50%;
                    }
                }
            }

        }
        .header__bottom {
            display: flex;
            align-items: center;
            gap: 30px;
            .header__button {
                display: flex;
                align-items: center;
                flex-shrink: 0;
                gap: 15px;
                padding: 14px 13px;
                background-color: #f58634;
                cursor: pointer;
                -webkit-transition: .2s linear;
                transition: .2s linear;
            }
            .header__button:hover {
                opacity: .7;
            }
            .header__button span {
                font-family: "Onest", sans-serif;
                font-weight: 800;
                font-size: 22px;
                line-height: 1.2;
                text-transform: none;
                color: #FFFFFF;
            }

            .header__button svg {
                display: flex;
                width: 22px;
                height: 22px;
                color: #fff;
            }
            .nav {
                display: flex;
                -webkit-box-align: center;
                -ms-flex-align: center;
                align-items: center;
                -ms-flex-wrap: wrap;
                flex-wrap: wrap;
                -webkit-box-flex: 1;
                flex-grow: 1;
                gap: 7px 17px;
                .nav__link {
                    font-family: "Onest", sans-serif;
                    font-weight: 400;
                    font-size: 22px;
                    line-height: 1.2;
                    text-transform: none;
                    color: #112A46;
                    -webkit-transition: .2s
                    linear;
                    transition: .2s
                    linear;
                }
                .nav__link:hover {
                    opacity: .7;
                }
            }
        }
    }
}
main {
    flex: 1;
}

.footer {
    padding: 79px 0 76px;
    .footer__text, .footer__link {
        font-family: "Onest", sans-serif;
        font-weight: 400;
        font-size: 21px;
        line-height: 1.2;
        text-transform: none;
        color: #112A46;
    }

    .footer__link:hover {
        opacity: .7;
    }

    .footer__text--accent, .footer__link--accent {
        font-size: 24px;
        font-weight: 700;
    }
    .grid {
        display: grid;
        grid-auto-flow: dense;
        grid-template-columns: repeat(12, 1fr);
        gap: 32px;
        width: 100%;
        .grid__item {
            position: relative;
            .footer__info {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 47px;
                height: 100%;
                .footer__logo {
                    display: flex;

                }
            }
        }
        .grid__item--3 {
            grid-column: span 3;
        }
        .grid__item--1 {
            grid-column: span 1;
        }
        .grid__item--8 {
            grid-column: span 8;
        }
        .grid__item--9 {
            grid-column: span 9;
        }

    }
    .footer__top {
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(17, 42, 70, .5);
        .footer__social {
            margin-top: auto;
        }
        .social {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            gap: 16px;
        }
        .footer__nav {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            width: 100%;

            .footer__item {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 24px;
            }


            .footer__list {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 17px;
            }

            .footer__el--custom {
                display: -webkit-box;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -ms-flex-direction: column;
                flex-direction: column;
                gap: 34px;
            }
        }
    }
}

    .footer__bottom {
        padding-top: 32px;
        .footer__meta {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -ms-flex-wrap: wrap;
            flex-wrap: wrap;
            gap: 16px 10px;
        }
    }

.container {
    width: 100%;
    max-width: 1640px;
    padding: 0 20px;
    margin: 0 auto;
    z-index: 1;
}

@media only screen and (min-width: 1050px) {
    .desktop-hidden {
        display: none;
    }
}