.spopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.spopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .3s ease;
    background: rgba(0, 4, 50, 0.20);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.spopup.spopup--open .spopup-overlay {
    opacity: 1;
}

.spopup-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spopup-block {
    width: calc(100% - 30px);
    max-width: 654px;
    top: -100px;
    z-index: 1;
    opacity: 0;
    position: relative;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0px 0px 1px 0px rgba(146, 146, 146, 0.50), -3px 4px 20px 0px rgba(144, 144, 144, 0.15);
    display: flex;
    flex-direction: column;
}

.spopup-title {
    color: #878CA1;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: 0.18px;
    margin-bottom: 15px;
}

.spopup-frame {
    color: #5775CD;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    border-radius: 10px;
    border: 1px solid #E7E8F8;
    background-color: rgba(231, 236, 247, 0.20);
    padding: 10px 40px;
    margin-bottom: 20px;
}

.spopup-frame img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: inline-block;
    vertical-align: bottom;
}

.spopup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.spopup-description {
    color: #0A122F;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 30px;
}

.spopup-people {
    display: flex;
}

.spopup-people--item {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: -20px;
}

.spopup-people--item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spopup-people--item-text {
    display: flex;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    flex-shrink: 0;
    background-color: #24A581;
    align-items: center;
    justify-content: center;
}

.spopup-rating--text {
    color: #878CA1;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    margin-top: 6px;
}

.spopup-rating--stars {
    display: flex;
    justify-content: center;
}

.spopup-rating {
    margin-top: 15px;
}

.spopup-product {
    border-radius: 10px;
    background-color: rgba(87, 117, 205, 0.10);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    min-height: 160px;
}

.spopup-products {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.spopup-product--name {
    color: #0A122F;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: 0.14px;
    margin-bottom: 2px;
}

.spopup-product--cost {
    color: #878CA1;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.spopup-product--discount {
    color: #F26B4D;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}

.spopup-product--price {
    color: #ffffff;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 145%;
    letter-spacing: 0.14px;
    border-radius: 5px;
    background-color: #5775CD;
    width: 100%;
    padding: 10px 10px;
    margin-top: auto;
}

.spopup-close {
    margin-left: auto;
    cursor: pointer;
    transition: all .3s ease;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 18px 18px 10px;
    border-radius: 20px;
}

.spopup-close:hover {
    opacity: .6;
}

.spopup-employer {
    border-radius: 20px;
    background-color: #FFDFE7;
    padding: 20px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spopup-footer {
    margin-top: 40px;
}

.spopup-employer--title {
    color: #0A122F;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin-bottom: 20px;
}

.spopup-employer--button .button {
    min-height: 44px;
    width: 100%;
    max-width: 320px;
}

.spopup-employer--button {
    width: 100%;
    display: flex;
    justify-content: center;
}

.spopup-product--button .button {
    width: 100%;
    max-width: 380px;
    min-height: 48px;
}

.spopup-product--button {
    display: flex;
    justify-content: center;
    width: 100%;
}

.spopup-employer--image {
    margin-bottom: 20px;
    display: none;
}

@media (max-width: 760px) {
    .spopup-products {
        flex-direction: column;
        width: 100%;
        row-gap: 0;
    }

    .spopup-product {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        border-radius: 0;
    }

    .spopup-product--price {
        grid-row: 1/4;
        grid-column: 2/2;
        margin-top: 0;
        align-self: center;
    }

    .spopup-product:not(:last-child) {
        padding-bottom: 0;
    }

    .spopup-employer--image {
        display: block;
    }
}