:root {
    --options-button: hsl(138, 81%, 35%);
    --options-button-after: hsla(139, 70%, 41%, 0.6);
    --options-item-border: hsl(32, 95%, 62%);
    --box-shadow-3-hide: 0 68px 27px 0 rgba(112, 112, 112, 0.0), 0 38px 23px 0 rgba(112, 112, 112, 0.0), 0 17px 17px 0 rgba(112, 112, 112, 0.0), 0 4px 9px 0 rgba(112, 112, 112, 0.0);
    --manager-button-gradient:linear-gradient(0deg, var(--main) 0%, rgba(255, 255, 255, 0.00) 100%);
}
.promo {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    padding: 204px 40px 40px;
    margin-bottom: 12px;
    position: relative;
    border-radius: 0 0 40px 40px;
    background: url(../images/benefits/promo-bg.webp) center/ 100% 100% no-repeat;
    overflow: hidden;
    h1 {
        margin-bottom: 10px;
        color: var(--main);
        font-size: 40px;
        font-weight: 900;
        line-height: 100%;
    }
    p {
        max-width: 615px;
        margin-bottom: 20px;
        color: var(--main);
        line-height: 19px;
    }
    button {
        max-width: 191px;
    }
    img {
        max-width: 600px;
        position: absolute;
        top: 3px;
        right: -30px;
    }
}
.breadcrumbs {
    margin-bottom: 50px;
}
.text-section {
    margin-bottom: 30px;
    h2 {
        margin-bottom: 4px;
    }
    p {
        color: var(--text-2);
        letter-spacing: -0.2px;
    }
}
section.manager {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 76px 76px 74px;
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
    border: 4px solid var(--second);
    background: var(--el-bg);
    overflow: hidden;
    h2 {
        max-width: 510px;
        font-size: 40px;
        font-weight: 900;
    }
    p {
        max-width: 550px;
        padding-left: 30px;
        position: relative;
        font-size: 20px;
        line-height: 100%;
        em {
            color: var(--second);
            font-size: 20px;
            font-style: italic;
            font-weight: 700;
            line-height: inherit;
        }
        &::before {
            content: '';
            width: 6px;
            height: 6px;
            position: absolute;
            top: 0px;
            left: 0px;
            border-radius: 6px;
            border: 7px solid var(--second);
        }
        &:first-of-type {
            line-height: 120%;
            max-width: 510px;
        }
    }
    div {
        display: contents;
        img {
            max-width: 1030px;
            position: absolute;
            top: 14px;
            left: 32%;
        }
    }
    .callback-btn {
        max-width: 326px;
        padding: 18px;
    }
}
.advantage {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 0;
    margin-bottom: 100px;
    .item {
        display: flex;
        flex-direction: column;
        width: 57.6667%;
        padding: 30px;
        position: relative;
        border-radius: 20px;
        background: var(--el-bg);

        h2 {
            color: var(--second);
            font-size: 24px;
            font-weight: 700;
            line-height: 28px; 
            margin-bottom: 30px;
        }
        p {
            color: var(--text-2);
            letter-spacing: -0.2px;
        }
        img {
            position: absolute;
        }
        &:nth-child(1) {
            width: 40.6667%;
            h2 {
                max-width: 240px;
            }
            p {
                max-width: 285px;
            }
            img {
                width: 185px;
                right: 30px;
                top: 0px;
            }
        }
        &:nth-child(2) {
            h2 {
                margin-left: 120px;
                max-width: 302px;
            }
            p {
                max-width: 530px;
            }
            img {
                width: 140px;
                left: 0px;
                top: 0px;
            }
        }
        &:nth-child(3) {
            padding-top: 44px;
            h2 {
                max-width: 165px;
                margin-bottom: 16px;
            }
            p {
                max-width: 530px;
            }
            img {
                width: 270px;
                right: 15px;
                top: 0px;
            }
        }
        &:nth-child(4) {
            width: 40.6667%;
            h2 {
                max-width: 290px;
            }
            p {
                max-width: 285px;
            }
            img {
                width: 185px;
                right: 10px;
                top: 0px;
            }
        }
    }
}
.options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
    margin-bottom: 100px;
    .text {
        grid-area: 1/1/2/3;
        h2 {
            margin-bottom: 4px;
        }
        p {
            color: var(--text-2);
            line-height: 19px;
            letter-spacing: -0.2px;
        }
    }
    .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;
        background: var(--el-bg);
        border: 1px solid var(--el-bg);
        border-radius: 30px;
        box-shadow: var(--box-shadow-3-hide);
        transition: .3s linear;
        grid-area: 2/1/3/3;
        &:nth-child(3) {
            & > img {
                max-width: 84px;
                margin-bottom: 10px;
            }
            .text {
                margin-bottom: 15px;
            }
            ul {
                gap: 13px;
            }
        }
        &:last-child {
            grid-area: 1/3/3/5;
            position: relative;
            background: url(../images/benefits/last-option-bg.webp) center / 100% 100% no-repeat;
            border: 1px solid var(--second);
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                opacity: 0;
                border: 3px solid var(--second);
                border-radius: inherit;
                pointer-events: none;
                transition: .3s linear;
            }
            .text {
                margin-bottom: 10px;
            }
            ul {
                margin-bottom: 68px;
            }
        }
        &:has(.manager) {
            .text {
                p {
                    margin-bottom: 10px;
                    & + p {
                        margin-bottom: 0;
                    }
                }
            }
        }
        & > img {
            max-width: 90px;
            margin-bottom: 20px;
        }
        h3 {
            text-align: center;
            font-size: 30px;
            font-weight: 700;
            line-height: 100%;
            margin-bottom: 10px;
        }
        .text {
            padding-bottom: 20px;
            margin-bottom: 30px;
            position: relative;
            &::after {
                content: '';
                height: 1px;
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                background: var(--linear-gradient);
            }
            p {
                color: var(--text-2);
                text-align: center;
                line-height: 19px;
                letter-spacing: -0.2px;
                & + p {
                    margin-bottom: 0;
                    color: var(--second);
                }
                strong {
                    color: var(--second);
                    font-weight: 700;
                    line-height: 19px;
                    letter-spacing: -0.2px;
                }
            }
        }
        ul {
            display: flex;
            flex-direction: column;
            align-self: flex-start;
            gap: 16px;
            margin-bottom: 74px;
            list-style: none;
            li {
                display: flex;
                align-items: center;
                color: var(--text-2);
                line-height: 19px;
                letter-spacing: -0.032px;
                span {
                    color: var(--second);
                    font-weight: 700;
                    line-height: 19px;
                    letter-spacing: -0.032px;
                }
                &::before {
                    content: '';
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 24px;
                    min-width: 24px;
                    height: 24px;
                    margin-right: 16px;
                    background: url(../images/benefits/options-li-before.svg) center / 100% 100% no-repeat;
                }
            }
        }
        .manager {
            width: 100%;
            padding: 27px;
            margin-bottom: 50px;
            position: relative;
            border-radius: 20px;
            background: var(--main);
            span {
                display: flex;
                max-width: 101px;
                margin-left: 64px;
                color: var(--second);
                font-size: 20px;
                font-weight: 700;
                line-height: 23px;
                letter-spacing: -0.04px;
            }
            img {
                position: absolute;
                &:first-of-type {
                    top: 27px;
                    left: 30px;
                    width: 60px;
                }
                &:last-of-type {
                    right: -42px;
                    bottom: -62px;
                    width: 175px;
                }
            }
        }
        .callback-btn {
            padding: 18px;
            margin-top: auto;
            position: relative;
            z-index: 2;
            background: linear-gradient(180deg, var(--second) 0%, var(--options-button) 100%) no-repeat, var(--second);
            background-size: 0% 100%, 100% 100%;
            background-position: left top;
            transition: .3s linear;
            &::after {
                content: '';
                height: 40px;
                position: absolute;
                left: 40px;
                right: 40px;
                bottom: -10px;
                z-index: -1;
                opacity: 0;
                border-radius: 30px;
                background: var(--options-button-after);
                filter: blur(15px);
                transition: .3s linear;
            }
        }
    }
}
.contracts {
    margin-bottom: 100px;
    h2 {
        margin-bottom: 4px;
    }
    & > p {
        color: var(--text-2);
        line-height: 19px;
        letter-spacing: -0.2px;
        &:last-of-type {
            margin-bottom: 30px;
        }
    }
    .items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        .item {
            display: flex;
            flex-direction: column;
            padding: 30px;
            border-radius: 20px;
            border: 1px solid var(--second);
            background: var(--main);
            box-shadow: var(--box-shadow-3-hide);
            transition: .3s linear;
            h3 {
                margin-bottom: 2px;
                font-size: 20px;
                font-weight: 700;
                line-height: 23px;
            }
            p {
                margin-bottom: 16px;
                color: var(--text-2);
                line-height: 19px;
                letter-spacing: -0.2px;
            }
            a {
                display: flex;
                align-items: center;
                width: fit-content;
                margin-top: auto;
                padding: 9px 11px;
                border-radius: 12px;
                border: 1px solid var(--text-3);
                color: var(--text-2);
                font-size: 16px;
                line-height: 19px;
                letter-spacing: -0.2px;
                span {
                    display: flex;
                    margin-left: 4px;
                    color: var(--text-2);
                    font-size: 16px;
                    line-height: 19px;
                    letter-spacing: -0.2px;
                    transition: .3s linear;
                }
                &::before {
                    content: '\e016';
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 24px;
                    height: 24px;
                    margin-right: 8px;
                    font-family: 'icon';
                    font-size: 20px;
                    color: var(--second);
                    transition: .3s linear;
                }
            }
        }
    }
}
.conclude {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 64px auto;
    gap: 22px 20px;
    margin-bottom: 150px;
    .items {
        grid-area: 1/1/3/2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 186px);
        gap: 19px;
        .item {
            display: grid;
            grid-template-columns: 60px 1fr;
            grid-template-rows: 60px auto;
            gap: 11px 10px;
            padding: 20px;
            position: relative;
            border-radius: 20px;
            background: var(--input-bg);
            overflow: hidden;
            &:first-child {
                gap: 20px 10px;
                .icon::before {
                    content: '\e019';
                }
                p {
                    max-width: 225px;
                }
            }
            &:last-child {
                grid-area: 2/1/3/3;
                .icon::before {
                    content: '\e018';
                    font-size: 34px;
                }
                p {
                    max-width: 390px;
                }
            }
            .icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 60px;
                height: 60px;
                border-radius: 12px;
                background: var(--main);
                box-shadow: var(--box-shadow);
                &::before {
                    content: '\e017';
                    font-size: 40px;
                    font-family: 'icon';
                    color: var(--second);
                }
            }
            h3 {
                align-self: center;
                max-width: 110px;
                font-size: 20px;
                font-weight: 700;
                line-height: 23px;
            }
            p {
                grid-area: 2/1/3/3;
                max-width: 135px;
                position: relative;
                z-index: 2;
                color: var(--text-2);
                line-height: 19px;
                letter-spacing: -0.2px;
            }
            span {
                position: absolute;
                top: -38px;
                right: -14px;
                color:var(--line);
                font-size: 150px;
                font-weight: 900;
            }
        }
    }
    h2 {
        max-width: 380px;
    }
    form {
        display: flex;
        flex-direction: column;
        padding: 30px;
        border-radius: 30px;
        border: 1px solid var(--main);
        background: var(--input-bg);
        backdrop-filter: blur(10px);
        h2 { 
            font-size: 20px;
            font-weight: 500;
            line-height: 23px;
            margin-bottom: 20px;
        }
        label {
            display: flex;
            padding-left: 10px;
            margin-bottom: 3px;
            font-size: 14px;
            line-height: 16px;
            letter-spacing: -0.028px;
        }
        input:not([type="submit"], [type="checkbox"]) {
            display: flex;
            width: 100%;
            padding: 9px 12px;
            margin-bottom: 10px;
            border-radius: 10px;
            border: 2px solid var(--main);
            background: var(--main);
            color: var(--text-3);
            font-weight: 400;
            line-height: 18px;
            letter-spacing: -0.032px;
            transition: .3s linear;
            &:focus {
                border: 2px solid var(--second);
            }
            &.error {
                border: 2px solid rgb(233, 0, 0);
            }
            &:placeholder {
                font-weight: 400;
                line-height: 18px;
                letter-spacing: -0.032px;
                color: var(--placeholder);
            }
        }
        input[type="submit"] {
            display: flex;
            justify-content: center;
            align-items: center;
            max-width: 192px;
            padding: 12px;
            margin-top: 20px;
            margin-bottom: 10px;
            border: none;
            border-radius: 10px;
            background: var(--second);
            color: var(--main);
            font-size: 14px;
            font-weight: 700;
            line-height: 24px;
            transition: .3s linear;
        }
        label:has(input[type="checkbox"]) {
            display: flex;
            align-items: center;
            gap: 10px;
            p, span {
                color: var(--text-2);
                font-size: 12px;
                font-weight: 300;
                line-height: 14px;
                letter-spacing: -0.2px;
                text-align: left;
                a {
                    font-size: 12px;
                    font-weight: 300;
                    line-height: 14px;
                    letter-spacing: -0.2px;
                    color: var(--second);
                }
            }
        }
    }
}
@media screen and (max-width: 1240px) {
    .promo {
        width: 100%;
        h1 {
            max-width: 400px;
        }
        p {
            max-width: 460px;
        }
        button {
            max-width: 191px;
        }
        img {
            max-width: 500px;
            position: absolute;
            top: 100px;
            right: -100px;
        }
    }
    section.manager {
        gap: 20px;
        padding: 76px 36px 74px;
        p {
            max-width: 500px;
        }
        div {
            display: contents;
            img {
                max-width: 850px;
                top: 75px;
                left: 260px;
            }
        }
    }
    .options {
        .item {
            padding: 30px 20px;
            ul {
                gap: 12px;
                li {    
                    &:has(span) {
                        flex-wrap: wrap;
                    }
                    &::before {
                        width: 20px;
                        min-width: 20px;
                        height: 20px;
                        margin-right: 12px;
                    }
                }
            }
            .manager {
                padding: 17px;
                span {
                    margin-left: 44px;
                }
                img {
                    &:first-of-type {
                        top: 17px;
                        left: 17px;
                        width: 50px;
                    }
                    &:last-of-type {
                        bottom: -47px;
                        width: 135px;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1040px) {
    .advantage {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        .item {
            width: 100%;
            padding: 30px 20px;
            &:nth-child(1) {
                width: 100%;
                img {
                    width: 155px;
                    right: 0px;
                }
            }
            &:nth-child(2) {
                h2 {
                    margin-left: 60px;
                }
                img {
                    width: 120px;
                    left: -30px;
                    top: 0px;
                }
            }
            &:nth-child(3) {
                img {
                    width: 220px;
                    right: 5px;
                    top: 0px;
                }
            }
            &:nth-child(4) {
                width: 100%;
                img {
                    width: 155px;
                    right: 0px;
                    top: 0px;
                }
            }
        }
    }
    .options {
        grid-template-columns: repeat(2, 1fr);
        .item {
            max-width: 700px;
            justify-self: center;
            &:last-child {
                justify-self: center;
                grid-area: 3/1/4/3;
                max-width: 700px;
                background: url(../images/benefits/last-option-bg.webp) center / 50% 100% repeat;
                .text {
                    margin-bottom: 10px;
                }
                ul {
                    display: grid;
                    grid-template-columns: 1fr 1fr;
                    margin: 0 auto 30px;
                }
            }
            ul {
                margin-bottom: 30px;
            }

        }
    }
    .contracts {
        .items {
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            .item {
                &:last-child {
                    grid-area: 2/1/3/3;
                    margin: 0 auto;
                }
            }
        }
    }
    .conclude {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        .items {
            grid-area: 2/1/3/2;
        }
        h2 {
            grid-area: 1/1/2/2;
            max-width: 100%;
        }
    }
}
@media screen and (max-width:767px) {
    .promo {
        padding: 372px 20px 40px;
        margin-bottom: 10px;
        border-radius: 0 0 30px 30px;
        background: url(../images/benefits/promo-bg-mob.webp) center/ 100% 100% no-repeat;
        h1 {
            font-size: 32px;
        }
        button {
            max-width: 355px;
        }
        img {
            width: 400px;
            max-width: 400px;
            top: 52px;
            right: 50%;
            transform: translateX(50%);
        }
    }
    .text-section {
        margin-bottom: 20px;
        p {
            padding-right: 90px;
        }
    }
    section.manager {
        gap: 0px;
        padding: 38px 18px 18px;
        border: 2px solid var(--second);
        h2 {
            margin: 0 auto 30px;
            font-size: 28px;
            font-weight: 900;
            text-align: center;
        }
        p {
            margin-bottom: 334px;
            font-size: 16px;
            em {
                font-size: 16px;
            }
            &:first-of-type {
                margin-bottom: 10px;
            }
        }
        div {
            img {
                width: 750px;
                top: 220px;
                left: 46%;
                transform: translateX(-50%);
            }
        }
        .callback-btn {
            position: relative;
            z-index: 2;
            max-width: 335px;
            margin: 0 auto;
        }
        &::after {
            content: '';
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            height: 130px;
            background: var(--manager-button-gradient);
        }
    }
    .advantage {
        grid-template-columns: 1fr;
        margin-bottom: 80px;
        .item {
            padding: 25px 20px 20px;
            h2 {
                font-size: 20px;
                line-height: 23px; 
                margin-bottom: 45px;
            }
            &:nth-child(1) {
                h2 {
                    max-width: 200px;
                }
                p {
                    max-width: 315px;
                }
                img {
                    width: 185px;
                    right: 14px;
                }
            }
            &:nth-child(2) {
                padding-top: 20px;
                h2 {
                    margin-left: 115px;
                    max-width: 200px;
                    margin-bottom: 27px;
                }
                img {
                    width: 140px;
                    left: -14px;
                }
            }
            &:nth-child(3) {
                padding-top: 25px;
                h2 {
                    max-width: 165px;
                    margin-bottom: 45px;
                }
                img {
                    width: 270px;
                    right: 15px;
                }
            }
            &:nth-child(4) {
                h2 {
                    max-width: 290px;
                }
                p {
                    max-width: 315px;
                }
                img {
                    width: 185px;
                    right: 14px;
                }
            }
        }
    }
    .options {
        display: flex;
        flex-direction: column;
        gap: 0px;
        margin-bottom: 80px;
        .text {
            margin-bottom: 20px;
        }
        .item {
            padding: 20px;
            max-width: 500px;
            align-self: center;
            margin-bottom: 10px;
            &:nth-child(3) {
                .text {
                    margin-bottom: 10px;
                }
                ul {
                    gap: 13px;
                    margin-bottom: 25px;
                }
            }
            &:last-child {
                max-width: 500px;
                margin-bottom: 0;
                background: url(../images/benefits/last-option-bg.webp) center / 100% 100% no-repeat;
                .text {
                    padding-bottom: 20px;
                }
                ul {
                    display: flex;
                    margin: 0;
                    margin-bottom: 20px;
                }
            }
            & > img {
                margin-bottom: 10px;
            }

            .text {
                margin-bottom: 10px;
            }
            ul {
                margin-bottom: 30px;
                gap: 17px;
                li {
                    &::before {
                        width: 24px;
                        min-width: 24px;
                        height: 24px;
                        margin-right: 16px;
                    }
                }
            }
            .manager {
                padding: 27px;
                margin-bottom: 30px;
                span {
                    margin-left: 64px;
                }
                img {
                    &:first-of-type {
                        top: 27px;
                        left: 30px;
                        width: 60px;
                    }
                    &:last-of-type {
                        right: -52px;
                        bottom: -62px;
                        width: 175px;
                    }
                }
            }
            .callback-btn {
                padding: 18px;
                margin-top: auto;
                position: relative;
                z-index: 2;
                background-size: 0% 100%, 100% 100%;
                background-position: left top;
                transition: .3s linear;
                &::after {
                    height: 40px;
                    left: 40px;
                    right: 40px;
                    bottom: -10px;
                    opacity: 0;
                    border-radius: 30px;
                    filter: blur(15px);
                    transition: .3s linear;
                }
            }
        }
    }
    .contracts {
        margin-bottom: 80px;
        & > p {
            &:last-of-type {
                margin-bottom:20px;
            }
        }
        .items {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            .item {
                width: 100%;
                max-width: 660px;
                padding: 19px;
            }
        }
    }
    .conclude {
        gap: 0px;
        margin-bottom: 80px;
        .items {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 10px;
            .item {
                height: 186px;
            }
        }
        h2 {
            font-size: 32px;
            margin-bottom: 20px;
        }
        form {
            padding: 19px;
            border-radius: 20px;
            border: 1px solid var(--second);
            input[type="submit"] {
                max-width: 355px;
            }

        }
    }
}
@media screen and (max-width:420px) {
    .promo {
        padding: 372px 9px 40px;
    }
    section.manager {
        padding: 38px 8px 8px;
        h2 {
            padding: 0 20px;
        }
        div {
            img {
                width: 680px;
                top: 290px;
                left: 44%;
            }
        }
    }
}
@media (hover:hover) {
    .options .item:not(:last-child):hover {
        border: 1px solid var(--options-item-border);
        box-shadow: var(--box-shadow);;
    }
    .options .item:last-child:hover {
        box-shadow: var(--box-shadow);;
        &::before {
            opacity: 1;
        }
    }
    .options .item .callback-btn:hover {
        background-size: 100% 100%, 100% 100%;
        &::after {
            opacity: 1;
        }
    }
    .contracts .items .item:hover {
        border: 1px solid var(--main);
        box-shadow: var(--box-shadow);;
        a:hover {
            border: 1px solid var(--second);
            background: var(--second);
            color: var(--main);
            &::before, span {
                color: var(--main);
            }
        }
    }
}