/* ==========================================================================
   Пользовательское соглашение (464:6310). Эталон 1600 px.
   Шапка — hero главной, но фон обрезан до 504 px (BG сдвинут на -171.5).
   ========================================================================== */

body.page-agreement {
    background: #fdfdff;
}

.hero--doc {
    height: 504px;
}

.hero--doc .hero__ribbon {
    top: -171.5px;
}

.hero--doc .hero__pattern::before {
    top: -60%;
    height: 318%;
}

.hero--doc .hero__content {
    top: 227px;
    width: 579px;
}

.agreement {
    padding-bottom: 34px;
}

.agreement__lead {
    width: 1107px;
    max-width: 100%;
    margin: 60px 0 0 -1px;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: -1.2px;
    color: #000;
}

.agreement__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 1635px;
    margin-top: 32.8px;
    padding: 34px 95px 34px;
    border-radius: 14px;
    background: var(--surface);
}

.agreement__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agreement__title {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    text-transform: uppercase;
    color: #094aaa;
}

.agreement__body {
    width: 948.7px;
    max-width: 100%;
    font-weight: 500;
    font-size: 18px;
    line-height: normal;
    color: var(--muted);
}

.agreement__body p {
    margin: 0;
}

.agreement__body p + p {
    margin-top: 22px;
}

.agreement__body br + * {
    white-space: normal;
}

.agreement__body a {
    color: inherit;
    text-decoration: underline;
}

.agreement__note {
    font-style: italic;
}

.agreement__agree {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 220px;
    height: 59px;
    margin: 59.5px 0 0 95px;
    padding: 5px 25px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 21.818px;
    letter-spacing: 1.12px;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}

.agreement__agree:hover {
    filter: brightness(1.06);
}

.agreement__agree:active {
    transform: translateY(1px);
}

.agreement__agree img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1599px) {
    .hero--doc {
        height: 31.5vw;
    }

    .hero--doc .hero__ribbon {
        top: -10.72vw;
    }

    .hero--doc .hero__content {
        top: 14.19vw;
        width: 40%;
    }
}

@media (max-width: 1279px) {
    .agreement__lead {
        margin-top: 40px;
        font-size: 28px;
        line-height: 40px;
        letter-spacing: -1px;
    }

    .agreement__card {
        padding: 28px 40px;
    }

    .agreement__agree {
        margin-left: 40px;
    }
}

@media (max-width: 1023px) {
    .hero--doc {
        height: auto;
    }

    .hero--doc .hero__ribbon {
        top: -2vw;
    }

    .hero--doc .hero__content {
        width: 100%;
        max-width: 640px;
    }

    .agreement__lead {
        font-size: 24px;
        line-height: 34px;
        letter-spacing: -.6px;
    }
}

@media (max-width: 767px) {
    .hero--doc .hero__content {
        margin-top: 120px;
    }

    .agreement__lead {
        margin-top: 28px;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: -.4px;
    }

    .agreement__card {
        margin-top: 24px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    .agreement__title,
    .agreement__body {
        font-size: 16px;
        line-height: 22px;
    }

    .agreement__agree {
        width: 100%;
        margin: 28px 0 0;
    }
}
