.ih-promo-section {
    padding: 30px 0 50px;
    background-color: #ffffff;
}

.ih-promo-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Центрированный заголовок секции */
.ih-section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.ih-promo-slider-wrapper {
    position: relative;
    width: 100%;
}

.ih-promo-track {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 15px 0 25px;
}

.ih-promo-track::-webkit-scrollbar {
    display: none;
}

/* Карточка слайда */
.ih-promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    height: 520px;
    overflow: hidden;
    box-sizing: border-box;
    flex: 0 0 calc(25% - 15px);
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ih-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* 1. Блок картинки (СВЕРХУ) */
.ih-promo-img-wrap {
    width: 100%;
    height: 240px;
    padding: 30px 30px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-decoration: none;
}

.ih-promo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ih-promo-card:hover .ih-promo-img {
    transform: scale(1.08);
}

/* 2. Текстовый блок (СНИЗУ) */
.ih-promo-header {
    padding: 10px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1; /* Растягиваем блок, чтобы занять оставшееся место */
}

.ih-promo-badge {
    font-size: 12px;
    color: #86868b;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.ih-promo-name a {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.25;
    margin: 0 0 12px 0;
    text-decoration: none;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.ih-promo-name a:hover {
    color: #e3001b;
}

.ih-promo-price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}

.ih-promo-price-new {
    font-size: 17px;
    font-weight: 600;
    color: #e3001b;
}

.ih-promo-price-old {
    font-size: 14px;
    color: #86868b;
    text-decoration: line-through;
}

.ih-promo-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto; /* Прижимает кнопку к самому низу карточки! */
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ih-promo-btn:hover {
    background-color: #2d2d2f;
    transform: scale(1.03);
}

/* ======== СТРЕЛКИ НАВИГАЦИИ ======== */
.ih-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1; 
    pointer-events: auto;
}

.ih-slider-arrow svg { width: 22px; height: 22px; }

.ih-arrow-left { left: -10px; }
.ih-arrow-right { right: -10px; }

.ih-slider-arrow:hover {
    background-color: #ffffff;
    color: #e3001b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.08);
}

.ih-slider-arrow.ih-arrow-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ======= АДАПТИВНОСТЬ ======= */
@media (max-width: 1200px) {
    .ih-promo-card { flex: 0 0 calc(33.333% - 14px); }
    .ih-arrow-left { left: -5px; }
    .ih-arrow-right { right: -5px; }
}

@media (max-width: 900px) {
    .ih-promo-card { flex: 0 0 calc(50% - 10px); height: 480px; }
    .ih-promo-img-wrap { height: 220px; padding: 20px; }
    .ih-promo-header { padding: 10px 20px 20px; }
    .ih-slider-arrow { width: 44px; height: 44px; }
}

@media (max-width: 600px) {
    .ih-promo-section { padding: 15px 0 30px; }
    .ih-section-title { font-size: 26px; }
    
    .ih-promo-card {
        flex: 0 0 280px;
        height: 460px;
    }
    .ih-slider-arrow { display: none !important; }
}