﻿/* wwwroot/styles/service-card.css */

/* ============================================
   КАРТОЧКА УСЛУГИ
   ============================================ */

.service-card {
    background: var(--background-color-blue-20, #f4f6f7);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    width: 384px;
    height: 400px;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    overflow: hidden;
}

.service-card__image-wrapper {
    border-radius: 16px;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--background-color-blue-30, #e3e7ea);
    position: relative;
    margin-bottom: 0;
}

.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.service-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 8px 0;
    min-height: 0;
    overflow: hidden;
}

.service-card__content--full {
    padding-top: 0;
}

.service-card__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.service-card__complex-label {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 12px;
    color: var(--text-color-black-60, #77797d);
}

.service-card__name {
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-black-100, #1c1f26);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card__description {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 14px;
    color: var(--text-color-black-80, #494c51);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

.service-card__duration .duration-label {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 12px;
    color: var(--text-color-black-40, #a4a5a8);
    display: block;
}

.service-card__duration .duration-value {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 14px;
    color: var(--text-color-black-80, #494c51);
}

.service-card__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 8px;
    border-top: 1px solid var(--background-color-blue-30, #e3e7ea);
}

.service-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-card__price {
    background: var(--background-color-blue-40, #d4dade);
    padding: 8px 12px;
    border-radius: 16px;
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-black-60, #77797d);
}

.service-card__bonus {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--background-color-blue-20, #f4f6f7);
    padding: 4px 8px;
    border-radius: 16px;
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 12px;
    color: var(--text-color-black-100, #1c1f26);
}

    .service-card__bonus img {
        width: 20px;
        height: 20px;
    }

        .service-card__bonus img:last-child {
            width: 12px;
            height: 12px;
        }

.service-card__actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.service-card__btn-book {
    flex: 1;
    background: var(--background-color-blue-100, #26445c);
    border-radius: 16px;
    padding: 8px 16px;
    height: 44px;
    border: none;
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #f4f4f4;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .service-card__btn-book:hover {
        background: var(--background-color-blue-80, #51697d);
    }

.service-card__btn-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

    .service-card__btn-icon:hover {
        background: var(--background-color-blue-30, #e3e7ea);
    }

    .service-card__btn-icon img {
        width: 20px;
        height: 20px;
    }

/* Адаптив */
@media (max-width: 1200px) {
    .service-card {
        width: 340px;
        height: 380px;
    }

    .service-card__image-wrapper {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .service-card {
        width: 300px;
        height: 360px;
    }

    .service-card__image-wrapper {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 280px;
        height: 340px;
    }

    .service-card__image-wrapper {
        height: 100px;
    }
}
