.referral-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 56px;
    color: #202124;
}

.svg-print {
    display: none !important;
}

.referral-page * {
    box-sizing: border-box;
}

.referral-page h1,
.referral-page h2,
.referral-page p {
    margin: 0;
}

.referral-page h2 {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #191b20;
}

.referral-red {
    color: #e30613;
}

.referral-hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(90deg, #fff8f8 0%, #fff 48%, #f4f4f4 100%);
    overflow: hidden;
}

.referral-hero-inner {
    max-width: 1440px;
    min-height: 450px;
    margin: 0 auto;
    padding: 44px 70px 34px;
    display: grid;
    grid-template-columns: minmax(500px, .9fr) minmax(640px, 1.1fr);
    gap: 28px;
    position: relative;
    align-items: stretch;
}

.referral-hero-content {
    position: relative;
    z-index: 5;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.referral-hero h1 {
    max-width: 560px;
    margin: 0;
    font-size: 50px;
    line-height: 1.16;
    font-weight: 800;
    color: #111318;
}

.referral-hero-benefits {
    width: 100%;
    max-width: 600px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.referral-hero-benefit {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 86px;
}

.referral-hero-benefit + .referral-hero-benefit {
	padding-left: 18px;
    border-left: 1px solid #e4e6ea;
}

.referral-icon,
.referral-card-icon,
.referral-step-icon {
    color: #ed1c24;
}

.referral-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f0;
}

.referral-hero-benefit > .referral-icon {
    display: inline-flex;
    color: #ed1c24;
}

.referral-icon svg,
.referral-card-icon svg,
.referral-step-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.referral-ruble-symbol {
    display: block;
    color: #ed1c24 !important;
    font-size: 34px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    transform: translateX(2px);
}

.referral-hero-benefit strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #202124;
}

.referral-hero-benefit b {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #e30613;
    white-space: nowrap;
}

.referral-hero-benefit span {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #202124;
}

.referral-hero-benefit .referral-plus {
	align-self: flex-start;
	margin: -5px 0 -4px 58px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #e30613;
}

.referral-reward-lines {
    width: max-content;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.referral-reward-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.referral-reward-line b {
    margin-bottom: 0;
    white-space: nowrap;
}

.referral-reward-line span {
    color: #202124;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.referral-main-btn {
    width: fit-content;
    min-width: 292px;
    min-height: 58px;
    padding: 18px 28px !important;
    border-radius: 6px !important;
    background: #e30613 !important;
    border-color: #e30613 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-align: center;
}

.referral-hero-visual {
    position: relative;
    min-height: 404px;
    margin-top: -44px;
    margin-bottom: -34px;
    z-index: 2;
    overflow: hidden;
    background: #f4f4f4;
}

.referral-hero-composite {
    width: 100%;
    height: 100%;
    min-height: 478px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.referral-section {
    padding: 22px 70px 0;
}

.referral-steps-section,
.referral-share-section {
    padding-top: 33px;
}

.referral-bonus-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.referral-bonus-card,
.referral-step,
.referral-share-card,
.referral-faq {
    background: #fff;
    border: 1px solid #e6e8ec;
    box-shadow: 0 2px 10px rgba(20,20,20,.025);
}

.referral-bonus-card {
    min-height: 224px;
    padding: 28px 20px 22px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.referral-card-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
}

.referral-bonus-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #202124;
}

.referral-bonus-card > div > span {
    display: block;
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    color: #202124;
}

.referral-bonus-card b {
    display: block;
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    color: #e30613;
    white-space: nowrap;
}

.referral-bonus-card em {
    display: block;
    font-style: normal;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    color: #202124;
    white-space: nowrap;
}

.referral-bonus-card em span {
    color: #e30613;
}

.referral-steps {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr;
    gap: 18px;
    align-items: stretch;
}

.referral-step {
    min-height: 214px;
    padding: 54px 28px 28px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
}

.referral-step-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    padding: 16px;
    border-radius: 50%;
    border: 1px solid #e6e8ec;
    background: #fff1f1;
    color: #ed1c24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.referral-step strong {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    color: #202124;
}

.referral-step p {
    font-size: 15px;
    line-height: 1.5;
    color: #1c2742;
}

.referral-bonus-card > .referral-card-icon {
    display: none;
}

.referral-step-arrow {
    align-self: center;
    font-size: 38px;
    line-height: 1;
    color: #e30613;
    text-align: center;
}

.referral-share-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.referral-share-top-cta {
    margin-bottom: 33px;
    display: flex;
    justify-content: center;
}

.referral-share-cta {
    min-width: 240px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid #e30613;
    border-radius: 6px;
    background: #e30613;
    box-shadow: 0 7px 15px rgba(227, 6, 19, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.referral-share-cta:hover,
.referral-share-cta:focus {
    border-color: #c9000c;
    background: #c9000c;
    box-shadow: 0 9px 18px rgba(227, 6, 19, .26);
}

.referral-share-footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.referral-share-card {
    min-width: 0;
    min-height: 204px;
    padding: 22px 18px;
    border-radius: 8px;
    text-align: center;
}

.referral-share-card .referral-card-icon {
    margin: 0 auto 14px;
    width: 44px;
    height: 44px;
}

.referral-share-card strong {
    display: block;
    max-width: 100%;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    color: #202124;
}

.referral-share-card p {
    font-size: 12px;
    line-height: 1.45;
    color: #1c2742;
}

.referral-faq-section {
    padding-bottom: 24px;
}

.referral-faq {
    display: grid;
    border-radius: 8px;
    overflow: hidden;
}

.referral-faq-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: 410px 1fr;
    border-bottom: 1px solid #e6e8ec;
}

.referral-faq-row:last-child {
    border-bottom: none;
}

.referral-faq-question,
.referral-faq-answer {
    padding: 20px 26px;
    display: flex;
    align-items: center;
}

.referral-faq-question {
    border-right: 1px solid #e6e8ec;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    color: #202124;
}

.referral-faq-answer {
    display: block;
    font-size: 17px;
    line-height: 1.45;
    color: #343842;
}

.referral-faq-answer p {
    margin: 0;
}

.referral-faq-answer p + p,
.referral-faq-answer ul + p {
    margin-top: 10px;
}

.referral-faq-answer ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.referral-faq-answer li {
    margin: 0 0 3px;
    list-style: disc;
}

.referral-faq-answer li::before {
    content: none;
}

@media (max-width: 1399px) {
    .referral-hero-inner {
        max-width: 1280px;
        min-height: 450px;
        grid-template-columns: minmax(460px, 1fr) 610px;
        gap: 26px;
    }

    .referral-hero h1 {
        font-size: 48px;
    }

    .referral-hero-benefits {
        max-width: 570px;
    }

    .referral-bonus-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .referral-bonus-card > div > span {
        font-size: 22px;
    }

    .referral-bonus-card b {
        font-size: 28px;
    }
}

@media (max-width: 1199px) {
    .referral-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .referral-hero-content {
        min-height: 360px;
    }

    .referral-hero-visual {
        display: none;
    }

    .referral-hero-benefits {
        max-width: 760px;
    }

    .referral-bonus-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .referral-share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .referral-faq-row {
        grid-template-columns: 310px 1fr;
    }
}

@media (max-width: 991px) {
    .referral-hero-inner,
    .referral-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .referral-hero h1 {
        font-size: 40px;
    }

    .referral-hero-benefits {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .referral-hero-benefit + .referral-hero-benefit {
        padding-left: 0;
        border-left: none;
    }

    .referral-steps {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .referral-step-arrow {
        transform: rotate(90deg);
    }

    .referral-faq-row {
        grid-template-columns: 1fr;
    }

    .referral-faq-question {
        border-right: none;
        border-bottom: 1px solid #e6e8ec;
        padding-bottom: 10px;
    }

    .referral-faq-answer {
        padding-top: 12px;
    }
}

@media (max-width: 767px) {
    .referral-page {
        padding-bottom: 40px;
    }

    .referral-hero-inner {
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .referral-hero-content {
        min-height: auto;
        display: block;
    }

    .referral-hero h1 {
        margin-bottom: 28px;
        font-size: 34px;
    }

    .referral-hero-benefits {
        margin-bottom: 28px;
    }

    .referral-hero-benefit {
        grid-template-columns: 58px 1fr;
    }

    .referral-main-btn {
        width: 100%;
        min-width: 0;
    }

    .referral-section {
        padding-top: 26px;
    }

    .referral-steps-section,
    .referral-share-section {
        padding-top: 39px;
    }

    .referral-bonus-grid,
    .referral-share-grid {
        grid-template-columns: 1fr;
    }

    .referral-share-top-cta {
        margin-bottom: 39px;
    }

    .referral-share-cta {
        width: 100%;
        min-width: 0;
    }

    .referral-bonus-card,
    .referral-step,
    .referral-share-card {
        min-height: auto;
    }

    .referral-page h2 {
        font-size: 23px;
    }

    .referral-faq-question,
    .referral-faq-answer {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 15px;
    }

}

@media (max-width: 420px) {
    .referral-hero h1 {
        font-size: 31px;
    }

    .referral-bonus-card {
        padding: 22px 18px;
    }

    .referral-card-icon {
        width: 38px;
        height: 38px;
    }

    .referral-bonus-card b {
        font-size: 26px;
    }

    .referral-bonus-card em {
        white-space: normal;
    }
}
