/* Payment page: visual hierarchy only. The original page copy remains unchanged. */
#catalog .aa-payment-title {
    position: relative;
    max-width: 980px;
    margin: 8px auto 34px;
    padding: 0 0 18px;
    color: #17191d;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

#catalog .aa-payment-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 4px;
    border-radius: 0;
    background: #f47a1f;
    content: "";
}

#catalog article.aa-payment-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 clamp(56px, 7vw, 96px);
    color: #262a31;
    font-size: 17px;
    line-height: 1.72;
    text-wrap: pretty;
}

#catalog .aa-payment-page h2 {
    margin: clamp(44px, 6vw, 68px) 0 22px;
    padding: 0 0 15px;
    color: #17191d;
    border-bottom: 1px solid #dedfe2;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

#catalog .aa-payment-page h2:first-child {
    margin-top: 0;
}

#catalog .aa-payment-page h2 > span,
#catalog .aa-payment-page h3 > span,
#catalog .aa-payment-page li > span {
    font: inherit !important;
}

#catalog .aa-payment-page h3 {
    max-width: 72ch;
    margin: 26px 0 18px;
    padding: 0;
    color: #25282d;
    font-size: clamp(20px, 2.2vw, 23px);
    font-weight: 700;
    line-height: 1.35;
}

#catalog .aa-payment-page p,
#catalog .aa-payment-page > div {
    max-width: 72ch;
    margin: 0 0 12px;
}

#catalog .aa-payment-page h2 + div {
    max-width: 72ch;
    margin: 0 0 24px;
    padding: 18px 22px;
    color: #1d2025;
    border-radius: 0;
    background: #fff3e9;
    font-size: 18px;
    line-height: 1.55;
}

#catalog .aa-payment-page ol {
    max-width: 76ch;
    margin: 26px 0 34px;
    padding: 0;
    list-style: none;
    counter-reset: payment-step;
}

#catalog .aa-payment-page ol > li {
    position: relative;
    min-height: 42px;
    margin: 0;
    padding: 2px 0 20px 56px;
    counter-increment: payment-step;
}

#catalog .aa-payment-page ol > li + li {
    padding-top: 20px;
    border-top: 1px solid #ececef;
}

#catalog .aa-payment-page ol > li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: #c84d00;
    color: #fff;
    content: counter(payment-step);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

#catalog .aa-payment-page ol > li + li::before {
    top: 18px;
}

#catalog .aa-payment-page ul {
    max-width: 76ch;
    margin: 22px 0 32px;
    padding: 0;
    list-style: none;
}

#catalog .aa-payment-page ul > li {
    position: relative;
    margin: 0;
    padding: 0 0 16px 28px;
}

#catalog .aa-payment-page ul > li::before {
    position: absolute;
    top: 0.7em;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #f47a1f;
    content: "";
}

#catalog .aa-payment-page a {
    color: #9d430c;
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#catalog .aa-payment-page a:hover,
#catalog .aa-payment-page a:focus-visible {
    color: #6f2d06;
}

#catalog .aa-payment-page a:focus-visible {
    border-radius: 0;
    outline: 3px solid rgba(244, 122, 31, 0.35);
    outline-offset: 3px;
}

#catalog .aa-payment-page img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: none;
    margin: 28px auto 34px;
    border-radius: 0;
}

#catalog .aa-payment-page img[src*="2020-09-08"] {
    border: 1px solid #e3e4e7;
}

#catalog .aa-payment-page img[src*="logo3h"] {
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
}

#catalog .aa-payment-page p:empty,
#catalog .aa-payment-page span:empty {
    display: none;
}

@media (max-width: 767px) {
    #catalog .aa-payment-title {
        margin-bottom: 28px;
        font-size: clamp(30px, 9vw, 38px);
    }

    #catalog article.aa-payment-page {
        font-size: 16px;
        line-height: 1.66;
    }

    #catalog .aa-payment-page h2 {
        margin-top: 42px;
        font-size: 25px;
    }

    #catalog .aa-payment-page h2 + div {
        padding: 16px 18px;
        font-size: 17px;
    }

    #catalog .aa-payment-page ol > li {
        padding-left: 48px;
    }
}

@media (max-width: 420px) {
    #catalog .aa-payment-page ol > li {
        padding-left: 44px;
    }

    #catalog .aa-payment-page ol > li::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #catalog .aa-payment-page *,
    #catalog .aa-payment-page *::before,
    #catalog .aa-payment-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
