
  .careful{
    background-color: #516da4 !important;
    color: white;
    padding: 7px;
  }

/* Базовая стилизация карусели */
#fullWidthCarousel {
    width: 100vw; /* На всю ширину viewport */
    margin-left: calc(-50vw + 50%); /* Компенсируем padding родителя, если есть */
}

/* Контейнер для картинки */
.carousel-image-container {
    height: 70vh; /* Фиксированная высота */
    overflow: hidden; /* Обрезаем лишнее */
}

/* Стили для картинки */
#fullWidthCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет контейнер без искажений */
}
/* Десктоп (ширина ≥ 768px) */
@media (min-width: 768px) {
    .carousel-image-container {
        height: 60vh; /* Фиксированная высота */
    }
    .carousel-item img {
        object-fit: cover; /* Заполнение контейнера с обрезкой */
    }
}

/* Мобильные (ширина < 768px) - высота подстраивается под контент */
@media (max-width: 768px) {
    .carousel-image-container {
        height: 50vh; /* Меньше высота на телефонах */
    }
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        display: none; /* Скрываем описание на мобильных */
    }
}
/* Центрируем текст и ограничиваем его ширину */
#fullWidthCarousel .carousel-caption {
    position: relative;
    left: auto;
    right: auto;
    padding-bottom: 30px;
}

/* Улучшаем видимость стрелок */
#fullWidthCarousel .carousel-control-prev,
#fullWidthCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#fullWidthCarousel .carousel-control-prev:hover,
#fullWidthCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}


/* Затемнение картинки */
.image-overlay {
    background: rgba(0, 0, 0, 0.4); /* Прозрачность 40% */
}

/* Стили для текста */
.carousel-caption {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/*------------текст под слайдами------------*/
.credit-hero {
    padding: 80px 20px;
    margin-bottom: 30px;
}

.credit-title {
    text-align: center;
    /* font-size: 2.5rem; */
    /* font-weight: 700; */
    margin-bottom: 25px;
    /* text-transform: uppercase; */
}

.credit-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.highlight {
    font-weight: 700;
    color: #ffd700;
}

@media (max-width: 768px) {
    .credit-title {
        font-size: 1.8rem;
    }
    
    .credit-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
}
/*------------------------------------*/
.credit-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.credit-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.credit-card {
    flex: 1 1 300px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.credit-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.card-description {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.details-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background-color: #c0392b;
    color: white;
}

@media (max-width: 768px) {
    .credit-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .credit-cards {
        gap: 20px;
    }
    
    .credit-card {
        flex: 1 1 100%;
    }
}
