/* Базовая резиновая обертка */


.special-card__info-wrapper {
    position: relative;
    display: inline-block;
}

.special-card__info {
    background: none;
    border: none;
    color: #E8E6D4;
    font-size: 12px;
    cursor: pointer;
}

.special-card__tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-157px);
    margin-top: 8px;
    padding: 10px;
    background: var(--color-orange);
    color: #E8E6D4;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    z-index: 10;
    min-width: 189px;
}

.special-card__info-wrapper:hover .special-card__tooltip {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.special-card__tooltip.tooltip-align-right {
    left: auto;
    right: 0;
    transform: none;
}


.special-offers__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.special-card {
    /* overflow: hidden; */
    height: 553px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    background-color: #E8E6D4;
    flex-direction: column;
    margin: 0 5px;
}

.special-card__content {
    padding: 40px 20px 0;
}

.special-card__name-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.special-card__name {
    width: 294px;
    color: #18383C;
    font: 500 26px Inter, sans-serif;
}

.special-card__info {
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    font: 700 14px Inter, sans-serif;
    color: #E8E6D4;
    border: none;
    border-radius: 100px;
    background-color: #84A8AC;
    cursor: pointer;
}

.special-card__description {
    min-height: 51px;
    margin-bottom: 10px;
    color: #18383C;
    font: 500 14px Inter, sans-serif;
}

.special-card__price {
    min-height: 31px;
    margin-bottom: 30px;
    color: var(--color-orange);
    font: 500 26px Inter, sans-serif;
}

.special-card__photo {
    width: 380px;
    height: 270px;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 8px; /* обрезает углы */
    overflow: hidden;
    max-width: 100%;
}

.special-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .special-offers {
        margin-top: 80px;
    }

    .special-offers__header {

        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .special-offers__cards-wrapper,
    .special-offers__cards,
    .special-card,
    .special-card__photo {
        width: auto;
        height: auto !important;
        margin: auto;
    }

    .special-card {
        gap: 20px;
        width: calc( 100vw - 25px );
        margin: 0 5px;
    }

    .special-card__content {
        padding: 30px 20px 0;
        gap: 15px;
        height: auto !important;
    }

    .special-card__name-wrapper {
        gap: 20px;
    }

    .special-card__name {
        font: 500 20px Inter, sans-serif;
        color: #18383C;
    }

    .special-card__price {
        margin-bottom: 20px;
    }

    .special-card-btn {
        width: 100%;
    }

    .special-offers-btn {
        width: 276px;
        height: 60px;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-width: 480px) {
    .special-card {
        /* min-width: 300px; */
    }

    .special-offers__header {
        flex-direction: column;
    }

    .special-offers__header {
        align-items: flex-start;
    }

    .special-card__photo {
        width: 100%;
    }

    .special-card__description {
        min-height: 0;
    }

    .special-card__tooltip {
        right: 0;
        left: auto;
        transform: none;
    }
}