:root {
    --blue: #0860c4;
    --red: #e51937;
    --container-padding: 10px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    line-height: 130%
}

img {
    max-width: 100%;
    display: block
}

.container {
    margin: 0 auto;
    padding: 0 var(--container-padding);
    max-width: calc(1200px + calc(var(--container-padding) * 2));
    width: 100%
}

.relative {
    position: relative
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh
}

.main {
    flex: 1
}

.main_privacy {
    padding-block: 24px
}

.header {
    background-color: #5974a1;
    color: #fff;
    flex-direction: row;
    padding-block: 24px
}

.header__wrapper {
    display: flex;
    justify-content: space-between
}

.header__logo {
    font-size: 32px;
    color: #fff;
    text-decoration: none
}

.footer__logo {
    font-size: 22px;
}

.menu {
    display: flex;
    align-items: center
}

.menu__list {
    display: flex;
    gap: 32px;
    list-style: none
}

.menu__link {
    font-size: 22px;
    text-decoration: none;
    color: #fff
}

.btn {
    display: inline-flex;
    flex-direction: column;
    font-size: 24px;
    padding: 8px 16px;
    background-color: var(--red);
    text-decoration: none;
    border-radius: 16px;
    color: #fff;
    font-weight: 600;
    transition: .1s background-color ease-in-out, .1s scale ease-in-out;
    text-align: center;
    width: fit-content;
    user-select: none;
    cursor: pointer
}

.btn_fill {
    width: 100%
}

.btn:active {
    scale: .97
}

.section {
    padding-block: 60px
}

.section__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center
}

.section_grey {
    background-color: #cad5e7
}

.contact-us {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 48px;
    line-height: 1;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 80px
}

.hero {
    position: relative;
    color: #fff
}

.hero__bg {
    width: calc(100% + var(--container-padding) * 2);
    margin-inline: auto
}

.hero__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: var(--container-padding);
    padding-left: var(--container-padding);
    z-index: 1;
    max-width: 600px;
    height: 100%
}

.footer {
    background-color: #002b77;
    padding-block: 18px
}

.footer__wrapper {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 20px 60px;
    justify-content: space-between
}

.footer__copyright {
    color: #fff;
    font-size: 12px
}

.social-links  a{
    text-decoration: none;
}
.footer__list {
    font-size: 18px;
    padding: 0;
    list-style-type: none;
}

.footer__link {
    color: #fff;
    text-decoration: none;
    font-size: 16px
}

.footer__item {
    color: white;
}

.footer__item p {
    color: orange;
    font-size: 14px;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 100px;
    padding: 48px;
    background-color: #fff;
    margin-bottom: 100px;
    margin-top: 20px
}

.logos__item {
    text-align: center;
}

.logos__item h4 {
    font-size: 24px;
    margin: 10px 0;
}

.logos__img {
    width: 100px;
    margin: 0 auto;
    object-fit: cover
}

.title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px
}

.subtitle {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px
}

.text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 32px
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px
}

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dadada;
    border-radius: 8px
}

.card .btn {
    padding-block: 12px
}

.card__icon {
    display: inline-flex;
    width: fit-content;
    background-color: var(--blue);
    padding: 12px;
    border-radius: 4px
}

.card__title {
    font-size: 24px
}

.card__text {
    font-size: 18px;
    margin-bottom: 12px
}

.icon {
    --size: 24px;
    display: inline-block;
    width: var(--size);
    height: var(--size);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    background-color: currentColor
}

.icon_phone {
    --size: 48px;
    mask-image: url("../images/icons/phone.svg");
    -webkit-mask-image: url("../images/icons/phone.svg")
}

.icon_close {
    mask-image: url("../images/icons/close.svg");
    -webkit-mask-image: url("../images/icons/close.svg");
    background-color: #000
}

.icon_24 {
    --size: 24px
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: top;
    padding: 8px
}

.popup__bg {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, .5)
}

.popup__title {
    font-size: 20px;
    text-align: center
}

.popup__icon {
    border-radius: 50%;
    background-color: var(--blue);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center
}

.popup__text {
    text-align: center
}

.popup__wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 16px;
    padding: 32px;
    gap: 24px;
    max-width: 600px;
    width: 100%;
    height: 98vh;
    position: relative;
    z-index: 1;
    overflow: auto;
    max-height: 100dvh;
    overscroll-behavior: contain
}

.popup__cards {
    display: flex;
    gap: 16px;
    flex-direction: column
}

.popup__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 8px;
    border: 1px solid #dadada;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue)
}

.popup__close {
    display: flex;
    background-color: #fff;
    border: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px;
    cursor: pointer
}

@media (prefers-reduced-motion:no-preference) {
    * {
        scroll-behavior: smooth
    }
}

@media (hover:hover) and (pointer:fine) {
    .footer__link:hover {
        text-decoration: underline
    }

    .btn:hover {
        background-color: #d11733
    }

    .menu__link:hover {
        text-decoration: underline
    }

    .contact-us:hover {
        text-decoration: underline
    }
}

@media (width < 1200px) {
    .menu {
        display: none
    }
}

@media (width < 1000px) {
    .hero__wrapper {
        position: static;
        padding: 0;
        max-width: 100%;
        padding-block: 48px
    }

    .hero__bg {
        display: none
    }
}

@media (width < 576px) {
    .header {
        display: none
    }

    .title {
        line-height: 100%;
        font-size: 40px
    }

    .subtitle {
        font-size: 20px
    }

    .text {
        font-size: 16px
    }

    .btn {
        font-size: 18px;
        padding: 6px 20px
    }

    .contact-us {
        font-size: 32px;

        .icon {
            --size: 32px
        }
    }
}

@media (width < 768px) {
    .popup {
        display: flex
    }
}