:root {
    --tariffs-window-span: hsla(0, 0%, 100%, 0.6);
    --promo-icon-bg: hsl(0, 0%, 0%);
    --item-box-shadow-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.10);;
    --item-box-shadow:  0 68px 27px 0 rgba(112, 112, 112, 0.01), 0 38px 23px 0 rgba(112, 112, 112, 0.05), 0 17px 17px 0 rgba(112, 112, 112, 0.09), 0 4px 9px 0 rgba(112, 112, 112, 0.0);
}
.promo {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    padding: 204px 40px 40px;
    margin-bottom: 15px;
    position: relative;
    background-size: 1430px 790px;
    background-position: 89% 42%;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    &::before {
        content: '';
        width: 820px;
        height: 166px;
        border-radius: 100%;
        position: absolute;
        left: -285px;
        bottom: -60px;
        transform: rotate(25deg);
        background: var(--promo-icon-bg);
        filter: blur(232px);
        pointer-events: none;
    }
    h1 {
        margin-bottom: 10px;
        position: relative;
        z-index: 2;
        color: var(--main);
        font-size: 40px;
        font-weight: 900;
        line-height: 100%;
    }
    p {
        position: relative;
        z-index: 2;
        max-width: 615px;
        margin-bottom: 20px;
        color: var(--main);
        line-height: 19px;
    }
    button {
        max-width: 249px;
        position: relative;
        z-index: 2;
    }
}
.breadcrumbs {
    margin-bottom: 50px;
}
.text-section {
    margin-bottom: 30px;
    h2 {
        margin-bottom: 4px;
    }
    p {
        color: var(--text-2);
        letter-spacing: -0.2px;
    }
}
.buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 21px;
    overflow: auto;
    &::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    button, a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 30px;
        border-radius: 8px;
        background: var(--el-bg);
        border: none;
        font-weight: 600;
        line-height: 100%;
        white-space: nowrap;
    }
}
.tariffs {
    display: grid;
    grid-template-columns: 387px 1fr;
    gap: 19px;
    margin-bottom: 40px;
    &.stores {
        .info {
            img {
                width: 563px;
                bottom: -3px;
                left: -56px;
            }
        }
        .items {
            .item {
                &:first-child {
                    grid-area: 1/1/3/2;
                    p {
                        display: block;
                    }
                    ul {
                        display: flex;
                    }
                }
                &:last-child {
                    grid-area: 3/1/4/3;
                    ul {
                        display: flex;
                        flex-direction: row;
                        flex-wrap: wrap;
                        margin-top: 0;
                    }
                }
                ul, p {
                    display: none;
                }
            }
        }
    }
    &.business {
        .info {
            background: var(--line);
            img {
                width: 600px;
                left: 0;
                bottom: -170px;
            }
        }
        .items {
            .item {
                background: var(--line);
                ul {
                    gap: 2px;
                    margin-bottom: 10px;
                }
                button {
                    margin-top: auto;
                }
            }
        }
    }
    &.sellers {
        .info {
            img {
                width: 470px;
                bottom: -100px;
                right: -175px;
            }
        }
    }
    .info {
        padding: 30px;  
        position: relative;
        border-radius: 20px;
        background: var(--el-bg);
        overflow: hidden;
        span {
            color: var(--text-3);
            font-weight: 300;
            line-height: 19px;
            letter-spacing: -0.2px;
        }
        h2 {
            max-width: 255px;
            color: var(--second);
            font-size: 28px;
            font-weight: 900;
            line-height: 100%;
        }
        img {
            position: absolute;
        }
    }
    .items {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        &.grid-6 {
            grid-template-rows: 105px 55px 105px 145px;
            .item {
                &:nth-child(2) {
                    grid-row: 1 / span 2;
                    h3 {
                        margin-right: 10px;
                    }
                }
                &:nth-child(3) {
                    grid-column: 1;
                    grid-row: 2 / span 2;
                    p {
                        margin-right: 20px;
                    }
                }
                &:nth-child(4) {
                    grid-column: 2;
                    grid-row: 3;
                }
                &:nth-child(5) {
                    grid-column: 1;
                    grid-row: 4;
                    max-width: 58.667%;
                }
                &:nth-child(6) {
                    grid-column: 1 / span 2;
                    grid-row: 4;
                    justify-self: end;
                    width: 69.775%;
                }
                button {
                    margin-top: auto;
                }
            }
        }
        .item {
            display: flex;
            flex-direction: column;
            padding: 19px;
            border: 1px solid var(--el-bg);
            border-radius: 20px;
            background: var(--el-bg);
            box-shadow: var(--item-box-shadow-hide);
            transition: .3s linear;
            h3 {
                margin-bottom: 2px;
                font-size: 20px;
                font-weight: 700;
                line-height: 23px;
            }
            p {
                color: var(--text-2);
                line-height: 19px;
                letter-spacing: -0.2px;
            }
            p + ul {
                margin-top: 10px;
            }
            ul {
                display: flex;
                flex-direction: column;
                gap: 4px;
                margin-bottom: auto;
                list-style: none;
                li {
                    padding-left: 20px;
                    position: relative;
                    color: var(--text-2);
                    line-height: 19px;
                    letter-spacing: -0.2px;
                    &::before {
                        content: '';
                        width: 6px;
                        height: 6px;
                        border-radius: 2px;
                        background-color: var(--second);
                        position: absolute;
                        top: 7px;
                        left: 5px;
                    }
                    span {
                        color: var(--text-2);
                        font-weight: 700;
                        line-height: 19px;
                        letter-spacing: -0.2px;
                    }
                }
            }
            button {
                display: flex;
                justify-content: center;
                align-items: center;
                max-width: 124px;
                padding: 8px;
                margin-top: 10px;
                border: none;
                border-radius: 8px;
                background: var(--main);
                color: var(--text-2);
                font-size: 14px;
                font-weight: 700;
                line-height: 16px;
                letter-spacing: 0.4px;
            }
        }
    }
}
.slide-preview {
    .body { 
        .slides {
            .slide {
                .head {
                    position: absolute;
                    left: 40px;
                    top: 40px;
                    span {
                        color: var(--tariffs-window-span);
                        line-height: 19px;
                        letter-spacing: -0.2px;
                    }
                    h2 {
                        color: var(--main);
                        font-size: 28px;
                        font-weight: 900;
                        line-height: 100%;
                    }
                }
                .content {
                    height: calc(100% - 290px);
                    .text {
                        padding-right: 20px;
                        overflow-y: auto;
                        h2 {
                            padding-right: 20px;
                            font-size: 24px;
                            margin-bottom: 20px;
                        }
                        h3 {
                            display: flex;
                            align-items: center;
                            gap: 9px;
                            padding-left: 5px;
                            margin-bottom: 4px;
                            font-weight: 700;
                            line-height: 19px;
                            letter-spacing: -0.2px;
                            &::before {
                                content: '';
                                display: flex;
                                width: 6px;
                                height: 6px;
                                border-radius: 2px;
                                background: var(--second);
                            }
                        }
                        p {
                            color: var(--text-2);
                            letter-spacing: -0.2px;
                            padding-left: 20px;
                            margin-bottom: 4px;
                        }
                        div {
                            display: flex;
                            width: fit-content;
                            padding: 11px 23px;
                            margin: 0 0 10px 20px;
                            border: 1px solid var(--second);
                            border-radius: 30px;
                            background: var(--input-bg);
                        }
                        span {
                            display: flex;
                            margin: 16px 0 20px;
                            color: var(--text-2);
                            font-size: 14px;
                            font-weight: 300;
                            line-height: 100%;
                            letter-spacing: -0.028px;
                        }
                    }     
                }
            }
        }
    }
}
.collaboration {
    margin-top: 100px;
}
@media screen and (max-width: 1240px) {
    .promo {
        width: 100%;
        h1 {
            max-width: 400px;
        }
        p {
            max-width: 460px;
        }
    }
}
@media screen and (max-width:1040px) {
    .buttons {
        width: 100%;
        padding: 0 20px;
    }
    .tariffs {
        grid-template-columns: 1fr;
        .info {
            height: 400px;
        }
    }
}
@media screen and (max-width:767px) {
    .promo {
        padding: 372px 20px 40px;
        margin-bottom: 10px;
        border-radius: 0 0 30px 30px;
        background-position: 93% 102%;
        &::before {
            width: 565px;
            height: 114px;
            left: -100px;
            bottom: 145px;
            transform: rotate(0deg);
        }
        h1 {
            font-size: 32px;
        }
        button {
            max-width: 355px;
        }

    }
    .text-section {
        margin-bottom: 20px;
    }
    .tariffs {
        gap: 10px;
        &.stores {
            .info {
                img {
                    bottom: -6px;
                    left: -72px;
                }
            }
            .items {
                .item {
                    &:last-child {
                        ul {
                            flex-direction: column;
                        }
                    }
                }
            }
        }
        &.business {
            .info {
                background: var(--line);
                img {
                    width: 790px;
                    left: -30px;
                    bottom: -207px;
                }
            }
            .items .item h3 + button {
                margin-top: 28px;
            }
        }
        &.sellers {
            .info {
                img {
                    bottom: -118px;
                    right: -181px;
                }
            }
        }
        .items {
            display: flex;
            flex-direction: column;
            gap: 10px;
            &.grid-6 {
                .item {
                    &:nth-child(5) {
                        max-width: 100%;
                    }
                    &:nth-child(6) {
                        width: 100%;
                    }
                    button {
                        margin-top: 8px;
                    }
                }
            }
        }
    }
    .slide-preview {
        .body { 
            border-radius: 20px 20px 0 0;
            .slides {
                pointer-events: all!important;
                .slide {
                    .head {
                        left: 30px;
                        top: 20px;
                        span {
                            font-size: 14px;                            
                            line-height: 16px;
                        }
                        h2 {
                            font-size: 20px;
                        }
                    }
                    .content {
                        .text {
                            padding-right: 0px;
                            overflow-y: auto;
                            h2 {
                                padding-right: 0px;
                                font-size: 20px;
                            }
                            p {
                                padding-left: 21px;
                            }
                            div {
                                padding: 5px 11px;
                                margin: 0 0 10px 20px;
                            }
                            span {
                                margin-right: 10px;
                            }
                            .callback-btn {
                                max-width: calc(100% - 10px);
                            }
                        }     
                    }
                }
            }
        }
    }
}
@media screen and (max-width:420px) {
    .promo {
        padding: 404px 9px 40px;
    }
    .buttons {
        padding: 0 10px;
        button, a {
            font-size: 14px;
        }
    }
}
@media (hover:hover) {
    .buttons {
        button:hover, a:hover {
            color: var(--main);
            background: var(--second);
        }
    }
    .tariffs .items .item:hover {
        border: 1px solid var(--second);
        box-shadow: var(--item-box-shadow);
        button:hover {
            color: var(--main);
            background: var(--second);
        }
    }
}