/* ===== ОСНОВНЫЕ СТИЛИ ===== */
/*@font-face {
    font-family: 'KccKimHun';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/KCC-Kimhoon-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}*/
@font-face {
    font-family: 'OnomatoShark';
    src: url('../fonts/OnomatoShark(Ru-Kz).ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aeroport';
    src: url('/static/fonts/Aeroport.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
:root {
    --font-kimhoon: 'KccKimHun', cursive;
    --font-aeroport: 'Aeroport', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
    --font-onomatoshark: 'OnomatoShark', cursive;
}
/* Дополнительно запрещаем горизонтальный скролл */
body {
    overflow-x: hidden;
    padding-top: 0;
}
/*.font-kimhoon {
    font-family: var(--font-kimhoon);
    text-transform: uppercase;
    color: #2CACE3;
    font-size: clamp(2rem, 5vw, 4rem);
}*/

.font-poppins {
    font-family: var(--font-poppins);
}

.font-onomatoshark {
    text-transform: uppercase;
    font-family: var(--font-onomatoshark);
}

.title-home-len {
    color: #2CACE3;
    text-transform: uppercase;
    font-size: 80px;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.title-home {
    color: #2CACE3;
    text-transform: uppercase;
}

.text-home-len {
    font-size: 18px;
    max-width: 450px;
    margin: 0 auto
}

.font-aeroport {
    font-family: var(--font-aeroport);
}

.navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: 60px;
}

.navbar-brand img {
    width: 100px;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar > .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Логотип в средней колонке */
.navbar-brand {
    justify-self: start;
    grid-column: 1;
}

/* Меню пользователя в правой колонке */
.ms-auto {
    justify-self: end;
    grid-column: 3;
}

.title-category {
    color: #EE4830;
}
.category-card-link {
    color: #1D7AA9FF;
}

.category-icon i{
    color: #1D7AA9FF;
    font-size: 3rem !important;
}

.link-custom {
    color: #2CACE3;
}

.link-custom:hover {
    color: #1d7aa9;
    text-decoration: underline !important;
}

.container.py-4 {
    padding-top: 2rem !important;
}

.user i {
    line-height: 1;
    color: black !important;
    font-size: 1.8rem !important;
}

/* Аватар пользователя */
.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #2CACE3 !important;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

/* При наведении на аватар */
.user-avatar:hover {
    background-color: #2599d3 !important;
}

/* Для выпадающего меню при наведении */
#userDropdown:hover .user-avatar {
    background-color: #1d7aa9 !important;
}

.btn-outline-custom-search {
    font-family: var(--font-aeroport);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #2CACE3;
    background-color: transparent;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0 4px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2CACE3;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgb(36, 176, 252);
}

.btn-outline-custom-search:hover {
    background-color: #2599d3 !important;
    box-shadow: 0 2px 0 rgb(29, 122, 169);
    color: white;
}

.fixed-img-height {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.rounded-lg {
    border-radius: 12px !important;
}

.btn-outline-custom {
    font-family: var(--font-aeroport);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #2CACE3;
    background-color: transparent;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    margin: 0 4px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2CACE3;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgb(36, 176, 252);
}

.btn-outline-custom:hover {
    background-color: #2599d3 !important;
    box-shadow: 0 2px 0 rgb(29, 122, 169);
    color: white;
}

.btn-custom-icon {
    background-color: #2599d3 !important;
    font-size: 0.9rem;
    margin: 0 4px;
    padding: 0.3rem 0.3rem;
    border-radius: 6px;
    height: 35px;
    width: 35px;
    color: white;
    border: 1px solid #2CACE3;
    box-shadow: 0 2px 0 rgb(29, 122, 169);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-custom-icon:hover {
    background-color: transparent !important;
    box-shadow: 0 2px 0 rgb(36, 176, 252);
    border: 1px solid #2CACE3;
    color: #2CACE3;
}

.btn-custom {
    background-color: #2599d3 !important;
    font-size: 0.9rem;
    margin: 0 4px;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    height: 35px;
    color: white;
    border: 1px solid #2CACE3;
    box-shadow: 0 2px 0 rgb(29, 122, 169);

}

.btn-custom:hover {
    background-color: transparent !important;
    box-shadow: 0 2px 0 rgb(36, 176, 252);
    border: 1px solid #2CACE3;
    color: #2CACE3;
}

.card-title {
    font-family: var(--font-aeroport);
}

.badge.bg-custom {
    background-color: #1D7AA9FF;
}

/* Убираем стандартную рамку Bootstrap */
.card {
    border: none !important;
    border-radius: 12px;

}

/* Тень блока */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.accordion {
    border-radius: 12px !important;
    overflow: hidden !important; /* Это важно! */
    border: 1px solid #dee2e6;
}

.accordion-button:not(.collapsed) {
    background-color: #2CACE3 !important;
    color: white;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}


/* Убираем верхнюю полосу */
.card-footer {
    border-top: none !important; /* Убираем верхнюю границу у футера */
    background-color: transparent !important; /* Делаем фон прозрачным */
    padding-top: 0 !important; /* Убираем отступ сверху */
}

/* Стили для футера */
footer.custom-footer {
    background-color: #2CACE3 !important;
    color: white !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Убираем стандартные границы Bootstrap */
footer.custom-footer.border-top {
    border-top: none !important;
}

/* Все тексты в футере белые */
footer.custom-footer,
footer.custom-footer *:not(.bi) {
    color: white !important;
}

/* Специально для текста */
footer.custom-footer p,
footer.custom-footer a,
footer.custom-footer h5,
footer.custom-footer .small {
    color: white !important;
}

/* Ссылки в футере */
footer.custom-footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer.custom-footer a:hover {
    opacity: 0.8;
    color: white !important;
}

/* Иконки социальных сетей - белые */
footer.custom-footer .bi {
    color: white !important;
}

.custom-footer img {
    width: 80px;
    height: auto;
    transition: all 0.3s ease;
}

/* Контейнеры */
.container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== ТАБЛИЦЫ ===== */

/* Адаптивные таблицы */
.table-responsive {
    overflow-x: auto;
}

/* ===== ФОРМЫ ===== */

/* Общие стили для форм */
.form-control, .form-select, .django-multifile-input {
    width: 100% !important;
    display: block !important;
}

.form-control:not(textarea) {
    height: 45px;
}

textarea.form-control {
    min-height: 120px;
}

/* Специфично для поля загрузки файлов */
input[type="file"] {
    width: 100% !important;
}

/* Для селектов */
select.form-select {
    width: 100% !important;
}

/* Стили для ошибок */
.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Для мультифайлового поля */
.django-multifile-input {
    padding: 0.5rem;
}

/* ===== КНОПКИ ===== */

/* Мелкие кнопки и отступы */
.flex-wrap .btn {
    margin-top: 0.3rem;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */

.fixed-img-height {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Стили для галереи */
.gallery-image:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.gallery-item {
    transition: opacity 0.3s ease;
}

.delete-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
}

.gallery-item:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ===== КАЛЕНДАРЬ И РАСПИСАНИЕ ===== */

/* Общие стили для расписания и календаря */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.calendar-day {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calendar-day:hover {
    border-color: #2cace3;
    background: #f8f9fa;
}

.calendar-day.weekend {
    background: #f8f9fa;
    color: #6c757d;
}

.calendar-day.selected {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.calendar-day.other-month {
    color: #6c757d;
    background: #f8f9fa;
    cursor: not-allowed;
}

.calendar-day-header {
    font-weight: bold;
    text-align: center;
    background: #2cace3;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: bold;
    line-height: 1;
}

.day-weekday {
    color: #6c757d;
    line-height: 1;
}

/* Стили для временных слотов */
.time-slot {
    border-left: 4px solid #2cace3;
    margin-bottom: 0.5rem;
}

.time-slot .card-body {
    padding: 0.75rem;
}

/* Стили для выбранного расписания */
.selected-day {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #2cace3;
}

.selected-day h6 {
    color: #2cace3;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.time-slot-badge {
    background: #28a745;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

/* ===== ЗАГОЛОВКИ И ТЕКСТ ===== */

/* Адаптивные заголовки */
.h5-md {
    font-size: 1.25rem;
}

/* Улучшения для мобильных форм */
.form-label.small {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

/* ===== СОСТОЯНИЯ И АНИМАЦИИ ===== */

/* Стили для загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.schedule-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.schedule-info small {
    font-size: 0.85em;
}

.time-info .badge {
    font-size: 0.8em;
}

.price-info small {
    font-size: 0.9em;
}

.booking-actions .btn {
    font-size: 0.85em;
}

/* ===== PWA СТИЛИ ===== */

/* PWA Install Prompt */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;
    z-index: 10000;
    max-width: 360px;
    width: 90%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: bannerSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #667eea);
    border-radius: 16px 16px 0 0;
}

.pwa-banner.hidden {
    display: none;
}

/* Заголовок и текст */
.pwa-banner__title {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.pwa-banner__description {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Кнопки */
.pwa-banner__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.pwa-btn {
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pwa-btn--install {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.pwa-btn--install:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.pwa-btn--install:active {
    transform: translateY(0);
}

.pwa-btn--cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.pwa-btn--cancel:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
}

/* Иконка закрытия */
.pwa-banner__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
}

.pwa-banner__close:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
    transform: rotate(90deg);
}

/* Индикатор таймера */
.pwa-banner__timer {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    padding: 8px 0 0;
    border-top: 1px solid #e9ecef;
    margin-top: 8px;
}

/* Иконка приложения */
.pwa-banner__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #007bff, #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Анимации */
@keyframes bannerSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes bannerSlideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) scale(0.95);
    }
}

.pwa-banner.hiding {
    animation: bannerSlideDown 0.3s ease-in forwards;
}

/* ===== БАННЕР КАРУСЕЛЬ ===== */

.promo-banner-container {
    height: 35vh;
    min-height: 200px;
    max-height: 600px;
    width: 100%;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

/* Карусель */
#promoCarousel {
    height: 100%;
}

.carousel-inner {
    border-radius: 0;
    height: 100% !important;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
    height: 100% !important;
}

/* Изображение баннера */
.banner-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100% !important;
    will-change: transform;
}

/* Ссылка баннера */
.banner-link {
    transition: all 0.3s ease;
}

.banner-link:hover {
    opacity: 0.95;
    transform: scale(1.01);
}

/* Подпись баннера */
.banner-caption {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1.5rem 2rem;
    color: white;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Индикаторы карусели */
.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 6px;
    height: 3px;
    border-radius: 0px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
}

/* Кнопки навигации */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#promoCarousel:hover .carousel-control-prev,
#promoCarousel:hover .carousel-control-next {
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 60% 60%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Плавные переходы */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* Улучшения доступности */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-indicators button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Темная тема поддержка */
@media (prefers-color-scheme: dark) {
    .promo-banner-container {
        background: #1a1a1a;
    }
}

/* ===== СТИЛИ ПРОДВИЖЕНИЙ ===== */

/* Стили для карточек с продвижением */
.promotion-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #d3faf1 50%, #b9e4f6 100%) !important;
    border: 1px solid #d1e7ff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15) !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Универсальный бейдж продвижения */
.promotion-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: white;
    animation: badgePulse 2s infinite;
    pointer-events: none;
    max-width: 95%;
}

/* Для главной страницы - синий */
.promotion-badge-home {
    background: linear-gradient(45deg, #2CACE3, #1d7aa9) !important;
}

/* Для категорий - оранжевый/красный */
.promotion-badge-category {
    background: linear-gradient(45deg, #ff8e53, #ff6b6b) !important;
}

/* Для поиска - зеленый */
.promotion-badge-search {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

/* Стили для избранного */
.favorite-heart-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorite-btn {
    border: none;
    width: 20px;
    height: 20px;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #c9c8c8;
    background: transparent;
}

.favorite-btn:hover {
    background: transparent;
    transform: scale(1.1);
    color: #dc3545;
}

.favorite-btn.favorite-active {
    color: #dc3545;
    background: transparent;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.card {
    position: relative;
}

/* ===== АДАПТИВНЫЕ СТИЛИ ===== */

/* Десктопные стили */
@media (min-width: 769px) {
    .calendar-grid {
        gap: 8px;
    }

    .provider-name {
        white-space: nowrap;
    }

    .calendar-day {
        padding: 10px;
        min-height: 60px;
    }
    .promotion-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        top: 8px;
        left: 8px;
    }
}

/* Планшетные стили */
@media (min-width: 577px) and (max-width: 991px) {
    .text-home {
        font-size: clamp(1.5rem, 0.8vw, 2.5rem);
    }

        .col-md-3 {
        flex: 0 0 auto;
        width: 16.666667% !important; /* 100% / 6 = 16.666667% */
    }

    .category-card {
        transition: none;
        padding: 0.8rem 0.4rem !important;
        min-height: 110px;
    }

    .category-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #e9ecef !important;
    }

    .category-icon {
        height: 45px;
        margin-bottom: 0.5rem;
    }

    .category-icon i {
        font-size: 1.8rem !important;
    }

    /* Показываем названия на планшетах (переопределяем d-none d-lg-block) */
    .category-name.d-none.d-lg-block {
        display: block !important;
        font-size: 0.7rem !important;
        margin-top: 0.3rem;
        line-height: 1.2;
        height: auto !important;
        opacity: 1 !important;
        margin-bottom: 0 !important;
    }

    /* Уменьшаем отступы между строками */
    .row.g-2.g-md-3.g-lg-4 {
        --bs-gutter-y: 1rem;
    }

    /* Основные кнопки в карточках */
    .btn-outline-custom {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        height: 30px;
        min-width: auto;
        margin: 0 1px;
        white-space: nowrap;
    }

    /* Кнопка геолокации */
    .btn-outline-custom-geo {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        height: 30px;
        width: 30px;
        margin: 0 1px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    .title-home-len {
        font-size: 48px;
    }

    .provider-name {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .text-home-len {
        font-size: 12px;
        max-width: 280px;
    }

    .navbar-brand img {
        width: 80px;
    }

    .col-4, .col-sm-4 {
        flex: 0 0 auto;
        width: 16.666667% !important; /* 100% / 6 = 16.666667% */
    }

    .category-card {
        transition: none;
        padding: 0.5rem 0.2rem !important;
        min-height: 80px;
        justify-content: center;
    }

    .category-card:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: #e9ecef !important;
    }

    .category-icon {
        height: 35px;
        margin-bottom: 0;
    }

    .category-icon i {
        font-size: 1.5rem !important;
    }

    .category-name.d-none.d-lg-block {
        display: block !important;
        font-size: 0.5rem !important;
        margin-top: 0.3rem;
        line-height: 1.0;
        height: auto !important;
        opacity: 1 !important;
        margin-bottom: 0 !important;

    }

    /* Уменьшаем отступы между строками */
    .row.g-2.g-md-3.g-lg-4 {
        --bs-gutter-y: 0.5rem;
    }

    /* Уменьшаем горизонтальные отступы */
    .row.g-2.g-md-3.g-lg-4 {
        --bs-gutter-x: 0.25rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .promo-banner-container {
        height: 30vh;
        min-height: 150px;
        max-height: 300px;
    }

    .banner-caption {
        padding: 1rem;
    }

    .banner-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .banner-description {
        font-size: 0.65rem;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    .calendar-grid {
        gap: 6px;
    }

    .calendar-day {
        padding: 8px 4px;
        min-height: 50px;
    }

    .h5-md {
        font-size: 1.1rem;
    }
    .promotion-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .font-kimhoon {
        font-size: clamp(1.2rem, 3.5vw, 2rem);
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .d-flex.justify-content-between .btn {
        margin-bottom: 0.5rem;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        padding: 4px 2px;
        min-height: 40px;
        font-size: 0.8rem;
    }

    .calendar-day-header {
        padding: 6px 2px;
        font-size: 0.75rem;
    }

    .day-number {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .day-weekday {
        font-size: 0.7rem;
    }

    .time-slot .card-body {
        padding: 0.5rem;
    }

    .time-slot .form-control {
        font-size: 0.875rem;
    }

    .selected-day {
        padding: 8px;
        margin-bottom: 6px;
    }

    .promo-banner-container {
        height: 30vh;
        min-height: 120px;
        max-height: 180px;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-caption {
        padding: 0.75rem;
    }

    .promotion-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }

    .promotion-highlight {
        border-width: 1px !important;
    }
}