/* === START PAKS SECTION (ИСПРАВЛЕННАЯ ВЕРСИЯ) === */
.startpaks-section {
    width: 100%;
    /* Увеличенный отступ сверху, чтобы точно не наезжать на блоки выше */
    margin-top: 50px; 
    margin-bottom: 30px;
    padding: 0 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.startpaks-title {
    text-align: center;
    color: #ffaa33;
    font-family: "Tahoma", sans-serif;
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Контейнер с горизонтальным скроллом */
.startpaks-container {
    display: flex;
    gap: 25px; /* Расстояние между карточками */
    overflow-x: auto;
    
    /* ВАЖНО: Padding слева и справа, чтобы первый и последний пак не обрезались */
    padding: 10px 20px 30px 20px; 
    
    scroll-snap-type: x mandatory;
    justify-content: flex-start; /* Выравнивание по началу для скролла */
    
    scrollbar-width: thin;
    scrollbar-color: #B49A88 rgba(0,0,0,0.3);
}

/* Стилизация скроллбара */
.startpaks-container::-webkit-scrollbar { height: 8px; }
.startpaks-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); border-radius: 4px; }
.startpaks-container::-webkit-scrollbar-thumb { background: #B49A88; border-radius: 4px; }

/* Карточка старпака */
.startpak-card {
    /* Фиксированная ширина, чтобы они были одинаковыми */
    flex: 0 0 260px; 
    max-width: 260px;
    
    background: rgba(40, 40, 40, 0.95);
    border: 15px solid transparent;
    border-image-source: url('/templates/kertas/assets/img/login.png');
    border-image-slice: 30% fill;
    border-image-repeat: stretch;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    scroll-snap-align: center; /* Центрируем карточку при скролле */
    transition: transform 0.2s;
}

.startpak-card:hover { transform: translateY(-5px); }

.startpak-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border: 1px solid rgba(180, 154, 136, 0.3);
    margin-bottom: 12px;
    background: #1a1a1a;
}

.startpak-name {
    color: #ffaa33;
    font-family: "Tahoma", sans-serif;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.2;
    min-height: 36px; /* Чтобы названия в 2 строки не ломали верстку */
}

.startpak-price {
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255, 170, 51, 0.4);
}

.startpak-items {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    width: 100%;
    flex-grow: 1;
}

.startpak-items li {
    color: #ccc;
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    padding: 3px 0 3px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    line-height: 1.3;
}

.startpak-items li::before {
    content: "•";
    color: #B49A88;
    position: absolute;
    left: 0;
    top: 3px;
}

/* Кнопка покупки */
.startpak-btn {
    width: 100%;
    background-image: url(/templates/kertas/assets/img/btn.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 30px;
    border: none;
    color: #fff;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.2s, transform 0.1s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.startpak-btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.startpak-btn:active { filter: brightness(0.9); transform: translateY(1px); }

@media (max-width: 768px) {
    .startpak-card { flex: 0 0 220px; border-width: 10px; }
    .startpak-image { height: 100px; }
    .startpaks-container { padding: 10px 10px 20px 10px; } /* Меньше паддинг на мобильных */
}