/* BiletService Main Stylesheet */

:root {
    --yellow: #FFCC33;
    --red: #FF3434;
    --dark-blue: #151443;
    --white: #ffffff;
    --favorite-red: #FF3434;
    --success-green: #198754;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --background: #ebebef;
}

/* Стиль для отображения реквизитов компании */
.company-details {
    font-size: 14px !important; 
    white-space: normal !important; /* Позволяем переносить текст на новую строку */
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Медиа-запрос для адаптации на маленьких экранах */
@media (max-width: 576px) {
    .company-details {
        font-size: 12px !important; /* Немного уменьшаем шрифт на мобильных */
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* General styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: var(--background);
}

.navbar-dark {
    background-color: transparent;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Компактное меню для десктопа */
.nav-compact {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-compact .nav-link {
    padding: 0.5rem 0.3rem;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

.nav-link {
    color: var(--dark-blue) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red) !important;
}

.navbar-collapse {
    background-color: var(--yellow);
    z-index: 1000;
}

#mainNavbar .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#mainNavbar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--red);
    border-color: var(--red);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e62e2e !important;
    border-color: #e62e2e !important;
}

.btn-outline-primary {
    color: var(--red);
    border-color: var(--red);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--red);
    border-color: var(--red);
    color: white;
}

/* Header & Footer */
.site-header {
    background: linear-gradient(to bottom, var(--dark-blue) 0%, #FFFFFF 100%);
    padding: 1rem 0;
}

.site-footer {
    background: linear-gradient(to bottom, var(--dark-blue) 0%, rgba(21, 20, 67, 0.8) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    margin-top: 3rem;
}

.footer-links h5 {
    color: var(--yellow);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

/* Main Navigation */
.main-nav {
    background-color: var(--yellow);
}

.main-nav .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}

.main-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0);
    color: #000 !important;
    font-weight: 700;
}

/* Десктоп навигация */
.d-lg-flex .nav {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.d-lg-flex .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.6rem 0.25rem; /* Уменьшаем отступы */
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    white-space: nowrap;
    letter-spacing: -0.5px; /* Уменьшаем межбуквенное расстояние */
}

.d-lg-flex .nav-link:hover {
    color: var(--red) !important;
}

/* Желтая полоса */
.bg-yellow {
    background-color: var(--yellow);
    padding: 0.5rem 0;
}

.bg-yellow .header-icons .nav-link {
    color: var(--dark-blue) !important;
    font-size: 1.3rem;
    margin: 0 0.5rem;
}

.bg-yellow .header-icons .nav-link:hover {
    color: #000 !important;
}

.btn-dark-blue {
    background-color: var(--dark-blue);
    color: white;
    border-color: var(--dark-blue);
}

/* Hero Slider */
#mainCarousel {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 400px; /* Фиксированная высота для десктопов */
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно для правильного масштабирования */
    object-position: center;
}

.site-header {
    position: relative;
    margin-bottom: 50px;
}

.site-header::after {
    display: none;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px; /* Уменьшаем высоту для мобильных */
    }
}

/* Category Section */
.categories-section {
    margin: 3rem 0;
}

.category-card {
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.category-title {
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Cards */
.event-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 240px; /* Сужаем ширину карточки под вертикальные изображения */
    margin: 0 auto;
    position: relative;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.event-card-actions {
    position: relative;
    z-index: 10;
}

/* Специальный класс для рядов с карточками событий */
.event-row {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
}

.event-row > .col,
.event-row > [class*="col-"] {
    padding: 8px;
    display: flex;
}

.event-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.event-img-container {
    position: relative;
    overflow: hidden;
    height: 210px; /* Уменьшаем высоту изображения примерно на треть от 320px */
    flex-shrink: 0;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--yellow);
    color: var(--dark-blue);
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.event-card-body {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-blue);
    font-size: 0.95rem;
    line-height: 1.2;
    height: 2.3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-venue {
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.venue-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.venue-link:hover {
    color: var(--red);
    text-decoration: underline;
}

.event-time {
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.event-price {
    font-weight: 700;
    color: var(--red);
    font-size: 0.9rem;
}

.event-delivery-methods {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.delivery-icon {
    color: var(--dark-gray);
    font-size: 0.8rem;
    background-color: var(--light-gray);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delivery-icon:hover {
    background-color: var(--medium-gray);
    color: var(--dark-blue);
}

.favorite-btn {
    color: white;
    background-color: var(--favorite-red);
    border: 1px solid var(--favorite-red);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn.active {
    color: var(--yellow);
    background-color: var(--favorite-red);
    border-color: var(--favorite-red);
}

.favorite-btn:hover {
    opacity: 0.9;
}

.venue-scheme-link {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.venue-scheme-link:hover {
    color: var(--red);
    text-decoration: underline;
}

/* Event Details Page */
.event-header {
    margin-bottom: 2rem;
}

.event-main-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.event-description {
    margin-bottom: 2rem;
}

.event-meta {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.event-meta-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.event-meta-icon {
    color: var(--red);
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.venue-map-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.ticket-selection {
    margin-bottom: 2rem;
}

.ticket-option {
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.ticket-option:hover {
    border-color: var(--red);
    background-color: rgba(255, 52, 52, 0.05);
}

.ticket-price {
    font-weight: 700;
    color: var(--red);
    font-size: 1.2rem;
}

.ticket-type {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
    margin-top: 3rem;
}

.review-card {
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
}

.review-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.review-rating {
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

/* Cart */
.cart-item {
    border-bottom: 1px solid var(--medium-gray);
    padding: 1.5rem 0;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--red);
    font-size: 1.3rem;
    display: flex;
    align-items: flex-end;
}

.cart-summary {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* Authentication Forms */
.auth-form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.auth-form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: var(--dark-blue);
    min-height: calc(100vh - 56px);
    padding-top: 2rem;
}

.admin-sidebar .nav-link {
    color: var(--white) !important;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--yellow) !important;
}

.admin-sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 2rem;
}

.admin-content-title {
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

.admin-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    height: 100%;
}

.admin-card-title {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.admin-stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.admin-stat-label {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* Mobile Filters Panel */
#mobileFilters.collapse:not(.show) {
    display: none;
}

#mobileFilters.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

#mobileFilters.collapse.show {
    display: block;
}

@media (max-width: 768px) {
    #mobileFilters {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        overflow-y: auto;
        background-color: white;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
    }
    
    #mobileFilters .card {
        border-radius: 0;
        height: 100%;
        margin-bottom: 0;
    }
    
    #mobileFilters .card-header {
        border-radius: 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--white);
    }
    
    #mobileFilters .card-body {
        padding-bottom: 80px; /* Дополнительный отступ внизу для лучшего доступа к кнопке */
    }
    
    #mobileFilters .btn-primary {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        z-index: 1001;
    }
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .event-row {
        margin-left: -6px;
        margin-right: -6px;
    }
    
    .event-row > .col,
    .event-row > [class*="col-"] {
        padding: 6px;
    }
}

@media (max-width: 992px) {
    .event-card {
        max-width: 100%;
    }
    
    .event-row {
        margin-left: -4px;
        margin-right: -4px;
    }
    
    .event-row > .col,
    .event-row > [class*="col-"] {
        padding: 4px;
    }
}

@media (max-width: 768px) {
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .event-date-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .event-row {
        margin-left: -2px;
        margin-right: -2px;
    }
    
    .event-row > .col,
    .event-row > [class*="col-"] {
        padding: 2px;
    }
    
    .event-card {
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .event-img-container {
        height: 160px;
    }
    
    .event-card-body {
        padding: 0.5rem;
    }
    
    .event-title {
        font-size: 0.85rem;
        height: 2rem;
    }
    
    .event-venue, .event-time, .event-price {
        font-size: 0.75rem;
    }
}

/* Sell Ticket Form */
.sell-ticket-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.sell-ticket-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}

/* Header Icons */
.header-icons .nav-link {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.header-icons .nav-link:hover {
    color: var(--yellow);
}

/* Venue Cards */
.venue-card {
    text-align: center;
    background-color: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--yellow);
}

.venue-logo-container {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.venue-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.venue-logo-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.venue-name {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.venue-location {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
    background-color: #ffc107;
    color: var(--dark-blue);
}

.floating-cart .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--red);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover,
.upload-zone.highlight {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.upload-zone.has-image {
    border-style: solid;
}

.upload-prompt {
    color: #666;
}

.img-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
}

.upload-zone input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Компактное меню для десктопа */
.nav-compact {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-compact .nav-link {
    padding: 0.5rem 0.3rem;
    font-size: 0.9rem;
    white-space: nowrap;
    text-align: center;
}

/* Плавающая корзина */
.floating-cart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-cart {
    width: 60px;
    height: 60px;
    background-color: var(--red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.floating-cart:hover {
    background-color: #e62e2e;
    transform: scale(1.05);
    color: white;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--yellow);
    color: var(--dark-blue);
    border-radius: 50%;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Всплывающее окно выбора билетов */
.ticket-modal .modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.ticket-modal .modal-header {
    background-color: var(--dark-blue);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.ticket-modal .modal-title {
    font-weight: 600;
}

.ticket-modal .modal-body {
    padding: 1.5rem;
}

.ticket-option {
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ticket-option:hover {
    border-color: var(--red);
    background-color: rgba(255, 52, 52, 0.05);
}

.ticket-option.selected {
    border-color: var(--red);
    background-color: rgba(255, 52, 52, 0.1);
}

.delivery-option {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option:hover,
.delivery-option.selected {
    border-color: var(--red);
    background-color: rgba(255, 52, 52, 0.05);
}



/* Responsive slider styles */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .carousel-item {
        height: 400px;
    }
}

/* Улучшенные стили для слайдера */
#mainCarousel {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 400px; /* Фиксированная высота для десктопов */
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Важно для правильного масштабирования */
    object-position: center;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px; /* Уменьшаем высоту для мобильных */
    }
}
