:root {
    --color-red: var(--red-1);
    --color-red-hover: #C7212C;
    --primary-green: #2F8F6E;
    --color-green-dark: #2F8F6E;
    --color-green-light: #EBF4F1;
    --color-green-bg: #EBF4F1;
    --color-green-icon: #2F8F6E;
    --color-blue-light: #EEF0FD;
    --color-grey-light: #ECECEC;
    --color-orange: #F2994A;
    --color-arrow: #B5B5C3;
    --color-border: #ECECEC;
    --color-text-dark: var(--gray-1);
    --color-text-muted: #4F4F4F;
    --text-dark: var(--gray-1);
    --text-muted: var(--gray-4);
    --bg-light: #f0f0f0;
    --bg-light-green: #EBF4F1;
    --box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.1), 0px 1px 5px 0px rgba(0, 0, 0, 0.05);

}

body {
    background-color: var(--bg-light);
}

/* --- BEM Blocks --- */

/* Hero / Promo Section */

.promo {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 0 15px 40px;
    overflow: hidden;
    position: relative;

}

/* Mobile-first styles (Vertical) */
.promo__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo__image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 1.05 / 1;
    margin-top: 30px;
}

.promo__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Typography */
.promo__title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.45;
    text-align: center;
}

.promo__title-highlight {
    color: var(--color-red);
}

.promo__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background-color: #e0e0e0;
    color: #757575;
    border-radius: 50%;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    vertical-align: 3px;
    margin-left: 6px;

}

.promo__description {
    font-size: 17px;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Partner Card (Green Box) - Mobile Stacked */
.promo__partner-card {
    background-color: var(--color-green-light);
    border-radius: 30px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.promo__partner-icon {
    color: var(--color-red);
    flex-shrink: 0;
}

.promo__partner-icon svg {
    width: 32px;
    height: 32px;
}

.promo__partner-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo__partner-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.promo__partner-text {
    font-size: 17px;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
}

.promo__partner-highlight {
    color: var(--color-red);
    font-weight: 600;
}

/* CTA Button */
.promo__btn {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.promo__btn:hover {
    background-color: var(--color-red-hover);
    color: #ffffff;
    text-decoration: none;
}

/* Floating Heart Icon */
.promo__floating-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    background-color: var(--color-green-icon);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo__floating-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .promo {
        width: min(1260px, calc(100% - 30px));
        margin: 0 auto 100px;
        padding-top: 60px;
    }

    .promo__container {
        display: flex;
        gap: 60px;
        align-items: flex-start;
    }

    .promo__content {
        gap: 30px;
        flex-grow: 1;
    }

    .promo__title {
        font-size: 48px;
        line-height: 1.2;
        text-align: left;
        margin-bottom: 8px;
    }

    .promo__title-highlight {
        font-size: 52px;
    }

    .promo__info-icon {
        position: static;
        transform: translateY(-5px);
    }

    .promo__description {
        font-size: 17px;
        text-align: left;
    }

    /* Desktop Green Box (Horizontal) */
    .promo__partner-card {
        flex-direction: row;
        align-items: center;
        padding: 15px 30px;
        gap: 30px;
        text-align: left;
    }

    .promo__partner-icon svg {
        width: 48px;
        height: 48px;
    }

    .promo__partner-content {
        gap: 5px;
    }

    /* Desktop Button */
    .promo__btn {
        width: auto;
        align-self: flex-start;
        padding: 15px 30px;
        gap: 15px;
    }

    /* Desktop Image */
    .promo__image-wrapper {
        margin-top: 0;
        aspect-ratio: 1.005 / 1;
        max-width: 525px;
    }

    .promo__floating-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        bottom: 24px;
        right: 24px;
    }

    .promo__floating-icon svg {
        width: 36px;
        height: 36px;
    }
}



/* --- BEM Block: Features --- */
.features {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 0 0 15px;
    z-index: 2;
}

/* Container for both Header and Cards */
.features__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Section Header (Mobile) */
.features__header {
    text-align: center;
    margin-bottom: 15px;
}

.features__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin: 0;
}

/* Card Item */
.feature-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 15px 15px 15px 30px;
    /* Extra top padding for icon */
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

/* Icon wrapper (Mobile: overlapping top-left) */
.feature-card__icon-wrapper {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 44px;
    height: 44px;
    background-color: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(226, 38, 49, 0.2);
    z-index: 2;
}

.feature-card__icon-wrapper img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Card Content */
.feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin: 0;
}

.feature-card__title-highlight {
    color: var(--color-red);
}

.feature-card__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.feature-card__text-highlight {
    color: var(--color-red);
    font-weight: 600;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .features {
        max-width: 1140px;
        padding: 15px 0 0 0;
    }

    /* Transform list into a 3-column grid */
    .features__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 3 equal columns */
        gap: 30px;
        align-items: start;
        /* Prevent cards from stretching vertically */
    }

    /* Header takes the first cell */
    .features__header {
        text-align: left;
        margin-bottom: 0;
        display: flex;
        align-items: flex-start;
        /* Remove padding to align perfectly with card text */
        padding: 0;
    }

    .features__title {
        font-size: 38px;
        line-height: 1.34;
        max-width: 100%;
    }

    /* Desktop Card Adjustments */
    .feature-card {
        margin-left: 15px;
        padding: 30px;
        border-radius: 30px;
        height: 100%;
        /* Ensure cards fill their grid cell height */
    }

    /* Icon positioning on Desktop (Inside top-left) */
    .feature-card__icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .feature-card__icon-wrapper img {
        width: 28px;
        height: 28px;
    }

    /* Card Typography Desktop */
    .feature-card__title {
        font-size: 21px;
        line-height: 1.43;
    }

    .feature-card__text {
        font-size: 17px;
        line-height: 1.59;
    }
}


/* --- BEM Block: Stats --- */
.stats {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 40px;
    text-align: center;
    z-index: 1;

    &::before {
        display: block;
        content: '';
        position: absolute;
        top: -87px;
        left: -41px;
        background-image: url(../images/privedi-druga/russia_map.png);
        z-index: -1;
        width: 100%;
        min-width: 876px;
        height: auto;
        aspect-ratio: 1.72 / 1;
        background-size: cover;
    }
}

/* Header */
.stats__header {
    margin-bottom: 48px;
}

.stats__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin: 0;
}

.stats__title-highlight {
    color: var(--color-red);
}

/* List Container (Mobile: Column, Desktop: Row) */
.stats__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: self-start;
    gap: 15px;
}

/* Individual Stat Item */
.stats__item {
    display: flex;
    flex-grow: 1;
    flex-basis: calc(50% - 15px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
}

/* Number Block */
.stats__number-wrapper {
    display: flex;
    align-items: flex-end;
    /* Align baseline of text to bottom of number */
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    color: var(--color-red);
}

.stats__number {
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
}

@media screen and (min-width: 992px) {
    .stats__number {
        font-size: 72px;
    }

}

.stats__unit {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    /* Push it up slightly from the absolute bottom */
}

/* Text Description */
.stats__label {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .stats {
        max-width: 1140px;
        padding: 60px 0;
    }

    .stats__header {
        margin-bottom: 60px;
    }

    .stats__title {
        font-size: 38px;
        line-height: 1.34;
    }

    /* Switch to horizontal layout */
    .stats__list {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px;
    }

    .stats__item {
        flex: 1;
        max-width: none;
    }

    /* Scale up numbers for desktop */
    .stats__number {
        font-size: 70px;
        line-height: 1.2;
    }

    .stats__unit {
        font-size: 21px;
        margin-bottom: 12px;
        /* Adjust alignment for larger font size */
    }

    .stats__label {
        font-size: 17px;
        line-height: 1.59;
        max-width: 250px;
        /* Prevent text from getting too wide */
        margin: 0 auto;
    }
}



/* --- BEM Block: How It Works --- */
.how-it-works {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 2;
}

/* Left Column: Video */
.how-it-works__video-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.how-it-works__image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e0e0e0;
    /* Placeholder color */
}

.how-it-works__video-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.how-it-works__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.how-it-works__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.how-it-works__play-icon {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--color-red);
    margin-left: 4px;
    /* Visual centering */
}

.how-it-works__caption {
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text-dark);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* Right Column: Content Card */
.how-it-works__content-card {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

/* Content Block (Icon + Title + Text) */
.content-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-block__header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-block__icon {
    color: var(--color-red);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-block__icon img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.content-block__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.content-block__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

/* Result Box */
.result-box {
    background-color: var(--color-green-bg);
    border-radius: 30px;
    padding: 24px;
    margin-top: 16px;
}

.result-box__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.result-box__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.result-box__highlight {
    color: var(--color-red);
    font-weight: 600;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .how-it-works {
        max-width: 1140px;
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 40px;
    }

    /* Adjust Video Column */
    .how-it-works__video-col {
        align-self: stretch;
        flex: 0 0 360px;
        /* Matches Figma video column width */
        position: sticky;
        top: 40px;
    }

    .how-it-works__image-wrapper {
        aspect-ratio: auto;
        height: 100%;
    }

    .how-it-works__caption {
        font-size: 17px;
        line-height: 1.59;
        text-align: left;
    }

    .how-it-works__play-btn {
        width: 54px;
        height: 54px;
    }

    .how-it-works__play-icon {
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        border-left: 15px solid var(--color-red);
    }

    /* Adjust Content Card */
    .how-it-works__content-card {
        flex: 1;
        /* Takes remaining space */
        padding: 30px;
        gap: 30px;
        margin-bottom: 0;
    }

    .content-block__title {
        font-size: 21px;
        line-height: 1.43;
    }

    .content-block__text {
        font-size: 17px;
        line-height: 1.59;
        max-width: 90%;
    }

    /* Desktop specific layout for the bottom part (Task + Result) */
    .how-it-works__bottom-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }

    .result-box {
        margin-top: 0;
        /* Reset margin for grid layout */
        padding: 30px;
        height: 100%;
    }

    .result-box__title {
        font-size: 21px;
        line-height: 1.43;
    }

    .result-box__text {
        font-size: 17px;
        line-height: 1.59;
    }
}


/* --- BEM Block: Steps --- */
.steps {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 0 0 15px;
}

/* Header */
.steps__header {
    text-align: center;
    margin-bottom: 40px;
}

.steps__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin: 0;
}

.steps__title-highlight {
    color: var(--color-red);
}

/* List Container */
.steps__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* Step Card */
.step-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Step Badge (Number) */
.step-card__badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 48px;
    height: 48px;
    background-color: var(--color-red);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(226, 38, 49, 0.3);
    z-index: 2;
}

/* Step Icon */
.step-card__icon {
    height: 90px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__icon img {
    height: 100%;
    width: auto;
}

/* Step Content */
.step-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.step-card__text {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.step-card__text-highlight {
    color: var(--color-red);
    font-weight: 600;
}

/* CTA Button Container */
.steps__cta {
    display: flex;
    justify-content: center;
}

.steps__btn {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.steps__btn:hover {
    background-color: var(--color-red-hover);
    color: #ffffff;
    text-decoration: none;
}

.steps__btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .steps {
        max-width: 1140px;
        padding: 60px 0;
    }

    .steps__header {
        margin-bottom: 40px;
    }

    .steps__title {
        font-size: 38px;
        line-height: 1.34;
    }

    /* Grid Layout */
    .steps__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 30px;
    }

    /* Card Adjustments */
    .step-card {
        margin-left: 15px;
        padding: 30px;
        justify-content: flex-start;
    }

    .step-card__badge {
        width: 50px;
        height: 50px;
        font-size: 21px;
        top: -15px;
        left: -15px;
    }

    .step-card__icon {
        height: 100px;
        margin-bottom: 30px;
    }

    .step-card__title {
        font-size: 21px;
        line-height: 1.43;
        margin-bottom: 15px;
    }

    .step-card__text {
        font-size: 17px;
        line-height: 1.59;
    }

    /* Button Adjustments */
    .steps__btn {
        width: auto;
        padding: 15px 70px;
        font-size: 17px;
        border-radius: 15px;
    }
}


/* --- BEM Block: Two-Level System --- */
.two-level {
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 30px;
}

/* Header Section */
.two-level__header {
    text-align: center;
    margin-bottom: 32px;
}

.two-level__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.two-level__title-highlight {
    color: var(--color-red);
}

.two-level__description {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

.two-level__description-strong {
    font-weight: 600;
    font-size: 21px;
}

.two-level__description-highlight {
    color: var(--color-green-dark);
    font-weight: 600;
    font-size: 21px;
}

/* Tree Structure */
.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

/* Root Node (Вы) */
.tree__root {
    background-color: var(--color-red);
    color: #ffffff;
    border-radius: 30px;
    padding: 15px 42px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    z-index: 2;
}

/* Arrows (elbowed connectors, stroke #B5B5C3 as in Figma) */
.tree__arrows {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 4px;
    position: relative;
}

.tree__arrow-left,
.tree__arrow-right {
    position: relative;
    width: 50%;
}

.tree__arrow-left {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 61%;
}

.tree__arrow-right {
    display: flex;
    align-items: flex-end;
}

.tree__arrow-elbow {
    position: relative;
    width: 100%;
    height: 52px;
    color: var(--color-arrow);
}

.tree__arrow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: inherit;
}

.tree__arrow-head {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 16px;
    height: 10px;
    transform: translateX(-50%);
    color: inherit;
}

.tree__arrow-head svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tree__arrow-label {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text-muted);
    background: #fff;
    padding: 0 6px;
    white-space: nowrap;
}

.tree__arrow-left .tree__arrow-label {
    left: 75%;
}

.tree__arrow-right .tree__arrow-label {
    left: 25%;
}

/* Grid for Nodes */
.tree__level {
    display: flex;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}

.tree__branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
}

/* Individual Branch (Column) */
.tree__branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Node Card */
.node-card {
    width: 100%;
    align-self: stretch;
    flex-grow: 1;
    border-radius: 30px;
    padding: 15px;
    min-height: 285px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.node-card--green {
    background-color: var(--color-green-light);
}

.node-card--blue {
    background-color: var(--color-blue-light);
}

.node-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.node-card__text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin: 0;
}

/* Highlight Box inside Node */
.node-card__highlight-box {
    background-color: var(--color-green-dark);
    color: #ffffff;
    border-radius: 15px;
    padding: 16px;
    width: 100%;
    margin-top: 8px;
}

.node-card__amount {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.node-card__subtext {
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.9;
    display: block;
}

/* Down Arrow between levels */
.tree__down-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px 0;
    color: var(--color-arrow);
}

.tree__down-arrow-label {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.tree__down-arrow svg {
    width: 24px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Footer Slogan (vector artwork, exported from Figma) */
.two-level__slogan {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .two-level {
        max-width: none;
        width: 100%;
        background-color: #ffffff;
        border-radius: 0;
        padding: 80px max(20px, calc((100% - 1140px) / 2));
        align-items: stretch;
    }

    /* Header layout changes */
    .two-level__header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: left;
        margin-bottom: 30px;
        align-items: start;
    }

    .two-level__title {
        font-size: 38px;
        line-height: 1.34;
        margin-bottom: 0;
    }

    .two-level__description {
        font-size: 17px;
        line-height: 1.59;
    }

    /* Tree layout changes */
    .tree__root {
        padding: 15px 44px;
        font-size: 21px;
        margin-bottom: 4px;
    }

    /* Arrows layout (elbowed connectors, as in Figma) */
    .tree__arrows {
        width: 100%;
        margin-bottom: 4px;
    }

    .tree__arrow-elbow {
        height: 52px;

    }

    .tree__arrow-left,
    .tree__arrow-right {
        min-width: 0;
        max-width: 26%;
    }

    /* Grid for branches */
    .tree__branches {
        grid-template-columns: 1fr 1fr;
        /* Two columns */
        gap: 30px;
        align-items: start;
    }

    /* Cards */
    .node-card {
        max-width: 360px;
        padding: 30px;
        min-height: 246px;
        gap: 15px;
        /* Ensure consistent height */
        justify-content: center;
    }

    /* Level-2 cards span the full column width (555px), as in Figma */
    .tree__branch .node-card:last-of-type {
        max-width: none;
    }

    .tree__branch.level-1 .node-card {
        max-width: 360px;
        margin: 0 auto;
    }

    .node-card__title {
        font-size: 21px;
        line-height: 1.43;
    }

    .node-card__text {
        font-size: 15px;
        line-height: 1.47;
        max-width: 90%;
    }

    .node-card__highlight-box {
        padding: 15px;
        border-radius: 30px;
    }

    .node-card__amount {
        font-size: 28px;
        line-height: 1.25;
    }

    .node-card__subtext {
        font-size: 15px;
        line-height: 1.47;
    }

    /* Down arrows */
    .tree__down-arrow {
        margin: 16px 0;
    }

    /* Slogan */
    .two-level__slogan {
        width: 360px;
        margin-top: 15px;
    }
}


/* --- BEM Block: Calculator --- */
.calculator {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 40px;
}

/* Header */
.calculator__header {
    text-align: center;
    margin-bottom: 32px;
}

.calculator__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin: 0;
}

.calculator__title-highlight {
    color: var(--color-red);
}

/* Main Container */
.calculator__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Left Column: Sliders Box */
.calculator__sliders-box {
    background-color: #ffffff;
    border-radius: 32px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 48px;
    /* Increased gap to fit custom slider elements */
}

/* Custom Slider Group */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.slider-group__label {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin: 0;
}

/* Slider Track Container */
.slider-group__slider-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    user-select: none;
}

/* The actual grey line */
.slider-group__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background-color: var(--color-border);
    border-radius: 3px;
    z-index: 1;
}

/* The red filled part of the track */
.slider-group__fill {
    position: absolute;
    left: 0;
    height: 6px;
    background-color: var(--color-red);
    border-radius: 3px;
    z-index: 2;
    width: 0%;
    /* Set by JS */
}

/* The draggable thumb */
.slider-group__thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--color-red);
    border-radius: 50%;
    z-index: 3;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(229, 41, 41, 0.4);
    left: 0%;
    /* Set by JS */
}

.slider-group__thumb:active {
    cursor: grabbing;
}

/* The floating value bubble above the thumb */
.slider-group__value-bubble {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: var(--color-text-dark);
    font-size: 17px;
    padding: 2px;
    border-radius: 4px;
    z-index: 4;
    transition: opacity 0.2s ease;
    pointer-events: none;
    line-height: 1em;
}

/* Static labels container */
.slider-group__labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: calc(100% + 15px);
    bottom: -17px;
    font-size: 16px;
    color: var(--color-text-dark);
    z-index: 1;
    left: -5px;
}

.slider-group__label-min,
.slider-group__label-max {
    transition: opacity 0.2s ease;
}

/* Hide static label if it's currently being replaced by the bubble */
.slider-group__label-min.hidden,
.slider-group__label-max.hidden {
    opacity: 0;
}

/* Result Box */
.calculator__result-box {
    position: relative;
    background-color: var(--color-green-light);
    border-radius: 24px;
    padding: 24px 24px 24px 80px;
    margin-top: 16px;
}

.calculator__result-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    background-color: var(--color-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.calculator__result-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calculator__result-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.calculator__result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-red);
    line-height: 1;
}

/* Right Column: Form Box */
.calculator__form-box {
    background-color: var(--color-green-dark);
    border-radius: 30px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .calculator__input {
        border: none;
    }

    .calculator__agreement-text,
    .calculator__agreement>label {
        color: rgba(255, 255, 255, 0.9);
    }

    .calculator__agreement-link,
    .calculator__agreement>label a {
        color: #ffffff;
    }
}

.calculator__input {
    width: 100%;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 18px 20px;
    font-size: 17px;
    color: var(--color-text-dark);
    outline: none;
}

.calculator__input::placeholder {
    color: #828282;
}

.calculator__btn {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.calculator__btn:hover {
    background-color: var(--color-red-hover);
}

.calculator__btn svg, .calculator__btn .calculator__btn-spinner {
    width: 20px;
    height: 20px;
}

.calculator__btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calculator__btn .calculator__btn-spinner {
    display: none;
}

.calculator__btn.processing .calculator__btn-spinner {
    display: block;
}

.calculator__btn.processing svg {
    display: none;
}

/* Custom Checkbox */
.calculator__agreement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    padding-left: 39px;
}

.calculator__checkbox,
.agreement-checkbox {
    position: absolute;
    top: 3px;
    left: 3px;
    ;
    appearance: none;
    -webkit-appearance: none;
    min-width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 2px;
    outline: none;
}

.calculator__checkbox:checked {
    background-color: var(--color-red);
}

.calculator__checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.calculator__agreement-text,
.calculator__agreement>label {
    font-size: 15px;
    line-height: 1.45;
    margin: 0;
}

.calculator__agreement-link,
.calculator__agreement>label a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.calculator__agreement-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .calculator {
        max-width: 1140px;
        padding: 40px 0;
    }

    .calculator__header {
        text-align: left;
        margin-bottom: 40px;
    }

    .calculator__title {
        font-size: 38px;
        line-height: 1.34;
    }

    /* Two-column layout */
    .calculator__container {
        flex-direction: row;
        align-items: stretch;
        gap: 30px;
    }

    .calculator__sliders-box {
        flex: 1.2;
        /* Takes slightly more space */
        padding: 30px;
        justify-content: space-between;
    }

    .calculator__form-box {
        flex: 1;
        padding: 30px;
        justify-content: start;
    }

    /* Adjust slider labels and titles for desktop */
    .slider-group__label {
        font-size: 17px;
        line-height: 1.59;
    }

    .slider-group__labels {
        font-size: 17px;
        bottom: -20px;
    }


    /* Adjust result box for desktop */
    .calculator__result-box {
        margin-top: 0;
        padding: 15px 30px 15px 95px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .calculator__result-icon {
        top: 50%;
        transform: translateY(-50%);
        left: 30px;
        width: 50px;
        height: 50px;
    }

    .calculator__result-title {
        font-size: 17px;
        line-height: 1.59;
    }

    .calculator__result-value {
        font-size: 38px;
        line-height: 1.34;
    }

    .calculator__input {
        padding: 15px;
        font-size: 17px;
        border-radius: 15px;
    }

    .calculator__btn {
        margin-top: 30px;
        padding: 15px 30px;
        font-size: 17px;
        border-radius: 15px;
    }

    .calculator__agreement {
        margin-top: 20px;
    }

    .calculator__agreement-text {
        font-size: 15px;
        line-height: 1.47;
    }
}

/* --- BEM Block: Testimonials --- */
.testimonials {
    margin: 0 auto;
    width: 100%;
}

/* Header Section (Shared) */
.testimonials__header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.testimonials__title-highlight {
    color: var(--color-red);
}

.testimonials__description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 auto;
    max-width: 800px;
}

/* --- Card Styling (Shared) --- */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 30px;
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.testimonial-card__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.testimonial-card__badge {
    background-color: var(--color-green-dark);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 16px;
    border-radius: 20px;
    display: inline-block;
}

.testimonial-card__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-card__footer {
    margin-top: auto;
}

.testimonial-card__income-label {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.testimonial-card__income-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 15px;
    line-height: 1;
}

.testimonial-card__btn {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.testimonial-card__btn:hover {
    background-color: var(--color-red-hover);
    color: #ffffff;
    text-decoration: none;
}

.testimonial-card__btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =========================================================
           MOBILE CAROUSEL (Hidden on Desktop)
           ========================================================= */
.testimonials__mobile {
    position: relative;
    padding-bottom: 24px;
    /* Space for dots */
    margin: 0 -15px 16px;
}

.testimonials__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 0 16px 16px 16px;
    /* Padding around track */
    /* Hide scrollbar for Chrome, Safari and Opera */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonials__track::-webkit-scrollbar {
    display: none;
}

.testimonials__slide {
    scroll-snap-align: center;
    /* Use a percentage width that is smaller than 100% to create peek effect */
    flex: 0 0 calc(100vw - 45px);
    max-width: calc(100vw - 45px);
    display: flex;
}

/* Pagination Dots (Static for mobile since it's not a real JS carousel) */
.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: block;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.testimonials__dot.active {
    background-color: var(--color-red);
    width: 12px;
    height: 12px;
    margin-top: -1px;
}


/* =========================================================
           DESKTOP GRID (Hidden on Mobile)
           ========================================================= */
.testimonials__desktop {
    max-width: 1140px;
    margin: 0 auto;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
}


/* --- Desktop Typography Overrides --- */
@media (min-width: 992px) {
    .testimonials {
        padding: 20px 0 60px;
    }

    .testimonials__header {
        margin-bottom: 40px;
    }

    .testimonials__title {
        font-size: 38px;
        line-height: 1.34;
    }

    .testimonials__description {
        font-size: 17px;
        line-height: 1.59;
    }

    .testimonial-card {
        padding: 30px;
        border-radius: 30px;
    }

    .testimonial-card__name {
        font-size: 17px;
        line-height: 1.59;
    }

    .testimonial-card__text {
        font-size: 17px;
        line-height: 1.59;
        margin-bottom: 32px;
    }

    .testimonial-card__income-value {
        font-size: 38px;
        line-height: 1.34;
    }

    .testimonial-card__btn {
        padding: 15px 30px;
        font-size: 17px;
    }
}



/* --- BEM Block: FAQ --- */
.faq {
    max-width: 1140px;
    margin: 0 auto 40px;
}

/* Header */
.faq__header {
    text-align: center;
    margin-bottom: 32px;
}

.faq__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

/* Accordion List */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Accordion Item */
.faq-item {
    background-color: #ffffff;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Item Header (Question) */
.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    gap: 15px;
}

.faq-item__question {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin: 0;
    flex-grow: 1;
}

/* Toggle Icon Button */
.faq-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--color-grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.faq-item__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease, stroke 0.3s ease;
}

/* Active State Styles */
.faq-item.active .faq-item__icon {
    background-color: var(--color-red);
}

.faq-item.active .faq-item__icon svg {
    stroke: #ffffff;
    transform: rotate(180deg);
}

/* Item Body (Answer) */
.faq-item__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 15px;
}

.faq-item.active .faq-item__body {
    max-height: 500px;
    /* Arbitrary max height to allow transition */
    padding: 0 15px 15px 15px;
}

.faq-item__answer {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin: 0;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .faq {
        padding: 60px 0;
    }

    .faq__header {
        text-align: left;
        margin-bottom: 40px;
    }

    .faq__title {
        font-size: 38px;
        line-height: 1.34;
    }

    .faq__list {
        gap: 20px;
    }

    .faq-item {
        border-radius: 30px;
    }

    .faq-item__header {
        padding: 30px;
        align-items: center;
    }

    .faq-item__question {
        font-size: 21px;
        line-height: 1.43;
    }

    .faq-item__icon {
        width: 34px;
        height: 34px;
    }

    .faq-item__icon svg {
        width: 18px;
        height: 18px;
    }

    .faq-item__body {
        padding: 0 30px;
    }

    .faq-item.active .faq-item__body {
        padding: 0 30px 30px 30px;
    }

    .faq-item__answer {
        font-size: 17px;
        line-height: 1.59;
    }
}


/* --- BEM Block: Final CTA --- */
.final-cta {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px;
    padding-bottom: 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background-color: #ffffff;
}

/* Content Column */
.final-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Title */
.final-cta__title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

/* Subtitle */
.final-cta__subtitle {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 32px;
}

/* Bonus Block */
.final-cta__bonus {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

/* Bonus Badge (Orange) */
.final-cta__bonus-badge {
    position: absolute;
    top: -15px;
    left: 0px;
    background: linear-gradient(192.31deg, #FEA265 9.03%, #E75F37 90.97%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    transform: rotate(-2deg);
    text-shadow: 1px 1px rgba(0, 0, 0, 0.2);
}

.final-cta__bonus-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Bonus Box (Green) */
.final-cta__bonus-box {
    background-color: var(--color-green-light);
    border-radius: 30px;
    padding: 32px 24px 24px 24px;
    /* Extra top padding for the badge */
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Footnote Text */
.final-cta__footnote {
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 32px;
    margin-top: 16px;
}

/* CTA Button */
.final-cta__btn {
    background-color: var(--color-red);
    color: #ffffff;
    border: none;
    border-radius: 15px;
    padding: 18px 60px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.final-cta__btn:hover {
    background-color: var(--color-red-hover);
    color: #ffffff;
    text-decoration: none;
}

.final-cta__btn svg {
    width: 24px;
    min-width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Image Column */
.final-cta__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 16px;
}

/* Decorative background shape behind the woman */
.final-cta__image-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 85%;
    background-color: var(--color-green-light);
    border-radius: 40px 40px 0 0;
    /* Creating the specific "shield" shape using clip-path */
    clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
    z-index: 1;
}

.final-cta__image {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Desktop Adjustments (>= 992px) --- */
@media (min-width: 992px) {
    .final-cta {
        max-width: none;
        width: 100%;
        background-color: #ffffff;
        border-radius: 30px 30px 0 0;
        flex-direction: row;
        align-items: center;
        padding: 80px max(20px, calc((100% - 1140px) / 2)) 0;
        gap: 60px;
    }

    .final-cta__content {
        flex: 0 0 45%;
        /* Takes up about 45% of the width */
    }

    .final-cta__title {
        font-size: 48px;
        line-height: 1.2;
        text-align: left;
        margin-bottom: 24px;
    }

    .final-cta__subtitle {
        font-size: 17px;
        line-height: 1.59;
        text-align: left;
        margin-bottom: 40px;
    }

    .final-cta__bonus-badge {
        left: 0;
        top: -25px;
        font-size: 15px;
        padding: 5px 15px;
        border-radius: 30px;
    }

    .final-cta__bonus-badge svg {
        width: 20px;
        height: 20px;
    }

    .final-cta__bonus-box {
        padding: 15px 30px;
        font-size: 17px;
        line-height: 1.59;
        border-radius: 30px;
    }

    .final-cta__footnote {
        font-size: 17px;
        line-height: 1.59;
        margin-bottom: 40px;
    }

    .final-cta__btn {
        width: auto;
        padding: 15px 30px;
        font-size: 17px;
        border-radius: 15px;
    }

    /* Image Column Adjustments */
    .final-cta__image-wrapper {
        flex: 1;
        /* Takes remaining space */
        margin-top: 0;
        justify-content: flex-end;
    }

    /* Reposition and resize the background shape for desktop */
    .final-cta__image-bg {
        width: 90%;
        height: 90%;
        right: 0;
        left: auto;
        transform: none;
        border-radius: 60px 0 0 0;
        clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%, 0 25%);
    }

    .final-cta__image {
        max-height: 600px;
        /* Prevent image from getting too large */
        object-fit: contain;
    }
}


/* --- BEM Block: Info Popover (Bootstrap popover, styled per Figma) --- */
@media screen and (max-width: 991px) {
    body:has(.privedi-popover.show):before {
        position: fixed;
        display: block;
        content: '';
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1069;
    }
}

.privedi-popover.popover {
    background-color: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    max-width: 360px;
    font-family: inherit;
    cursor: pointer;
    z-index: 1070;
}

.privedi-popover .popover-body {
    padding: 20px;
    font-size: 15px;
    line-height: 22px;
    color: var(--color-text-dark);
}

.privedi-popover .popover-header:empty {
    display: none;
}

.privedi-popover__text {
    margin: 0 0 15px;
}

.privedi-popover__text:last-child {
    margin-bottom: 0;
}

.privedi-popover__link {
    color: #0D6EFD;
    text-decoration: underline;
}

.privedi-popover__link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Arrow (keep it white, matching the borderless popover) */
.privedi-popover.bs-popover-bottom>.arrow::before,
.privedi-popover.bs-popover-top>.arrow::before,
.privedi-popover.bs-popover-left>.arrow::before,
.privedi-popover.bs-popover-right>.arrow::before {
    border-color: transparent;
}

/* Mobile mode: bottom sheet (Figma node 26761-22794) */
@media (max-width: 991.98px) {
    .privedi-popover.popover {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: none !important;
        border-radius: 20px 20px 0 0;
        padding-top: 5px;
    }

    .privedi-popover .arrow {
        display: none;
    }

    /* Drag handle */
    .privedi-popover::before {
        content: "";
        display: block;
        width: 40px;
        height: 5px;
        margin: 0 auto;
        border-radius: 5px;
        background-color: #BDBDBD;
    }

    .privedi-popover .popover-body {
        padding: 20px 15px 30px;
    }
}

.desktop-bottom-buttons-wrap-wrap {
    display: none;
}


#lk_registration_modal {

    .modal-dialog {
        max-width: 570px;
    }

    .modal-content {
        margin: 0;
        max-width: none;
    }

    .lk-registration-modal-title {
        font-size: 20px;
    }

    .calculator__btn {
        margin-top: 15px;
    }
}

@media screen and (max-width: 991.98px) {
    #lk_registration_modal {
        .modal-dialog {
            transform: translate3d(0, 0, 0);
            align-items: flex-end !important;
            margin: 0;
        }

        .modal-dialog .modal-header .close {
            position: absolute;
            width: 40px;
            height: 6px;
            border-radius: 4px;
            background-color: #BDBDBD;
            background-image: none;
            padding: 0;
            right: calc(50% - 10px);
            top: 14px;

            span {
                display: none;
            }
        }

        .lk-registration-modal-title {
            line-height: 28px;
        }

        .modal-content {
            border: none;
            border-radius: 1rem 1rem 0 0;
            max-height: 100vh;
            overflow-y: auto;
            padding-bottom: 80px;
        }

        .modal-body {
            padding: 24px 16px;
        }
    }

}

@media screen and (min-width: 992px) {
    #lk_registration_modal {
    
        .lk-registration-modal-title {
            font-size: 28px;
        }
    
    }
}