.packs {
    position: relative;
    z-index: 9;

    &__container {
        padding-top: 78px;
    }

    &__title {
        margin-bottom: 38px;
    }

    &__items {
        display: flex;
        align-items: center;
        width: calc(100% + 60px);
        margin-left: -30px;
    }

    @media (max-width: 1200px) {
        &__items {
            width: 100%;
            margin-left: 0;
        }
    }

    @media (max-width: 991px) {
        &__items {
            display: block;
        }
    }

    @media (max-width: 767px) {
        &__container {
            padding-top: 38px;
        }

        &__title {
            margin-bottom: 30px;
        }
    }
}





/* pack */

.pack {
    background-color: $gray6;
    flex-grow: 1;
    flex-basis: 0;
    padding: 27px 35px 50px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    position: relative;

    &--optima {
        max-width: 381px;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;

        &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: calc(100% + 45px);
            background-color: $white;
            border: 2px solid #E43D36;
            pointer-events: none;
            transform: translateY(-50%);
        }

        &::after {
            content: 'лучшее предложение';
            position: absolute;
            top: -21px;
            left: 0;
            width: 100%;
            height: 30px;
            background: #E43D36;
            color: $white;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            line-height: 1.2;
            letter-spacing: .1em;
            text-transform: uppercase;
            font-family: $fontTitles, sans-serif;
        }
    }

    &__head,
    &__body,
    &__foot {
        position: relative;
    }

    &__body {
        min-height: 877px;
    }

    &__foot {
        margin-top: auto;
    }

    &__price {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        font-weight: bold;
        font-size: 32px;
        text-align: center;
        margin-bottom: 23px;
    }

    &__price-old {
        margin-right: 20px;
        color: rgba($black, .3);
        text-decoration: none;
        position: relative;

        &::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 2px;
            background-color: #F46936;
            transform: translate(-50%, -50%) rotate(-9deg);
        }
    }


    &__title {
        text-align: center;
        font-size: 25px;
        line-height: 1.2;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 400;
        margin-bottom: 16px;
        position: relative;
    }

    &__list,
    &__sublist {
        padding-left: 0;
        margin: 0;
        list-style: none;
    }

    &__list-item {
        padding-left: 20px;
        position: relative;
        margin-bottom: 12px;

        &::before {
            content: '';
            position: absolute;
            top: 7px;
            left: 0;
            width: 6px;
            height: 6px;
            background-color: #C4C4C4;
            border-radius: 50%;
        }
    }

    &__list-item--star {
        font-weight: 700;

        &::before {
            top: 5px;
            width: 7px;
            height: 7px;
            background: url(../img/star.svg) no-repeat 0 0;
            border-radius: 0;
        }
    }

    &__sublist {
        margin-top: 10px;
    }

    &__sublist-item {
        font-size: 12px;
        padding-left: 14px;
        position: relative;
        margin-bottom: 7px;

        &::before {
            content: '';
            position: absolute;
            top: 7px;
            left: 0;
            width: 4px;
            height: 4px;
            background-color: #C4C4C4;
            border-radius: 50%;
        }
    }

    &__btn {
        width: 100%;
        justify-content: space-between;

        &+& {
            margin-top: 22px;
        }
    }

    &__btn--installment {

        &,
        &:hover,
        &:focus,
        &:active {
            background: transparent;
            color: $black;
            border: 1px solid $black;
        }
    }

    @media (max-width: 1200px) {
        & {
            padding-left: 20px;
            padding-right: 20px;
        }

        &--optima {
            max-width: 100%;
            flex-grow: 1;
            flex-basis: 0;
        }

        &__price {
            font-size: 2.5vw;
        }
    }

    @media (max-width: 991px) {
        &__body {
            min-height: 1px;
        }

        &__price {
            margin-top: 25px;
        }

        &--optima {
            margin: 30px 0;

            &::before {
                height: 100%;
            }

            &::after {
                top: 0;
            }
        }

        &__price {
            font-size: 4.5vw;
        }
    }

    @media (max-width: 767px) {
        & {
            padding-bottom: 40px;
        }

        &__price {
            font-size: 6.3vw;
            margin-top: 15px;
            margin-bottom: 15px;
        }
    }
}