/* ── Клиентские работы: карусель в PDP ── */

/* Счётчик в заголовке вкладки */
.hw-lab-client-works__count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--theme-color, #e8e0d6);
    color: var(--text-color, #666);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    vertical-align: middle;
}

/* Карусель */
.hw-lab-client-works__carousel {
    margin: 0 -8px;
}

.hw-lab-client-works__carousel .owl-stage-outer {
    padding: 4px 0;
}

/* Карточка фото */
.hw-lab-client-works__item {
    display: block;
    position: relative;
    margin: 0 8px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f5f0eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hw-lab-client-works__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hw-lab-client-works__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подпись к фото */
.hw-lab-client-works__desc {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
}

/* Owl-carousel nav */
.hw-lab-client-works__carousel .owl-nav {
    margin-top: 8px;
    text-align: center;
}

.hw-lab-client-works__carousel .owl-nav button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f0eb;
    border: none;
    margin: 0 4px;
    font-size: 16px;
    color: #666;
    transition: background 0.15s;
}

.hw-lab-client-works__carousel .owl-nav button:hover {
    background: #e8e0d6;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .hw-lab-client-works__carousel {
        margin: 0 -4px;
    }

    .hw-lab-client-works__item {
        margin: 0 4px;
        border-radius: 8px;
    }

    .hw-lab-client-works__desc {
        font-size: 11px;
        padding: 20px 8px 6px;
    }
}

/* ── Клиентские работы: сетка на главной ── */
.hw-front-client-works {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.hw-front-client-works__title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color, #333);
}

.hw-front-client-works__subtitle {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 32px;
}

.hw-front-client-works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hw-front-client-works__item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f5f0eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.hw-front-client-works__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.hw-front-client-works__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hw-front-client-works__item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.hw-front-client-works__more {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--theme-color, #8b7355);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 991px) {
    .hw-front-client-works__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .hw-front-client-works {
        padding: 24px 0;
    }

    .hw-front-client-works__title {
        font-size: 22px;
    }

    .hw-front-client-works__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hw-front-client-works__item {
        border-radius: 8px;
    }
}
