.brand-logo,
.brand-logo *,
.site-modal,
.site-modal *,
.policy-page,
.policy-page *,
.thanks-page,
.thanks-page * {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

.brand-logo {
    align-items: center;
    color: #1a053a;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}

.header__wrapper {
    column-gap: 24px;
    display: grid;
    grid-template-columns: 320px minmax(280px, 1fr) 320px;
    justify-content: initial;
}

.header__logo {
    justify-self: start;
}

.header__button {
    justify-self: end;
}

.brand-logo__mark {
    align-items: center;
    background: #df2f36;
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    font-family: Roboto Condensed, sans-serif;
    font-size: 28px;
    font-weight: 700;
    height: 62px;
    justify-content: center;
    line-height: 1;
    width: 62px;
}

.brand-logo__text {
    font-family: Uni Neue, sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.legal-notice {
    color: #2d2d2d;
    font-family: Uni Neue, sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 1180px;
    padding: 5px 0 10px;
    text-align: center;
}

.header__text {
    font-size: 19px;
    justify-self: center;
    line-height: 1.25;
    max-width: 520px;
    text-align: center;
}

.header__text b {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.header__text span {
    color: #df2f36;
    display: block;
}

.promo {
    min-height: calc(100vh - 100px);
}

.promo__wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.promo__title,
.promo__subtitle,
.promo__quiz {
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px !important;
}

.promo__subtitle {
    text-transform: none;
    overflow-wrap: break-word;
}

.promo__subtitle span {
    text-transform: none;
}

.promo__title,
.quiz-question__title,
.quiz-question__subtitle {
    overflow-wrap: break-word;
}

.quiz-question__item.is-selected {
    background: #5b10ca;
    border-color: #5b10ca;
}

.quiz-question__item.is-selected .quiz-question__text {
    color: #fff;
}

.quiz-question__item:focus-within {
    outline: 2px solid #0066ff;
}

.quiz-question__input {
    pointer-events: none;
}

.quiz-question__block {
    justify-content: center;
    max-width: 520px;
    width: 100%;
}

.quiz-question__block-text {
    margin-left: 10px;
}

.quiz__error {
    color: #dc3545;
    font-size: 14px;
    margin: -20px 0 18px;
    text-align: center;
}

.last {
    background: #fff;
}

.last-question__title {
    color: #1a053a;
}

.last-question__subtitle {
    color: #2d2d2d;
    font-size: 20px;
    line-height: 1.25;
    margin: -12px auto 25px;
    max-width: 620px;
    text-align: center;
}

.last-question__form .form__field,
.last-question__form .form__submit {
    margin-left: auto;
    margin-right: auto;
}

.site-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 50;
}

.site-modal.is-open {
    display: block;
}

.site-modal__overlay {
    background: rgba(26, 5, 58, 0.72);
    inset: 0;
    position: absolute;
}

.site-modal__dialog {
    background: #fff;
    border-radius: 25px;
    box-sizing: border-box;
    left: 50%;
    max-width: 720px;
    padding: 48px 40px 38px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 30px);
}

.site-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #1a053a;
    cursor: pointer;
    display: flex;
    font-size: 38px;
    height: 44px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 22px;
    top: 18px;
    width: 44px;
}

.footer {
    background: #180b2c;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.78);
    padding-bottom: 34px;
    padding-top: 34px;
}

.footer .cont {
    max-width: 1280px;
}

.footer__wrapper {
    align-items: start;
    column-gap: 30px;
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(220px, 0.9fr) minmax(430px, 1.35fr);
}

.footer__col {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    line-height: 1.45;
    padding-left: 18px;
    text-align: left;
}

.footer__col--brand {
    border-left: 3px solid #df2f36;
}

.footer__col b {
    color: #fff;
    display: block;
    font-family: Uni Neue, sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer__col p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 12px;
}

.footer__link {
    color: #fff;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 12px;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-underline-offset: 4px;
}

.footer__phone {
    color: #fff;
    display: inline-block;
    font-family: Uni Neue, sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
    text-decoration: none;
}

.footer__meta {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-requisites {
    display: grid;
    font-size: 14px;
    gap: 7px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.footer-requisites__row {
    column-gap: 12px;
    display: grid;
    grid-template-columns: 82px 1fr;
}

.footer-requisites dt {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
}

.footer-requisites dd {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
    text-align: left;
}

.footer-requisites a {
    color: inherit;
    text-decoration: none;
}

@media screen and (max-width: 1199px) {
    .footer__wrapper {
        grid-template-columns: 1fr 1fr;
        row-gap: 26px;
    }

    .footer__col--requisites {
        grid-column: 1 / -1;
    }
}

.policy-page,
.thanks-page {
    box-sizing: border-box;
    min-height: 100vh;
    padding: 70px 30px;
}

.policy-page h1,
.thanks-page h1 {
    color: #1a053a;
    font-family: Roboto Condensed, sans-serif;
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 24px;
}

.policy-page p,
.thanks-page p {
    font-family: Uni Neue, sans-serif;
    font-size: 20px;
    line-height: 1.45;
    max-width: 900px;
}

.thanks-page__button {
    max-width: 340px;
}

@media screen and (max-width: 992px) {
    .header__wrapper {
        grid-template-columns: 170px minmax(220px, 1fr) 70px;
    }

    .header__text {
        font-size: 15px;
        max-width: 360px;
    }

    .header__text b {
        font-size: 18px;
    }

    .brand-logo__mark {
        border-radius: 12px;
        font-size: 22px;
        height: 48px;
        width: 48px;
    }

    .brand-logo__text {
        font-size: 16px;
    }

    .footer__wrapper {
        grid-template-columns: 1fr 1fr;
        row-gap: 26px;
    }

    .footer__col--requisites {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 769px) {
    .header__wrapper {
        display: flex;
    }

    .promo {
        min-height: unset;
    }

    .quiz__buttons {
        align-items: stretch;
        flex-direction: column;
        row-gap: 10px;
    }

    .site-modal__dialog {
        padding: 44px 18px 28px;
    }

    .footer__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__col--requisites {
        grid-column: auto;
    }
}

@media screen and (max-width: 576px) {
    .header,
    .promo {
        max-width: 100%;
    }

    .header .cont,
    .promo .cont {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
    }

    .brand-logo {
        gap: 8px;
    }

    .brand-logo__mark {
        border-radius: 10px;
        font-size: 18px;
        height: 42px;
        width: 42px;
    }

    .brand-logo__text {
        font-size: 13px;
    }

    .legal-notice {
        font-size: 12px;
        line-height: 1.25;
        max-width: calc(100vw - 30px);
    }

    .promo__title,
    .promo__subtitle,
    .promo__quiz {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
    }

    .promo__title {
        font-size: 20px;
        line-height: 1.08;
        max-width: 300px !important;
    }

    .promo__subtitle {
        font-size: 14px;
        line-height: 1.18;
        max-width: 270px !important;
    }

    .quiz {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
    }

    .quiz-question__subtitle {
        font-size: 18px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-question__title {
        font-size: 19px;
        line-height: 1.16;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .quiz-question__block {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer__col {
        border-left: 0;
        padding-left: 0;
        text-align: center;
        width: 100%;
    }

    .footer__col--brand {
        border-top: 3px solid #df2f36;
        padding-top: 14px;
    }

    .footer__col p,
    .footer-requisites dd {
        overflow-wrap: anywhere;
        text-align: center;
    }

    .footer__col p {
        margin-left: auto;
        margin-right: auto;
        max-width: 320px;
    }

    .footer-requisites {
        font-size: 13px;
        grid-template-columns: 1fr;
    }

    .footer-requisites__row {
        grid-template-columns: 78px 1fr;
    }
}
