@font-face {
    font-family: 'Aerob-Sport';
    src: url('../fonts/aerob-sport.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Цветовая палитра */
    --primary-color: #007bff; /* Основной синий */
    --secondary-color: #6c757d; /* Вторичный серый */
    --success-color: #28a745; /* Зеленый для успеха */
    --danger-color: #dc3545; /* Красный для ошибки */
    --background-dark: #2c3e50; /* Темный фон приложения */
    --background-light: #ecf0f1; /* Светлый фон элементов */
    --text-light: #f8f9fa; /* Светлый текст */
    --text-dark: #343a40; /* Темный текст */
    --border-color: #dee2e6; /* Цвет границ */

    /* Отступы */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;

    /* Скругление углов */
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Тени */
    --box-shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --box-shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}


/* Если разрешение экрана меньше 1366x768 не поддерживается  */

body { /* или другой родительский элемент */
    position: relative; /* Относительное позиционирование для родителя */
}

/* Адаптация профиля на всю ширину при разрешении меньше 1080px */
@media (max-width: 1079px) {
    /* Целевой элемент - контейнер формы профиля */
    .container .col-12 { /* Используем col-12, так как он теперь является самым широким классом по умолчанию */
        flex: 0 0 100%;    /* Занимает 100% ширины */
        max-width: 100%;   /* Максимальная ширина 100% */
        padding: 0 15px;   /* Добавляем стандартный Bootstrap padding по бокам */
    }

    /* Дополнительные стили для улучшения вида на этих разрешениях */
    .authorization-form {
        padding: 15px; /* Уменьшаем внутренние отступы формы */
    }

    .name-page {
        font-size: 22px; /* Уменьшаем размер заголовка профиля */
    }

    /* Если у вас есть 3 колонки внутри формы, как в вашем HTML,
       и вы хотите, чтобы они перестраивались в 1 или 2 колонки раньше,
       вы можете добавить следующее: */
    .authorization-form .row .col-md-4 {
        flex: 0 0 100%; /* Каждая колонка занимает 100% ширины */
        max-width: 100%;
    }
}



/* Заглушка */
.unsupported-resolution-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #8674e3, #620181);
    background-size: cover; /* растягиваем как фон */
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.unsupported-resolution-content {
    max-width: 600px;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out; /* Анимация появления */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.unsupported-resolution-overlay .logo {
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    /* Стиль для логотипа, если он отличается от основного */
}

.unsupported-resolution-overlay .logo .pro {

    font-size: 1.8em; /* Больше, чем основной */
    justify-content: center;
    align-items: center;
}

.unsupported-resolution-overlay .logo .gym {
    font-size: 1.8em;
}

.unsupported-resolution-content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #dc3545; /* Красный для акцента на предупреждении */
    font-weight: 600;
}

.unsupported-resolution-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.unsupported-resolution-content strong {
    color: #28a745; /* Зеленый для выделения решений */
}

.unsupported-resolution-content .contact-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.unsupported-resolution-content .contact-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.unsupported-resolution-content .contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.unsupported-resolution-content .contact-link i {
    margin-right: 8px;
    font-size: 1.2em;
}

.unsupported-resolution-content .small-text {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 30px;
}


 /*Медиа-запрос для активации заглушки*/
/* Compact-screen application download panel */
.unsupported-resolution-overlay {
    padding: 24px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 15% 10%, rgba(241, 101, 0, 0.38), transparent 34%),
        radial-gradient(circle at 88% 92%, rgba(121, 85, 255, 0.42), transparent 36%),
        linear-gradient(145deg, #15101f 0%, #2a1741 55%, #111724 100%);
}

.unsupported-resolution-content {
    width: min(100%, 540px);
    max-width: 540px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.unsupported-resolution-content > .logo,
.unsupported-resolution-content > h1,
.unsupported-resolution-content > p,
.unsupported-resolution-content > .contact-info {
    display: none;
}

.mobile-resolution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 30px;
    background: linear-gradient(135deg, #f47a17, #e95600);
    box-shadow: 0 10px 22px rgba(233, 86, 0, 0.3);
}

.mobile-resolution-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #8b8294;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.mobile-resolution-panel h2 {
    margin: 0 0 12px;
    color: #241f30;
    font-size: clamp(25px, 7vw, 20px);
    font-weight: 800;
    line-height: 1.14;
}

.mobile-resolution-description {
    margin: 0 auto 24px;
    color: #635c6b;
    font-size: 16px;
    line-height: 1.55;
}

.app-download-list {
    display: grid;
    gap: 12px;
    margin: 0 auto;
}

.app-download {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
}

.app-download > .fa {
    width: 30px;
    font-size: 34px;
    text-align: center;
}

.app-download-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    line-height: 1.15;
}

.app-download-copy small {
    margin-bottom: 3px;
    font-size: 12px;
}

.app-download-copy strong {
    color: inherit;
    font-size: 19px;
}

.app-download--android {
    color: #ffffff;
    background: linear-gradient(135deg, #242033, #3a2b50);
    box-shadow: 0 8px 20px rgba(36, 32, 51, 0.19);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-download--android:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(36, 32, 51, 0.28);
}

.app-download-action {
    font-size: 17px;
}

.app-download--ios {
    color: #756e7d;
    border: 1px solid #e7e2ea;
    background: #f7f5f8;
    cursor: default;
}

.app-download-soon {
    padding: 5px 8px;
    border-radius: 20px;
    color: #856f13;
    font-size: 11px;
    font-weight: 700;
    background: #fff0b8;
}

.mobile-resolution-note {
    margin: 21px 0 15px;
    color: #8b8294;
    font-size: 13px;
    line-height: 1.45;
}

.mobile-resolution-support {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mobile-resolution-support a {
    color: #635c6b;
    font-size: 13px;
    text-decoration: none;
}

.mobile-resolution-support a:hover {
    color: #e95600;
}

.mobile-resolution-support .fa {
    margin-right: 5px;
}

@media (max-width: 1365px) {
    .unsupported-resolution-overlay {
        display: flex; /* Показываем заглушку */
    }

    /* Скрываем весь основной контент сайта */
    header > :not(.unsupported-resolution-overlay),
    .container,
    footer,
    .sidebar-right,
    .fon {
        display: none !important; /* Используем !important, чтобы перебить другие стили */

    }
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Фон приложения */

.fon {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden; /* важно */
}

.fon::before {
    content: "";
    position: absolute;

    /* увеличиваем, чтобы не было пустых углов при повороте */
    width: 150%;
    height: 170%;
    top: -30%;
    left: -25%;

    background-image: url('../images/ornament.png');
    background-repeat: repeat;
    background-size: 370px;

    opacity: 0.05;

    transform: rotate(333deg);
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Кнопки регистрации */
.sign-nav {
    margin: 6px;
    font-weight: bold;
    display: inline-block;
    padding: 0 12px;
    color: #fff; /* Цвет текста */
    background-color: #007bff; /* Цвет фона */
    border: 6px solid #007bff; /* Синяя обводка */
    border-radius: 3px; /* Закругленные края */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Плавные переходы */

}

/* При наведении мыши */
.sign-nav:hover {
    background-color: #0056b3; /* Темно-синий при наведении */
    border-color: #0056b3; /* Темно-синяя обводка при наведении */
}

/* ------------------------------------------------------------------------------------------------------------------ */


/* Основной стиль для пунктов меню */

.nav-link {
    position: relative;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}


.nav-link:hover::before {
    left: 0;
}

.nav-link:hover::after {
    right: 0;
}

/* Выпадающее меню */
.dropdown-menu {
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Стили для пунктов выпадающего меню */
.dropdown-item:hover {
    background-color: #007bff;
    color: #fff;
}

/* Компактное меню профиля в шапке */
.profile-nav-dropdown {
    position: relative;
}

.profile-nav-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 270px;
    padding: 6px 10px 6px 6px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #241f30;
    font: inherit;
    line-height: 1.1;
    text-align: left;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.profile-nav-trigger:hover,
.profile-nav-trigger.show {
    background-color: #f0edff;
    color: #4f3c94;
}

.profile-nav-trigger:focus-visible {
    outline: 3px solid rgba(104, 80, 190, 0.32);
    outline-offset: 2px;
    box-shadow: 0 4px 14px rgba(76, 57, 145, 0.12);
}

.profile-nav-avatar,
.profile-dropdown-avatar {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #ece8ff;
}

.profile-nav-avatar {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 2px rgba(104, 80, 190, 0.12);
}

.profile-nav-avatar img,
.profile-dropdown-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-nav-identity,
.profile-dropdown-user {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}

.profile-nav-name,
.profile-dropdown-name {
    overflow: hidden;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-nav-caption,
.profile-dropdown-caption {
    color: #7b748b;
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.2;
}

.profile-nav-chevron {
    flex: 0 0 auto;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.profile-nav-trigger.show .profile-nav-chevron {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    min-width: 300px;
    margin-top: 10px !important;
    padding: 10px;
    border: 1px solid rgba(84, 64, 151, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(41, 30, 76, 0.16);
}

.profile-dropdown-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 8px;
}

.profile-dropdown-avatar {
    width: 40px;
    height: 40px;
}

.profile-dropdown-divider {
    margin: 6px 0;
    border-color: rgba(84, 64, 151, 0.12);
}

.profile-dropdown-menu .profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px;
    border-radius: 11px;
    color: #332b49;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-dropdown-menu .profile-dropdown-item i {
    width: 18px;
    color: #6a54bd;
    text-align: center;
}

.profile-dropdown-menu .profile-dropdown-item:hover,
.profile-dropdown-menu .profile-dropdown-item:focus {
    background-color: #f0edff;
    color: #4f3c94;
    transform: translateX(2px);
}

.profile-dropdown-menu .profile-dropdown-item--logout {
    color: #b42318;
}

.profile-dropdown-menu .profile-dropdown-item--logout i {
    color: #d24538;
}

.profile-dropdown-menu .profile-dropdown-item--logout:hover,
.profile-dropdown-menu .profile-dropdown-item--logout:focus {
    background-color: #fff0ef;
    color: #a01b12;
}


/* Основные стили для меню */
.nav-tile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.nav-tile li {
    position: relative;
}

.nav-link-tile {
    display: block;
    padding: 15px 20px;
    background-color: #819A32;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-link-tile:hover {
    background-color: #D43737;
}

/* Скрытое подменю */
.submenu-tile {
    display: none;
    position: absolute;
    top: 100%; /* ниже основного элемента */
    left: 0;
    padding: 0;
    margin-top: 10px;
    list-style: none;
    background-color: #677B27;
    border-radius: 8px;
    z-index: 1;
    width: 150px;
}

.submenu-tile li {
    width: 100%;
}

.submenu-tile li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background-color: #677B27;
    transition: background 0.3s;
    border-radius: 8px;
}

.submenu-tile li a:hover {
    background-color: #D43737;
}

/* Показ подменю при наведении на элемент */
.nav-tile li:hover .submenu-tile {
    display: block;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Логотип */

.fa-ioxhost {
    font-size: 40px;
    padding-left: 26px;
    color: orangered;
}

.logo {
    font-size: 28px;
    padding-left: 20px;
    font-family: 'Aerob-Sport';
    display: flex; /* чтобы "ONLINE" и "GYM" стояли в одну линию */
}

.logo--no-padding {
    padding-left: 0;
}

.pro {
    color: #241f30;
    margin-right: 6px;
}

.gym-container {
    background-color: #241f30;
    padding: 0 7px 0 7px;
    border-radius: 5px;
}

.gym {
    background: linear-gradient(100deg, #ff6c00, #fff700);

    background-clip: text;
    color: transparent;
}

/* ----------------------------------------------------------------------------------------------------------------- */

/* Подвал */

.footer {
    position: fixed; /* Фиксированное позиционирование */
    bottom: 0; /* Прижать к низу */
    left: 0; /* Растянуть от левого края */
    width: 100%; /* Занять всю ширину */
    height: 40px; /* Высота футера (можно изменить) */
    background-color: #f8f9fa; /* Серый цвет фона */
    padding-left: 20px; /* Отступ слева для текста */
    border-top: 1px solid #ccc;
    color: #3e3e3e;
    font-weight: bold;
    display: flex;
    align-items: center; /* Вертикальное центрирование текста */
    z-index: 1100; /* на передний план */
}

@media (max-width: 768px) {
    body {
        min-height: 100vh;            /* тело занимает всю высоту */
        display: flex;
        flex-direction: column;
    }

    .container,
    .container-fluid {
        flex: 1;                      /* контент занимает доступное пространство */
    }

    .footer {
        position: relative;           /* обычный поток */
        margin-top: auto;             /* прижим к низу */
        height: auto;                 /* авто-высота */
        padding: 10px 15px;
        text-align: center;
    }

}

/* ----------------------------------------------------------------------------------------------------------------- */

/* Заголовок по центру */
.name-page {
    font-family: "Arial Black";
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-top: 16px;
    display: block; /* Центрируем с учетом полной ширины контейнера */
    color: #fff;
    background: rgba(36, 31, 48);
    backdrop-filter: blur(8px);
    border: 6px solid #241f30;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}


/* Фон */

.fon {
    position: fixed; /* Изменяем с fixed на relative */
    z-index: -1;
}


/* Стиль главной формы */

.info-form {
    background-color: white;
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    min-width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1.35);
}

.info-text-z {
    font-weight: bold;
    font-family: "Arial Black";
    text-transform: uppercase;
}

.info-text {
    font-family: "Arial";
    font-size: 22px;
    text-align: justify;
}


/* Затемнение всего слайда */
.carousel-item {
    position: relative;
}

.carousel-overlay {
    border-radius: 20px;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Текст поверх затемнения */
.carousel-caption {
    z-index: 2;
    color: #fff;
}

.main-gym-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    background: linear-gradient(149deg, #ff842c 0%, #ffbe00 100%);
    border: 0 solid rgba(0, 0, 0, 0);   /* тонкая обводка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* мягкая тень */
}


.main-gym-card:hover {
    cursor: pointer;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    transition: 0.2s;
}


/* Высота правой колонки = слайдеру */
.main-gyms-wrapper {
    height: 420px;
}

/* каждая строка ровно половина */
.main-gyms-row {
    height: 50%;
}

/* картинка компактнее */
.main-gym-image {
    width: 50%;
    height: 100%;
    overflow: hidden;

}

.main-gym-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* тело карточки компактное */
.main-gym-card .card-body {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 🔥 убирает пустое место */
    flex: 1;      /* убирает пустоту */
}

.main-btn-gyms-search {
    margin: 6px;
    font-size: 14px;
    background: linear-gradient(120deg, #ff6c00 30%, #ffbe00 100%);
    border-radius: 4px;
    border: 0 solid rgba(0, 0, 0, 0);   /* тонкая обводка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* мягкая тень */

}

.main-btn-gyms-search:hover {
    font-size: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 4px;
    background: linear-gradient(120deg, #e86e17 30%, #ecb30f 100%);
    border: 0 solid rgba(0, 0, 0, 0);   /* тонкая обводка */
}

.main-btn-support {
    font-size: 14px;
}

/* 🧊 Glass panel */
.glass-panel {
    width: 100%;
    padding: 20px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.12); /* прозрачность */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
            0 8px 32px rgba(0, 0, 0, 1.35);

    transition: all 0.3s ease;
}

/* лёгкий hover-эффект */
.glass-panel:hover {
    background: rgba(255, 255, 255, 0.24);
}

.glass-panel .carousel,
.glass-panel .main-gyms-wrapper {
    height: 100%;
}


.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
            135deg,
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.05)
    );
    pointer-events: none;
}



/* ----------------------------------------------------------------------------------------------------------------- */

/* Форма авторизации */

.authorization-form {
    background-color: white;
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1.35);
}

/* Форма авторизации логотип Google */
.google-authorization {
    color: #282808;
    font-size: 24px;
    margin-left: 16px;
    position: relative; /* Для позиционирования подсказки относительно ссылки */
    display: inline-block;
    text-decoration: none;
}

.google-authorization:hover {
    color: #0d6efd;
}

.google-authorization .tooltip {
    visibility: hidden; /* По умолчанию подсказка скрыта */
    background-color: #0d6efd; /* Синий фон */
    color: white; /* Белый текст */
    text-align: center;
    margin-left: 80px;
    padding: 5px 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 100%; /* Разместить подсказку над ссылкой */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Запретить перенос текста */
    z-index: 1;
    opacity: 0; /* Прозрачность для плавного появления */
    transition: opacity 0.3s ease-in-out;
}

/* При наведении показываем подсказку */
.google-authorization:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ----------------------------------------------------------------------------------------------------------------- */

/* ==========================================================================
                               СТРАНИЦА "О НАС"
   ========================================================================== */

.contact-information-cart {
    background: white;
    border-radius: 16px;
    min-height: 329px;
    min-width: 466px;
}

.contact-information-cart {
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1.35);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-title {
    font-family: "Arial";
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
    margin-right: 10px;
    color: #4f4f4f;
    display: flex;
    align-items: center;
    white-space: nowrap; /* запрещаем перенос текста */
}

.contact-title i {
    color: #0d6efd;
    font-size: 22px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #444;

}

.contact-item i {
    font-size: 18px;
    color: #0d6efd;
    margin-top: 2px;
    min-width: 22px;
}

.contact-item span {
    line-height: 1.4;
}

.contact-item small {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 2px;
}

.contact-item a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item-soc {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.contact-item-soc i {
    font-size: 34px;
    padding-right: 6px;
    color: #4f4f4f;
    margin-top: 2px;
    min-width: 22px;
}

.contact-item-soc i:hover {
    color: #0d6efc;
}

.title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* разрешаем перенос */
}


/* ФОРМА ТЕХПОДДЕРЖКИ */

.support-cart {
    height: 100%;
}


.support-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.support-title {
    font-family: "Arial";
    font-weight: 600;
    margin-bottom: 8px;
}


.support-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}


.support-image {
    max-width: 140px;
}


.support-form label {
    font-size: 13px;
    font-weight: 500;
}


.support-form label span {
    color: red;
}


/* Ссылка-инструкция */
.manual-link {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;

    padding: 4px 8px;
    border: 1px solid black;
    border-radius: 6px;

    font-size: 15px;
    color: black;
    text-decoration: none;

    transition: 0.2s;
}

/* 🔥 Иконка тоже должна слушать цвет */
.manual-link i {
    font-size: 17px;
    color: inherit; /* важно! */
}

/* ✅ Hover подсветка сразу всего */
.manual-link:hover {
    background: #f5f5f5;
    color: #0d6efd; /* подсветка и текста, и значка */
    border-color: #0d6efd;
    text-decoration: none;
}

.form-note {
    font-size: 13px;
    color: #666;
}

.form-note::before {
    content: "* ";
    color: red;
    font-weight: bold;
}

/* Обновлённая страница контактов */
.contacts-page {
    max-width: 1180px;
}

.contacts-page__hero {
    margin-bottom: 28px;
}

.contacts-page__eyebrow {
    margin: 0 0 6px;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contacts-page .name-page {
    margin: 0;
    text-align: left;
}

.contacts-page__lead {
    max-width: 650px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 16px;
}

.contacts-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.contacts-card--details {
    display: flex;
    flex-direction: column;
}

.contacts-card--support {
    background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
}

.contacts-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8eef7;
}

.contacts-brand__badge {
    padding: 6px 10px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #241f30;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.contacts-card__title {
    margin: 24px 0 18px;
    color: #172033;
    font-size: 21px;
    font-weight: 700;
}

.contacts-card__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contacts-card__heading .btn {
    flex-shrink: 0;
}

.contacts-list {
    display: grid;
    gap: 10px;
    margin: 0;
    font-style: normal;
}

.contacts-list__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 15px;
    line-height: 1.45;
}

.contacts-list__item > i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: #edf4ff;
    color: #0d6efd;
    font-size: 17px;
}

.contacts-list__item a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}

.contacts-list__item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.contacts-list__item small {
    display: inline;
    margin-left: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.contacts-list__contact {
    white-space: nowrap;
}

.contacts-card__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.contacts-social {
    display: flex;
    gap: 8px;
}

.manual-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #dbe6f5;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    transition: 0.2s ease;
}

.contacts-social a:hover {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #ffffff;
}

.contacts-card .manual-link {
    margin-left: 0;
    border-color: #dbe6f5;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.contacts-version {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e8eef7;
    color: #94a3b8;
    font-size: 12px;
}

.contacts-version i {
    color: #0d6efd;
}

.contacts-version span {
    color: #64748b;
    font-weight: 700;
}

.support-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.support-card__header .contacts-card__title {
    margin: 0;
}

.support-card__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 21px;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.24);
}

.support-card__subtitle {
    color: #64748b;
    font-size: 14px;
}

.contacts-card .support-form label {
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.contacts-card .support-form .form-control {
    border-color: #d9e3f0;
    border-radius: 10px;
    box-shadow: none;
}

.contacts-card .support-form .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.13);
}

.support-form__message {
    height: 145px;
    resize: none;
}

.support-form__hint {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

.support-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.support-form__submit {
    min-width: 190px;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .contacts-page {
        padding-top: 20px !important;
    }

    .contacts-card {
        padding: 22px;
        border-radius: 16px;
    }

    .contacts-brand,
    .contacts-card__actions,
    .support-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contacts-brand__badge {
        align-self: flex-start;
        text-align: left;
    }

    .contacts-card .manual-link {
        justify-content: center;
    }

    .manual-links {
        align-items: stretch;
        margin-left: 0;
    }

    .support-form__submit {
        width: 100%;
    }
}


/* ----------------------------------------------------------------------------------------------------------------- */

/* ==========================================================================
                               Таблица
   ========================================================================== */

/* Таблица */
.table-wrapper {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.99);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-top: 0;
    max-height: 100vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    position: relative; /* Контекст наложения */
    z-index: 1; /* Убедитесь, что значение не слишком большое */
}

table.dataTable {
    font-size: 14px;
}
table.dataTable {
    --bs-table-striped-bg: rgba(245, 245, 245, 0.82);
}

table.dataTable thead th {
    border-bottom: 1px solid #ccc;
}

table.dataTable.no-footer {
    border-bottom: 0 solid #ccc;
}

.dataTables_filter {
    margin-bottom: 20px; /* Увеличьте или уменьшите по необходимости */
}

.dataTables_wrapper .dataTables_filter input {
    background-color: white; /* Устанавливаем белый цвет фона */
}

/* Значок поиска */
.search-icon {
    margin-right: 10px; /* Задайте желаемое значение отступа */
}

/* Стили для скроллбара */
.table-wrapper::-webkit-scrollbar {
    width: 12px; /* Ширина скроллбара */
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: #888; /* Цвет ползунка */
    border-radius: 8px 8px 8px 8px; /* Закругленные углы справа */
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Цвет ползунка при наведении */
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent; /* Цвет трека */
    border-radius: 8px; /* Закругленные углы трека */
}

.container-fluid {
    padding-right: 80px; /* Ширина боковой панели */
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* Боковая панель справа */
.sidebar-right {
    position: fixed;
    top: 89px;
    right: 0;
    width: 60px;
    height: calc(100% - 81px);
    background-color: #241f30;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 2;
}

.sidebar-button {
    background: none;
    border: none;
    color: white;
    margin: 10px 0;
    font-size: 24px;
    cursor: pointer;
    position: relative;
}

.sidebar-button:hover {
    color: #0d6efd;
}

.sidebar-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0; /* Выравнивание подсказки по правому краю кнопки */
    margin-right: 40px; /* Отступ от правого края */
    background-color: rgb(13, 110, 253);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar-button[data-tooltip]:hover::after {
    opacity: 1;
}

.disabled-button,
.sidebar-button:disabled {
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none;
    opacity: 0.6;
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   Кнопки в модальном окне, всплывающая подсказка
   ========================================================================== */

.module-button {
    position: relative;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 24px;
    cursor: pointer;
}

.module-button:hover {
    color: #0d6efd;
}


/* Подсказка (::after) */
.module-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    background-color: rgb(13, 110, 253);
    margin-left: 15px;
    color: white;
    padding: 10px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
}

/* Чтобы красиво появлялись */
.module-button[data-tooltip]::before,
.module-button[data-tooltip]::after {
    opacity: 0;
    transition: opacity 0.2s;
}


@media (max-width: 768px) {
    .module-button[data-tooltip]:hover::after {
        position: absolute;   /* теперь привязываем к самой кнопке */
        top: -40px;           /* выше кнопки */
        left: 80%;            /* по центру */
        transform: translateX(-10%);
        margin-left: 0;       /* убираем фиксированный сдвиг */
        max-width: 440vw;      /* чтобы текст не вылазил за экран */
        /*white-space: normal;  !* разрешаем перенос на мобильных *!*/
        text-align: center;
    }
}


/* ------------------------------------------------------------------------------------------------------------------ */


/* Добавьте в ваш CSS файл */
.modal-body {
    max-height: 70vh; /* Ограничиваем высоту модального окна */
    overflow-y: auto; /* Добавляем вертикальный скролл при необходимости */
}

/* Специфичные стили для вкладки с абонементами */
#new-subscription {
    max-height: 400px; /* Фиксированная высота для вкладки */
    overflow-y: auto; /* Скролл при переполнении */
}

#edit-subscription {
    max-height: 400px; /* Фиксированная высота для вкладки */
    overflow-y: auto; /* Скролл при переполнении */
}


.scroll-enabled {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}



/* ------------------------------------------------------------------------------------------------------------------ */
/* Аватар */
.avatar-container {
    overflow: hidden; /* Обрезаем выходящие за пределы круга части изображения */
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Прячем overlay по умолчанию */
    transition: opacity 0.3s ease; /* Добавляем плавный переход */
    cursor: pointer; /* Меняем курсор на pointer */
}

.avatar-upload-overlay i {
    color: white;
    font-size: 2em; /* Размер иконки */
}

.avatar-container:hover .avatar-upload-overlay {
    opacity: 1; /* Показываем overlay при наведении */
}

/* ------------------------------------------------------------------------------------------------------------------ */
/*!*СПИНЕР*!*/
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgb(82, 82, 82); !* Полупрозрачный фон *!*/
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Убедитесь, что он поверх всего */
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
                               Модальное окно редактирования Галерея
   ========================================================================== */

/* Контейнер карточки фото */
.gallery-item {
    width: 260px;
    height: 146px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
    background-color: #f8f9fa;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Оверлей с кнопками (появляется при наведении) */
/* Оверлей с кнопками */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    opacity: 0;
    transition: opacity 0.2s;

    /* ВАЖНО */
    pointer-events: none;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Кнопки остаются кликабельными */
.gallery-item .overlay button {
    pointer-events: auto;
}

/* Кнопки действий на фото */
.gallery-action-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.gallery-action-btn:hover {
    transform: scale(1.15);
}

.gallery-action-btn.btn-main { color: #0d6efd; }
.gallery-action-btn.btn-delete { color: #dc3545; }

/* Главное фото */
.gallery-item.main-photo {
    border: 6px solid #ffffff;
    box-shadow: 0 6px 16px rgba(138, 138, 138, 0.6);
    transform: scale(1.08);
}

/* Небольшое свечение */
.gallery-item.main-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 25px rgba(255, 193, 7, 0.25);
    pointer-events: none;
}


/* Overlay слабее у главного фото */
.gallery-item.main-photo .overlay {
    background: rgba(0,0,0,0.35);
}

/* Стили для Drag & Drop */
.gallery-item.draggable {
    cursor: grab;
}
.gallery-item.draggable:active {
    cursor: grabbing;
}
.gallery-item.drag-over {
    border: 3px dashed #0d6efd;
    transform: scale(0.95);
    opacity: 0.8;
}


.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
            transform 0.25s ease,
            filter 0.25s ease;

    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

#galleryPreviewModal .modal-content {
    background: transparent;
}

#galleryPreviewModal .modal-dialog {
    max-width: 90vw;
}

#galleryPreviewImage {
    max-height: 90vh;
    object-fit: contain;
}

/* Подсказка для галереи */

/* Обязательно добавляем relative родителю, чтобы tooltip не улетел */
.gallery-action-btn {
    position: relative;
}

/* Сам тултип (создается через ::after) */
.gallery-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: rgba(13, 110, 253, 0.95);
    color: white;
    padding: 6px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-family: "Arial Black";

    /* --- ИЗМЕНЕНИЯ ЗДЕСЬ --- */
    white-space: pre-line; /* Разрешает перенос строки по символу \n */
    text-align: center;    /* Центрирует текст (Сделать над главной) */
    line-height: 1.2;      /* Делает межстрочный интервал чуть плотнее */
    /* ----------------------- */

    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Эффект при наведении (показываем тултип и делаем микро-сдвиг вверх) */
.gallery-action-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   VIEW GALLERY
   ========================================================================== */

.view-gallery-container {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Карточка */
.view-gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover */
.view-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Фото */
.view-gallery-item img {
    width: 100%;
    height: 198px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease;
}

/* Zoom hover */
.view-gallery-item:hover img {
    transform: scale(1.04);
}

/* Главное фото */
.view-gallery-item.main-photo {
    box-shadow: 0 0 0 3px rgba(255,193,7,0.35),
            0 10px 25px rgba(255,193,7,0.25);
}

/* Badge */
.view-gallery-item .main-photo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffc107, #ffdb70);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ===============================
   ИСТОРИЯ ПОСЕЩЕНИЙ КЛИЕНТА
   =============================== */

.visit-list {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    overflow: hidden;
}

/* Настраиваем контейнер с карточками */
#visitsContainer {
    flex-grow: 1; /* Заставляет контейнер занять всё свободное место внутри info-form */
    overflow-y: auto; /* Включаем вертикальный скролл */
    padding-right: 5px; /* Небольшой отступ, чтобы ползунок скролла не прилипал к карточкам */
    padding-bottom: 10px;
}

/* Красивый (тонкий) скроллбар для контейнера, чтобы выглядело как в мобильном приложении */
#visitsContainer::-webkit-scrollbar {
    width: 6px;
}

#visitsContainer::-webkit-scrollbar-track {
    background: transparent;
}

#visitsContainer::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;
    border-radius: 10px;
}

#visitsContainer::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

/* Карточка посещения */
.visit-card {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    transition: 0.25s;
}


.visit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}



/* Заголовок карточки */
.visit-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* название зала */
.visit-gym {
    font-size:20px;
    font-weight:700;
    color:#333;
}

.visit-gym i {
    color:#6f42c1;
}

/* дата */
.visit-date {
    background:#6f42c1;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
}

/* блок времени */
.visit-time {
    display:flex;
    gap:20px;
    margin-top:15px;
}

.visit-time-box {
    flex:1;
    background:#f8f8ff;
    border-radius:14px;
    padding:12px;
}

.visit-time-box i {
    color:#6f42c1;
}

.visit-time-title {
    font-size:13px;
    color:#777;
}

.visit-time-value {
    font-weight:700;
    font-size:16px;
}

/* абонемент */
.visit-subscription {
    margin-top:18px;
    background:#f4fff7;
    border-radius:15px;
    padding:15px;
    border-left:5px solid #198754;
}

.visit-subscription i {
    color:#198754;
}

.visit-subscription-title {
    font-weight:700;
}

/* фильтр */
.visit-filter {
    background:white;
    border-radius:18px;
    padding:18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
                        Где позаниматься - стиль карточки
   ========================================================================== */

.gym-card {
    display: inline-block;
    margin: 10px;
    text-align: left;
}

.gym-link {
    display: flex; /* делаем flex-контейнером */
    align-items: flex-start; /* Выравниваем элементы по верху */
    text-decoration: none;
    color: inherit;
    max-width: 350px;
}

.gym-avatar {
    width: 143px;
    height: 143px;
    border-radius: 10%;
    object-fit: cover;
}

.gym-info {
    margin-left: 10px;
}

.gym-name {
    font-weight: bold;
    font-size: 18px;
    margin-top: 0; /* Убираем лишний отступ сверху */
    margin-bottom: 0;
}

/* Визуальный стиль плашки "ТОП" */
.gym-top-label {
    display: inline-flex; /* Делает элемент размером по контенту */
    align-items: center; /* Центрирует звезду и текст по вертикали */
    gap: 6px; /* Расстояние между звездой и текстом */

    background-color: #ffc107; /* Желтый фон */
    color: #000000; /* Черный текст и звезда */

    padding: 5px 12px; /* Внутренние отступы (как у кнопок) */
    border-radius: 6px; /* Скругленные углы */

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
}

/* При наведении (опционально: чтобы звезда чуть увеличивалась) */
.gym-top-label:hover i {
    transform: scale(1.1);
    transition: 0.2s ease-in-out;
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   Состояние "Пустой результат поиска" (Empty State)
   ========================================================================== */

.empty-search-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 10px;
    background-color: #f8f9fa; /* Легкий серый фон, чтобы блок выделялся */
    border-radius: 12px;
    margin-top: 10px;
}

.empty-search-icon {
    font-size: 90px; /* Большая иконка */
    color: #dee2e6;  /* Приглушенный светло-серый цвет */
    margin-bottom: 10px;
}

.empty-search-title {
    font-size: 25px;
    font-weight: 600;
    color: #495057; /* Темно-серый текст */
    margin-bottom: 10px;
}

.empty-search-text {
    font-size: 20px;
    color: #6c757d; /* Более светлый серый для подсказки */
    max-width: 400px; /* Чтобы длинный текст красиво переносился */
    margin: 0 auto;
    line-height: 1.5;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* Где позаниматься - стиль модального окна*/

.gym-search-name-header {
    padding: 10px 20px; /* Поля внутри прямоугольника */
    background-color: #272727;
    color: white; /* Белый текст */
    border-radius: 8px; /* Закругленные края */
}

.gym-search-icon {
    color: #000000;
    font-size: 24px;
    padding-left: 6px;

}

.gym-search-label {
    font-size: 24px;
    font-family:Arial;
    font-weight: bold;
}

.gym-card-view {
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    background: linear-gradient(149deg, #ff842c 0%, #ffbe00 100%);
    border: 0 solid rgba(0, 0, 0, 0);   /* тонкая обводка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* мягкая тень */
}

.social-media-links {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.social-media-link {
    display: inline-block;
    margin: 0 5px;
    font-size: 34px;
    color: #333;
    transition: color 0.3s;
}

.social-media-link:hover {
    color: #007bff;
}

/* Подсказка для социальных сетей*/

.social-media-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    margin-left: -140px;
    background-color: rgb(13, 110, 253);
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1200;
    opacity: 1;
    transition: opacity 0.2s;
}

/* Подсказка для абонемента*/

.select-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    margin-top: -80px;
    background-color: rgb(13, 110, 253);
    color: white;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1200;
    opacity: 1;
    transition: opacity 0.2s;
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.gym-hero {
    position: relative;
    height: 308px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #111;
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* Фото */
.gym-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gym-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 20%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.10) 100%
    );
    backdrop-filter: blur(4px); /* вот это делает магию */
}

/* Контент */
.gym-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    color: white;
}

/* Заголовок */
.gym-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Адрес */
.gym-hero-location,
.gym-hero-phone {
    display: flex;
    align-items: center;
    padding-top: 2px;
    gap: 8px;
    font-size: 17px;
    font-weight: bold;
    opacity: 0.92;
}

/* Активности */
.gym-activities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Badge */
.gym-badge {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* Низ hero */
.gym-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Соцсети */
.gym-social-links {
    display: flex;
    gap: 12px;
}

.gym-social-links .social-media-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    color: white;
    font-size: 20px;
    transition: .25s;
    text-decoration: none;
}

.gym-social-links .social-media-link:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.22);
}

.card-gym-search {
    height: 575px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gym-main-layout {
    display: flex;
    gap: 18px;
    align-items: stretch;
    flex: 1; /* Займет все свободное место внутри вкладки */
    min-height: 0; /* Обязательно для работы скролла внутри */
}

.gym-main-left {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    min-height: 0; /* уже есть, но важно оставить */
}

.gym-gallery-side {
    width: 230px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gym-main-left,
.gym-gallery-side {
    min-height: 0;
}


/* =========================================================
   ВРЕМЯ РАБОТЫ
========================================================= */

.gym-working-strip {
    display: flex;
    gap: 14px;
    margin-top: 18px;
    padding-bottom: 6px;
}

/* красивый скролл */
.gym-working-strip::-webkit-scrollbar {
    height: 6px;
}

.gym-working-strip::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 20px;
}

/* карточка дня */
.gym-working-day {
    min-width: 96px;
    padding: 14px 30px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.gym-working-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* сегодня */
.gym-working-day.today {
    background: linear-gradient(135deg, #ff842c, #ffbe00);
    color: white;
    transform: scale(1.03);
}

/* выходной */
.gym-working-day.closed {
    opacity: .75;
}

/* день недели */
.gym-working-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* время */
.gym-working-time {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 800;
}

/* статус */
.gym-working-status {
    margin-top: 14px;
    font-size: 14px;
    opacity: .85;
    font-weight: bold;
}

/* бейдж сегодня */
.gym-working-today-badge {
    position: absolute;
    top: -10px;
    right: -12px;
    background: white;
    color: #ff842c;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* =========================================================
   ГАЛЕРЕЯ
========================================================= */

.gym-gallery-grid {
    padding: 5px 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto; /* Теперь скролл точно появится */
}

.gym-gallery-item {
    position: relative;
    height: 132px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

.gym-gallery-item:hover {
    transform: translateY(-3px) scale(1.02);
}

.gym-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gym-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
}


#gymViewTabsContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 3. ДОБАВИТЬ: переопределяем Bootstrap, чтобы активная вкладка работала как Flex-контейнер */
#view-general.active {
    display: flex !important; /* Bootstrap ставит display: block, нам нужен flex */
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ДОБАВИТЬ: Стилизация ползунка скролла (чтобы он был в стиле вашего проекта) */
.gym-gallery-grid::-webkit-scrollbar {
    width: 6px;
}
.gym-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 20px;
}


.gym-gallery-item-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f2f5; /* Светло-серый фон */
    color: #a0a5aa;      /* Цвет иконки и текста */
    cursor: default;     /* Обычный курсор (не "рука") */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* Внутренняя тень для красоты */
}

/* Отключаем эффект увеличения при наведении для пустой карточки */
.gym-gallery-item-empty:hover {
    transform: none;
}

.gym-gallery-item-empty i {
    font-size: 32px;
    margin-bottom: 8px;
}

.gym-gallery-item-empty span {
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   КЛИЕНТСКАЯ ВКЛАДКА АБОНЕМЕНТОВ (КАРТОЧКИ - КОМПАКТНЫЙ ВИД)
   ========================================================================== */

#view-subscription {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
#view-subscription.active {
    display: flex !important;
}

/* Сетка карточек */
.client-subscriptions-grid {
    display: grid;
    /* Уменьшили мин. ширину карточки до 250px, чтобы лучше смотрелось */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    height: 505px;
    gap: 12px; /* Уменьшили расстояние между карточками */
    padding: 4px 6px 12px 4px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Кастомный скролл */
.client-subscriptions-grid::-webkit-scrollbar {
    width: 6px;
}
.client-subscriptions-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

/* Карточка - стала компактнее */
.subs-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px; /* Чуть меньше скругление */
    padding: 14px 16px;  /* Было 20px, стало меньше */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.subs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #ffe0b2;
}

/* Заголовок и цена */
.subs-header {
    margin-bottom: 10px; /* Было 16px */
    padding-bottom: 10px; /* Было 12px */
    border-bottom: 1px dashed #e4e7ea;
}

.subs-title {
    font-size: 15px; /* Было 16px */
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
}

.subs-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #212529;
}

.subs-price {
    font-size: 22px; /* Было 26px */
    font-weight: 800;
}

.subs-currency {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
}

/* Детали (занятия, зоны) */
.subs-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Было 10px */
    margin-bottom: 12px; /* Было 20px */
    font-size: 13px; /* Было 14px */
    color: #495057;
}

.subs-detail-item i {
    width: 18px;
    color: #ffbe00;
    text-align: center;
    margin-right: 6px;
}

/* Бейджики */
.subs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px; /* Было 6px 12px */
    border-radius: 6px;
    font-size: 11px; /* Было 12px */
    font-weight: 700;
    width: fit-content;
    margin-top: 4px;
}

.badge-with-trainer {
    background: #e3fcec;
    color: #198754;
}

.badge-no-trainer {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Кнопка */
.subs-btn-cart {
    background: linear-gradient(135deg, #ff842c, #ffbe00);
    border: none;
    color: white;
    font-weight: 700;
    padding: 8px; /* Было 10px */
    font-size: 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.subs-btn-cart:hover {
    filter: brightness(1.1);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 132, 44, 0.3);
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   КОРЗИНА
   ========================================================================== */
.empty-cart {
    display: flex;
    flex-direction: column; /* Располагаем элементы вертикально */
    align-items: center; /* Центрируем по горизонтали */
    justify-content: flex-end; /* Выравниваем по низу */
    height: 100%; /* Занимаем всю высоту контейнера */ /*  Важно! */
}

.empty-cart i {
    color: rgb(189, 189, 189);
    font-size: 280px; /* Увеличиваем размер значка */
    padding: 20px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.empty-cart button {
    margin-top: 20px;
    font-weight: bold;
    font-size: 26px; /* Увеличиваем размер значка */
    padding: 15px 15px;
}


.empty-cart span {
    font-weight: bold;
    font-size: 30px; /* Увеличиваем размер текста */
}

.total-row-cart span{
    font-weight: bold;
}


.total-row-cart button {
    margin-left: 10px;
}


.shopping-cart-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow 0.3s ease; /* Для плавного перехода */
}

.shopping-cart-avatar-img:hover {
    box-shadow: 0 0 5px blue;
}

.shopping-cart-result{
    margin-top: 20px;
}

.shopping-cart-payment-notice {
    margin-bottom: 0;
}

.shopping-cart-gym {
    padding: 16px 0;
}

.shopping-cart-gym + .shopping-cart-gym {
    border-top: 1px solid var(--border-color);
}

.shopping-cart-gym-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.shopping-cart-gym-title {
    margin: 0;
    font-size: 1.25rem;
}

/* ==========================================================================
   ШАГ 1: СТИЛИ ДЛЯ КОРЗИНЫ
   ========================================================================== */

.shopping-cart-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.shopping-cart-table td {
    word-wrap: break-word;
    vertical-align: middle;
}

.shopping-cart-table td textarea.form-control {
    min-height: auto;
    height: auto;
}

/* Контейнер для корзины*/
#shoppingCartForm {
    max-height: calc(100vh - 446px); /* оставляем место для хедера и футера */
    overflow-y: auto;
    overflow-x: hidden; /* запрет горизонтального скролла */
    padding-right: 5px; /* чтобы не налезало на скроллбар */
}

/* Для красоты — тонкий скроллбар */
#shoppingCartForm::-webkit-scrollbar {
    width: 6px;
}

#shoppingCartForm::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

#shoppingCartForm::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.4);
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   СТРАНИЦА абонементов клиентов и архива абонементов клиентов
   ========================================================================== */

.subscriptions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-y: auto;
    padding-right: 10px;
    flex-direction: column;
    max-height: calc(100vh - 380px);
    min-height: 190px;
}

.subscription-card {
    background: linear-gradient(135deg, #800080, #DA70D6); /* Фиолетовый градиент */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(50% - 10px); /* Two cards per row with a gap of 20px */
    box-sizing: border-box; /* Include padding in width calculation */
}
@media (max-width: 767px) {
    .subscription-card {
        width: 100%; /* One card per row on smaller screens */
    }
}

.user-subscription-gym-name {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    text-transform: uppercase;
    background-color: #4f4f4f;     /* Чёрный фон */
    color: white;                /* Белый текст */
    padding: 10px 20px;          /* Внутренние отступы */
    border-radius: 12px;         /* Закруглённые углы */
    display: inline-block;       /* Чтобы фон был по размеру текста */
}


.subscription-content {
    color: white;
    display: flex;
    align-items: center; /* Align items vertically */
}

.gym-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gym-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: box-shadow 0.3s ease; /* Для плавного перехода */
}

.gym-logo-archived {
    width: 75%;
    height: 75%;
}

.gym-logo:hover {
    box-shadow: 0 0 8px #1760ff;
}

.subscription-info {
    flex-grow: 1; /* Allow subscription info to take up remaining space */
}

.subscription-info p {
    margin-bottom: 5px;
}
.fa-receipt {
    margin-right: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.fa-receipt:hover {
    box-shadow: 0 0 8px #1760ff;
}

/* Стиль для кнопки чек */
.view-receipt-btn,
.view-receipt-btn:visited,
.view-receipt-btn:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Стиль для кнопки продлить абонемент*/
.renew-btn,
.renew-btn:visited,
.renew-btn:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.user-subscription-archived {
    font-size: 16px;
}

.qr-icon {
    font-size: 28px;
    margin-left: 8px;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.4s ease;

}

.qr-icon:hover {
    transform: scale(1.2);
    color: #0d6efc;
}

.enter-icon {
    font-size: 28px;
    margin-left: 8px;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.4s ease;

}

.enter-icon:hover {
    transform: scale(1.2);
    color: #0d6efc;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 8px; /* расстояние между QR и enter */
}

.qr-icon, .enter-icon {
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.qr-icon:hover, .enter-icon:hover {
    transform: scale(1.2);
    color: #0d6efc;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* абонементы ожидающие подтверждения */

.input-2rows-height {
    height: 4em;
    resize: none;
}


@media (max-width: 768px) {

    .container .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .container {
        margin-bottom: 60px;
    }

    .info-form {
        min-width: unset;
        padding: 15px;
    }

    .name-page {
        font-size: 22px;
    }

    .subscription-card {
        width: 100%;
    }

    .subscription-content {
        flex-direction: column;
        align-items: center;
    }

    .subscription-info {
        margin-top: 15px;
    }

    .view-receipt-btn {
        display: inline-block;
        margin-top: 10px;
    }



    .sidebar-right {
        display: none;
    }

    .container-fluid {
        padding-right: 15px;
    }
}

/* ==========================================================================
   Базовые кнопки для таблиц подтверждений
   ========================================================================== */

/* Общий базовый стиль */
.action-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

/* ---------- Подтвердить (зелёная) ---------- */
.approve-btn {
    color: #198754; /* зелёный */
}

.approve-btn:hover {
    color: #0d6efd !important;
}

/* ---------- Отклонить (красная) ---------- */
.reject-btn {
    color: #dc3545; /* красный */
}

.reject-btn:hover {
    color: #0d6efd !important;
}

/* ---------- Скидка применена (жёлтая) ---------- */
.discount-applied {
    background-color: #ffc107 !important; /* Жёлтый фон */
    color: inherit !important;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

/* При наведении — % становится синим */
.discount-applied:hover {
    background-color: #ffc107 !important;
    color: #0d6efd !important;
}


/* ==========================================================================
   СТИЛИ ДЛЯ ПОИСКА ЗАЛОВ
   ========================================================================== */


#searchResults {

    max-height: calc(100vh - 420px);

    overflow-y: auto;

    padding-right: 15px;
}

#searchResults::-webkit-scrollbar {
    width: 8px;
}

#searchResults::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#searchResults::-webkit-scrollbar-thumb:hover {
    background: #555;
}




/* ==========================================================================
   АДАПТАЦИЯ СТРАНИЦЫ  АРХИВА абонементов пользователя ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */

/* Брейкпоинт можно настроить, 992px - хороший старт для планшетов и телефонов */
@media (max-width: 992px) {

    /* --- Адаптация таблицы архива --- */

    /* 1. Скрываем десктопные заголовки */
    #viewUserSubscriptionsArchivedTable thead {
        display: none;
    }

    /* Убираем ненужные `<colgroup>` на мобильных */
    #viewUserSubscriptionsArchivedTable colgroup {
        display: none;
    }

    /* 2. Превращаем таблицу, тело, строки и ячейки в блочные элементы */
    #viewUserSubscriptionsArchivedTable,
    #viewUserSubscriptionsArchivedTable tbody,
    #viewUserSubscriptionsArchivedTable tr,
    #viewUserSubscriptionsArchivedTable td {
        display: block;
        width: 100%;
    }

    /* 3. Стилизуем строки как отдельные карточки */
    #viewUserSubscriptionsArchivedTable tr {
        margin-bottom: 25px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        background-color: #fdfdfd;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    #viewUserSubscriptionsArchivedTable tr:last-child {
        margin-bottom: 0;
    }

    /* 4. Убираем границы у ячеек и добавляем отступы */
    #viewUserSubscriptionsArchivedTable td {
        border: none;
        padding: 10px 5px;
        display: flex; /* Используем flexbox для выравнивания метки и значения */
        justify-content: space-between; /* Разносим их по краям */
        align-items: center;
        text-align: right; /* Выравниваем текст значения по правому краю */
    }

    #viewUserSubscriptionsArchivedTable td:not(:first-child):not(:last-child) {
        border-bottom: 1px solid #eee; /* Разделитель между "полями" карточки */
    }

    /* 5. Добавляем "заголовки" из data-атрибутов */
    #viewUserSubscriptionsArchivedTable td[data-label]::before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left; /* Выравниваем метку по левому краю */
        margin-right: 15px;
        color: #333;
        flex-shrink: 0; /* Метка не будет сжиматься */
    }

    /* 6. Особые стили для ячеек без меток (лого и чек) */
    #viewUserSubscriptionsArchivedTable td:first-child { /* Логотип */
        justify-content: center; /* Центрируем лого */
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    #viewUserSubscriptionsArchivedTable .gym-logo-archived {
        width: 80px;
        height: 80px;
    }

    #viewUserSubscriptionsArchivedTable td:last-child { /* Чек */
        justify-content: center; /* Центрируем иконку чека */
        padding-top: 15px;
    }

    /* 7. Адаптируем input/textarea внутри ячеек */
    #viewUserSubscriptionsArchivedTable td input,
    #viewUserSubscriptionsArchivedTable td textarea {
        width: 60%; /* Ограничиваем ширину поля, чтобы оно не прилипало к метке */
        text-align: right;
        background-color: transparent; /* Убираем фон у disabled полей для лучшего вида */
        border: none;
        padding: 0;
        font-size: 1rem;
    }

    #viewUserSubscriptionsArchivedTable td textarea {
        resize: none;
        height: auto;
        min-height: 2.5em; /* Минимальная высота для вида услуг */
    }

    /* --- Общие исправления для мобильной версии --- */

    /* Заставляем основной контейнер занимать всю ширину */
    .container .col-xl-10,
    .container .col-lg-7,
    .container .col-md-7,
    .container .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    /* Убираем минимальную ширину у формы */
    .info-form {
        min-width: unset;
        padding: 15px;
    }

    /* Делаем заголовок страницы компактнее */
    .name-page {
        font-size: 1.5rem; /* 24px */
    }

    /* Убираем фиксацию подвала на мобильных, чтобы он не мешал */
    /*.footer {*/
    /*    position: absolute;*/
    /*    margin-top: 20px; !* Добавляем отступ сверху *!*/
    /*}*/

    /* Скрываем боковую панель */
    .sidebar-right {
        display: none;
    }

    /* Убираем правый отступ у всего контейнера */
    .container-fluid {
        padding-right: 15px; /* Стандартный отступ Bootstrap */
    }
}



/* ==========================================================================
   СТИЛИ ДЛЯ ВСПЛЫВАЮЩИХ УВЕДОМЛЕНИЙ
   ========================================================================== */

.toast-container {
    display: flex;
    flex-direction: column-reverse; /* Новые тосты будут добавляться сверху старых */
    gap: 10px;
    position: fixed;
    bottom: 34px;
    left: -6px;
    z-index: 1055;
}

/* Основной контейнер уведомления */
.toast {
    background-color: #241f30 !important; /* Ваш цвет */
    color: #ffffff !important;
}

/* Заголовок уведомления */
.toast-header {
    background-color: #2e283b !important; /* Чуть светлее, для отделения заголовка */
    color: #ffffff !important;
}

.toast-header .text-muted {
    color: #b3b3b3 !important;
}

/* Кнопка закрытия (крестик) */
.toast-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.toast-container>:not(:last-child)
{
    margin-bottom: 0;
}

/* ==========================================================================
   СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ
   ========================================================================== */

/* Контейнер списка */
.notification-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Карточка уведомления */
.notification-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    gap: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: #f8f9fa;
}

/* Выделение непрочитанных */
.notification-item.unread {
    border-left: 9px solid #0d6efd;
    background: #f0f7ff;
}

/* Иконка слева */
.notif-avatar {
    width: 50px;
    height: 50px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6c757d;
}

.notif-avatar i {
    font-size: 22px; /* Установите размер здесь */
}

/* Тело уведомления */
.notif-body {
    flex-grow: 1;
}
.notif-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: #212529;
}
.notif-text {
    color: #666;
    font-size: 14px;
    line-height: 1.3;
}

/* Дата и крестик (справа) */
.notif-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    min-width: 80px;
}

.notif-date {
    font-size: 14px;
    color: #000000;
    font-weight: 700;
    white-space: nowrap;
}
.notif-close {
    color: #ccc;
    font-size: 30px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}
.notif-close:hover { color: #dc3545; }

/* Шапка с кнопками */
.notifications-header {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Контейнер скролла */
#userNotificationsForm {
    max-height: calc(100vh - 270px - 40px);
    overflow-y: auto;
    padding-right: 5px;
}

#userNotificationsForm::-webkit-scrollbar {
    width: 6px;
}
#userNotificationsForm::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}


/* ==========================================================================
   АДАПТАЦИЯ СТРАНИЦЫ  QR-SCANNER
   ========================================================================== */


/* Основное содержимое */
.main-content {
    width: 100%;
    flex-grow: 1; /* Занимает все доступное пространство */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Обертка для сканера, чтобы добавить стили и оверлей */
.scanner-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px; /* Максимальная ширина QR-сканера */
    height: 300px; /* Фиксированная высота для сканера */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    background-color: #000; /* Черный фон, пока камера загружается */
    margin-bottom: var(--spacing-lg);
}

#reader {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Чтобы видео занимало все пространство */
}

#reader video {
    padding-top: 60px;
}

/* Оверлей для визуализации области сканирования */
.scanner-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 50px solid rgba(0, 0, 0, 0.6); /* Темная рамка вокруг */
    box-sizing: border-box;
    pointer-events: none; /* Чтобы не блокировать события мыши/тача */
    border-radius: var(--border-radius);
}

.scanner-wrapper .overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px; /* Размер "прицела" */
    height: 150px;
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}


/* Результат сканирования */
.scan-result {
    font-size: 1.2em;
    font-weight: 500;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--background-light);
    color: var(--text-dark);
    box-shadow: var(--box-shadow-sm);
    width: 100%;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    min-height: 60px; /* Минимальная высота, чтобы не "прыгал" */
}

.scan-result i {
    font-size: 1.5em;
    color: var(--secondary-color);
}

.scan-result.ok {
    background-color: #e6ffe6; /* Светло-зеленый фон */
    color: var(--success-color);
    border: 1px solid var(--success-color);
}
.scan-result.ok i {
    color: var(--success-color);
}

.scan-result.fail {
    background-color: #ffe6e6; /* Светло-красный фон */
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}
.scan-result.fail i {
    color: var(--danger-color);
}



/* Адаптивность для очень маленьких экранов */
@media (max-width: 380px) {
    .name-page {
        font-size: 1.8em;
    }
    .app-container {
        padding: var(--spacing-md);
    }
    .scanner-wrapper {
        height: 250px;
        max-width: 250px;
    }
    .scanner-wrapper .overlay {
        border: 30px solid rgba(0, 0, 0, 0.6);
    }
    .scanner-wrapper .overlay::before {
        width: 120px;
        height: 120px;
    }
    .scan-result {
        font-size: 1em;
        padding: var(--spacing-sm);
        min-height: 50px;
    }
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* ===============================================================================================
   СТИЛЬ ПЕРЕКЛЮЧАТЕЛЯ СВИЧА ДЛЯ АБОНИМЕНТОВ, СПОРТИВНЫХ ОБЬЕКТОВ, ОБРАЩЕНИЙ В СЛУЖБУ ПОДДЕРЖКИ
   =============================================================================================== */
    .form-switch-archived {
    margin-bottom: 10px;
    margin-right: 4px;
    }


   .form-switch-active {
    margin-bottom: 10px;
}
.form-switch-finish {
    margin-bottom: 10px;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   СТРАНИЦА Абонементы клиентов
   ========================================================================== */

#confirmationTableBody td {
    vertical-align: middle;
}

/* затемнение модального окна*/
.modal.second {
    z-index: 1060;
}
.modal.second .modal-dialog {
    z-index: 1061;
}
.modal-backdrop.second {
    z-index: 1059;
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* ==========================================================================
   СТИЛЬ Select2 с поиском под Bootstrap 5
   ========================================================================== */

/* Основной блок */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ced4da; /* как у обычного .form-select */
    border-radius: 0.375rem;   /* тот же радиус */
    height: 37px; /* как у стандартного select */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.select2-container .select2-selection--single {
    height: 37px;

}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-selection__clear {
    position: relative;
    top: -2px; /* поднимаем крестик на 6 пикселей */
}


/* Текст выбранного элемента */
.select2-container--default .select2-selection__rendered {
    color: #212529;
    line-height: 1.5;
}

/* Стрелка справа */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
}

/* При фокусе — стандартное выделение bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Высота выпадающего списка */
.select2-container .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* Подгон ширины под 100% формы */
.select2-container {
    display: block;
    width: auto !important;
}



/* ------------------------------------------------------------------------------------------------------------------ */

/* ========================================================================== */
/*  СТИЛЬ ВЫБОРА Choices.js под Bootstrap 5                                          */
/* ========================================================================== */

/* Основной контейнер */
.choices {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Блок выбора */
.choices__inner {
    display: flex;
    align-items: center;
    min-height: 37px;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* При фокусе — эффект Bootstrap */
.choices.is-focused .choices__inner {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Placeholder / текст выбранного */
.choices__inner .choices__list--single {
    padding: 0;
    margin: 0;
}

/* Текст */
.choices__inner .choices__item--selectable {
    color: #212529;
}

/* Выпадающий список */
.choices__list--dropdown {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 1056; /* выше модалки */
}

/* Пункт списка */
.choices__list--dropdown .choices__item {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Hover */
.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: #e9ecef;
}

/* Стрелка */
.choices[data-type*="select-one"]::after {
    content: "";
    position: absolute;
    right: 7px;
    top: 65%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6c757d;
    transform: translateY(-50%);
}

/* Когда открыт — стрелка вверх */
.choices[data-type*="select-one"].is-open::after {
    border-top: none;
    border-bottom: 5px solid #6c757d;
}

/* Высота поиска */
.choices__list--dropdown .choices__input {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: 0.5rem;
}

/* Отключенные */
.choices.is-disabled .choices__inner {
    background-color: #e9ecef;
    opacity: 1;
}

/* Запрещаем перенос текста и фиксируем высоту Choices */
.choices__inner,
.choices__list--single .choices__item {
    white-space: nowrap;        /* не переносим текст */
    overflow: hidden;           /* скрываем лишнее */
    text-overflow: ellipsis;    /* добавляем "..." при обрезании */
}

/* Минимальная и фиксированная высота — чтобы не прыгало */
.choices__inner {
    height: 37px;               /* как у .form-select Bootstrap */
    display: flex;
    align-items: center;
}

/* Для совместимости с select-one */
.choices[data-type*="select-one"] .choices__item--selectable {
    line-height: 1.5;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ========================================================================== */
/*  СТИЛЬ ОТЧЕТОВ                                                              */
/* ========================================================================== */

.chart-container {
    position: relative;
    height: 40vh;
}

.total-revenue-card {
    background-color: #f8f9fa; /* Светлый фон */
    border-left: 5px solid #0d6efd; /* Цветная полоска слева (цвет вашей кнопки) */
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

.total-revenue-card h5 {
    color: #6c757d; /* Серый цвет для заголовка */
    margin-bottom: 0.5rem;
    font-weight: normal;
}

/* ------------------------------------------------------------------------------------------------------------------ */


.sidebar-button.filter-active .fa-filter {
    color: #fc8733; /* Яркий синий цвет, как у кнопок Bootstrap */
    /* Или любой другой цвет, например, #28a745 (зеленый) или #ffc107 (желтый) */
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* СОПРТИВНЫЕ СОБЫТИЯ */

.card-img-left {
    width: 300px;
    height: 180px;
    flex-shrink: 0;
    padding: 15px 0 0 15px;   /* отступы остаются */
    border-radius: 10px;
}

.card-img-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

/* ПОДСВЕТКА ТОЛЬКО КАРТИНКИ */
.card-img-left img:hover {
    box-shadow: 0 0 8px #1760ff;
}

.badge-lg {
    font-size: 1.1rem;
    padding: 0.55em 1em;
    border-radius: 0.6rem;
    font-weight: 600;
}

.modal-badge-lg {
    font-size: 20px;
    padding: 0.35em 0.6em;
    border-radius: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-title {
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.event-title:hover {
    color: #1760ff;
    text-shadow: 0 0 6px rgba(23, 96, 255, 0.6);
}

#modalEventSourceLink:hover {
    text-decoration: underline;
}

.modal-event-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f5;
}

.modal-event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.name-page-button {
    font-family: "Arial Black";
    font-size: 28px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: space-between; /* текст слева, кнопка справа */

    margin-top: 16px;
    padding: 0 8px;

    color: #fff;


    background: rgba(36, 31, 48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);


    border: 6px solid #241f30;
    border-radius: 3px;
}

/* Текст по центру */
.title-text {
    flex: 1;
    text-align: center;
}

.archive-btn:hover {
    color: #0d6efd;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* МОДАЛЬНОЕ ОКНО ДОБАВЛЕНИЯ СОПРТИВНОГО СОБЫТИЯ */

/* Уменьшаем отступ снизу у переключателей */
#addSportEventsModal .form-check {
    padding-top: 2.5rem;
}

#newDescription {
    resize: none;
}

/* МОДАЛЬНОЕ ОКНО РЕДАКТИРОВАНИЯ СОПРТИВНОГО СОБЫТИЯ */

/* Уменьшаем отступ снизу у переключателей */

#editSportEventsModal .form-check {
    padding-top: 2.5rem;
}

#editDescription {
    resize: none;
}
/* ------------------------------------------------------------------------------------------------------------------ */

/* СЛУЖБА ТЕХНИЧЕСКОЙ ПОДДЕРЖКИ */

#supportRequestTable td:nth-child(6) {
    max-width: 30vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* МОДАЛЬНОЕ ОКНО СОГЛАШЕНИЯ ПЕРСОНАЛЬНЫХ ДАННЫХ */

.agreement-scroll {
    height: 400px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* ===========================================================================
   MODERN HOME PAGE
   ========================================================================== */

.home-page {

}

.home-container {
    position: relative;
}

.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: clamp(32px, 5vw, 64px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 28px;
    color: #fff;
    background:
            linear-gradient(13deg, rgba(12, 24, 49, .98) 0%, rgba(16, 58, 100, .94) 53%, rgba(1, 115, 135, .88) 100%);
    box-shadow: 0 22px 50px rgba(19, 35, 61, .28);
}

.home-hero::before,
.home-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    filter: blur(2px);
}

.home-hero::before {
    width: 360px;
    height: 360px;
    right: 13%;
    bottom: -220px;
    background: rgba(255, 179, 46, .46);
}

.home-hero::after {
    width: 240px;
    height: 240px;
    right: -90px;
    top: -85px;
    border: 30px solid rgba(255, 255, 255, .08);
}

.home-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.home-section-kicker {
    margin: 0 0 10px;
    color: #f7b332;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0;
    padding-bottom: 10px;
    color: #fff;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0px;
    gap: 12px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button--primary {
    color: #12233e;
    background: #f7b332;
    box-shadow: 0 8px 22px rgba(247, 179, 50, .27);
}

.home-button--primary:hover {
    color: #12233e;
    background: #ffc552;
}

.home-button--secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
}

.home-button--secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.home-support-link {
    width: 100%;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    text-decoration: none;
}

.home-support-link:hover {
    color: #fff;
}

.home-hero__visual {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(44%, 520px);
    pointer-events: none;
}

.home-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
}

.home-orbit--large {
    width: 360px;
    height: 360px;
    top: -58px;
    right: 94px;
}

.home-orbit--small {
    width: 222px;
    height: 222px;
    right: 195px;
    bottom: -86px;
    border-color: rgba(247, 179, 50, .7);
}

.home-hero__badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.home-hero__badge i {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #172945;
    background: #f7b332;
}

.home-hero__badge span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.home-hero__badge--top {
    top: 58px;
    right: 53px;
}

.home-hero__badge--bottom {
    right: 177px;
    bottom: 43px;
}

.home-content-grid {
    margin-top: 28px;
}

.home-section-card {
    height: 100%;
    padding: 25px;
    border: 1px solid rgba(22, 52, 89, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 34px rgba(20, 37, 61, .09);
}

.home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
}

.home-section-heading h2 {
    margin: 0;
    color: #182945;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.home-section-kicker {
    margin-bottom: 4px;
    color: #007b9d;
    font-size: 10px;
}

.home-section-link,
.home-event-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #006f96;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-section-link:hover,
.home-event-link:hover {
    color: #f0821d;
}

.home-events-carousel,
.home-event-slide,
.home-event-slide img {
    height: 324px;
}

.home-events-carousel {
    overflow: hidden;
    border-radius: 18px;
    background: #183354;
}

.home-event-slide img {
    width: 100%;
    object-fit: cover;
}

.home-event-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 24, 47, .04) 28%, rgba(6, 22, 43, .92) 100%);
}

.home-event-slide__content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 26px 30px 29px;
    color: #fff;
}

.home-event-date {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.home-event-dot {
    margin: 0 6px;
    color: #f7b332;
}

.home-event-slide__content h3 {
    max-width: 82%;
    margin: 0 0 13px;
    color: #fff;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.17;
}

.home-event-link {
    color: #f7b332;
}

.home-events-carousel .carousel-indicators {
    right: 20px;
    bottom: 11px;
    left: auto;
    z-index: 3;
    margin: 0;
}

.home-events-carousel .carousel-indicators button {
    width: 7px;
    height: 7px;
    margin: 0 3px;
    border: 0;
    border-radius: 50%;
}

.home-events-carousel .carousel-control-next,
.home-events-carousel .carousel-control-prev {
    width: 12%;
}

.home-gyms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-gym-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    text-align: left;
    background: #183354;
    box-shadow: none;
    transition: transform .22s ease, box-shadow .22s ease;
}

.home-gym-card:hover,
.home-gym-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 13px 22px rgba(19, 43, 76, .2);
}

.home-gym-card:focus-visible {
    outline: 3px solid #f7b332;
    outline-offset: 3px;
}

.home-gym-card img,
.home-gym-card__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-gym-card img {
    object-fit: cover;
    transition: transform .35s ease;
}

.home-gym-card:hover img {
    transform: scale(1.06);
}

.home-gym-card__overlay {
    background: linear-gradient(180deg, rgba(8, 30, 56, .07), rgba(8, 30, 56, .9));
}

.home-gym-card__content,
.home-gym-card__arrow {
    position: absolute;
    z-index: 1;
}

.home-gym-card__content {
    right: 14px;
    bottom: 13px;
    left: 14px;
    color: #fff;
}

.home-gym-card__name,
.home-gym-card__city {
    display: block;
}

.home-gym-card__name {
    overflow: hidden;
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-gym-card__city {
    color: rgba(255, 255, 255, .77);
    font-size: 12px;
}

.home-gym-card__arrow {
    top: 12px;
    right: 12px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #193253;
    font-size: 11px;
    background: rgba(255, 255, 255, .88);
}

.home-empty-state {
    display: grid;
    min-height: 240px;
    padding: 35px;
    place-items: center;
    align-content: center;
    border: 1px dashed rgba(0, 104, 145, .24);
    border-radius: 18px;
    color: #6e7d91;
    text-align: center;
}

.home-empty-state i {
    margin-bottom: 11px;
    color: #52a7c1;
    font-size: 32px;
}

.home-empty-state p {
    max-width: 270px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .home-hero__visual {
        opacity: .55;
    }

    .home-hero__badge--top {
        right: 24px;
    }

    .home-hero__badge--bottom {
        right: 90px;
    }
}

@media (max-width: 767.98px) {
    .home-page {
        padding: 16px 0 38px;
    }

    .home-hero {
        min-height: 0;
        padding: 34px 25px;
        border-radius: 21px;
    }

    .home-hero__visual {
        display: none;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .home-button {
        width: 100%;
        justify-content: center;
    }

    .home-section-card {
        padding: 19px;
        border-radius: 20px;
    }

    .home-section-heading h2 {
        font-size: 20px;
    }

    .home-events-carousel,
    .home-event-slide,
    .home-event-slide img {
        height: 286px;
    }

    .home-event-slide__content {
        padding: 22px;
    }

    .home-event-slide__content h3 {
        max-width: 100%;
        font-size: 21px;
    }

    .home-gyms-grid {
        grid-template-columns: 1fr;
    }

    .home-gym-card {
        min-height: 162px;
    }
}

/* Главная страница вмещается в высоту экрана на desktop. */
@media (min-width: 1200px) and (min-height: 650px) {
    body.home-body {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.home-body > header {
        flex: 0 0 auto;
    }

    body.home-body .home-page {
        flex: 1 1 auto;
        min-height: 0;
        padding: 12px 0;
        display: flex;
    }

    body.home-body .home-container {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
    }

    body.home-body .footer {
        position: relative;
        flex: 0 0 32px;
        height: 32px;
        min-height: 32px;
    }

    body.home-body .home-hero {
        min-height: 0;
        padding: clamp(18px, 2vw, 26px) clamp(32px, 4vw, 52px);
    }

    body.home-body .home-hero h1 {
        font-size: clamp(30px, 3vw, 42px);
    }

    body.home-body .home-button {
        min-height: 39px;
        padding: 0 15px;
        font-size: 13px;
    }

    body.home-body .home-support-link {
        align-items: center;
        width: auto;
        margin: 0 0 0 4px;
        color: rgba(255, 255, 255, .86);
        font-size: 13px;
    }

    body.home-body .home-hero__badge--top {
        top: 22px;
        right: 53px;
    }

    body.home-body .home-hero__badge {
        padding: 9px 12px;
    }

    body.home-body .home-hero__badge i {
        width: 27px;
        height: 27px;
    }

    body.home-body .home-content-grid {
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 12px;
        --bs-gutter-y: 0;
    }

    body.home-body .home-content-grid > section {
        display: flex;
        min-height: 0;
    }

    body.home-body .home-section-card {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        padding: 18px 20px;
        flex-direction: column;
    }

    body.home-body .home-section-heading {
        flex: 0 0 auto;
        margin-bottom: 11px;
    }

    body.home-body .home-section-heading h2 {
        font-size: 20px;
    }

    body.home-body .home-events-carousel,
    body.home-body .home-event-slide,
    body.home-body .home-event-slide img {
        height: auto;
    }

    body.home-body .home-events-carousel {
        flex: 1 1 auto;
        min-height: 0;
    }

    body.home-body .carousel-inner,
    body.home-body .home-event-slide,
    body.home-body .home-event-slide img {
        height: 100%;
    }

    body.home-body .home-event-slide__content {
        padding: 18px 22px 21px;
    }

    body.home-body .home-event-slide__content h3 {
        margin-bottom: 7px;
        font-size: clamp(18px, 1.7vw, 23px);
    }

    body.home-body .home-event-date {
        margin-bottom: 5px;
        font-size: 12px;
    }

    body.home-body .home-gyms-grid {
        flex: 1 1 auto;
        min-height: 0;
        grid-auto-rows: minmax(0, 1fr);
    }

    body.home-body .home-gym-card {
        min-height: 0;
    }

    body.home-body .home-empty-state {
        flex: 1 1 auto;
        min-height: 0;
        padding: 18px;
    }
}

/* ===========================================================================
   SPORT EVENTS
   ========================================================================== */

.sport-events-page {

}

.sport-events-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 31px 36px;
    border: 1px solid rgba(19, 61, 101, .12);
    border-radius: 24px;
    background: linear-gradient(118deg, #102b4b, #0a6983);
    box-shadow: 0 18px 42px rgba(16, 44, 76, .2);
}



.sport-events-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 45px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.sport-events-intro {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.sport-events-archive {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, .1);
    transition: transform .2s ease, background .2s ease;
}

.sport-events-archive:hover {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.sport-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.sport-event-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(185px, 37%) minmax(0, 1fr);
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(16, 58, 99, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 27px rgba(18, 42, 76, .08);
    transition: transform .24s ease, box-shadow .24s ease;
}

.sport-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(18, 42, 76, .15);
}

.sport-event-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #154e6a;
}

.sport-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .35s ease;
}

.sport-event-card:hover .sport-event-media img {
    transform: scale(1.06);
}

.sport-event-media__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(8, 33, 61, .02), rgba(8, 33, 61, .42));
    pointer-events: none;
}

.sport-event-media--placeholder {
    display: grid;
    place-items: center;
    background:
            radial-gradient(circle at 25% 25%, rgba(247, 191, 81, .75), transparent 18%),
            linear-gradient(145deg, #133d61, #0a8a9c);
}

.sport-event-media--placeholder i {
    color: rgba(255, 255, 255, .86);
    font-size: 44px;
}

.sport-event-menu {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
}

.sport-event-menu__button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 10px;
    color: #183455;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.sport-event-menu__button:hover {
    color: #183455;
    background: #fff;
}

.sport-event-card__body {
    display: flex;
    min-width: 0;
    padding: 22px 23px 18px;
    flex-direction: column;
}

.sport-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-bottom: 11px;
    color: #5a748c;
    font-size: 12px;
    font-weight: 600;
}

.sport-event-meta i,
.sport-event-address i {
    margin-right: 3px;
    color: #007a9a;
}

.sport-event-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 24px 8px 0;
    color: #172f4e;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sport-event-title:hover {
    color: #0a789a;
    text-shadow: none;
}

.sport-event-address {
    overflow: hidden;
    margin: 0 0 8px;
    color: #657e94;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sport-event-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #526a7f;
    font-size: 13px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sport-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
}

.sport-event-type {
    max-width: 62%;
    overflow: hidden;
    padding: 5px 9px;
    border-radius: 8px;
    color: #086b8d;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #e2f4f7;
}

.sport-event-open {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    color: #0a789a;
    font-size: 12px;
    font-weight: 750;
    background: transparent;
}

.sport-event-open:hover {
    color: #e88323;
}

.sport-events-empty {
    grid-column: 1 / -1;
    padding: 58px 24px;
    border: 1px dashed rgba(8, 117, 150, .25);
    border-radius: 20px;
    color: #637b91;
    text-align: center;
    background: rgba(255, 255, 255, .74);
}

.sport-events-empty i {
    margin-bottom: 13px;
    color: #59a7bc;
    font-size: 35px;
}

.sport-events-empty h2 {
    margin: 0 0 8px;
    color: #254461;
    font-size: 21px;
    font-weight: 800;
}

.sport-events-empty p {
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.55;
}

.sport-events-pagination {
    margin-top: 28px;
}

.sport-events-pagination .pagination {
    gap: 6px;
}

.sport-events-pagination .page-item .page-link {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(13, 97, 134, .13);
    border-radius: 10px;
    color: #24627f;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, .9);
}

.sport-events-pagination .page-item.active .page-link {
    border-color: #0b7898;
    color: #fff;
    background: #0b7898;
}

.sport-events-pagination .page-item:not(.disabled) .page-link:hover {
    border-color: #f2a832;
    color: #1b3b56;
    background: #f8c45e;
}

@media (max-width: 991.98px) {
    .sport-events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .sport-events-page {
        padding: 16px 0 56px;
    }

    .sport-events-hero {
        align-items: flex-start;
        padding: 24px 21px;
        border-radius: 20px;
        flex-direction: column;
    }

    .sport-events-intro {
        font-size: 14px;
        line-height: 1.45;
    }

    .sport-events-archive {
        width: 100%;
        justify-content: center;
    }

    .sport-event-card {
        grid-template-columns: 1fr;
    }

    .sport-event-media {
        min-height: 176px;
    }

    .sport-event-card__body {
        padding: 19px;
    }
}

/* Четыре события на одной странице помещаются в desktop-viewport без скролла. */
@media (min-width: 1200px) and (min-height: 650px) {
    body.sport-events-body {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.sport-events-body > header {
        flex: 0 0 auto;
    }

    body.sport-events-body .sport-events-page {
        flex: 1 1 auto;
        min-height: 0;
        padding: 10px 0;
        display: flex;
    }

    body.sport-events-body .sport-events-container {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
    }

    body.sport-events-body .footer {
        position: relative;
        flex: 0 0 32px;
        height: 32px;
        min-height: 32px;
    }

    body.sport-events-body .sport-events-hero {
        padding: 15px 26px;
        border-radius: 18px;
    }


    body.sport-events-body .sport-events-hero h1 {
        font-size: 30px;
    }

    body.sport-events-body .sport-events-intro {
        display: none;
    }

    body.sport-events-body .sport-events-archive {
        min-height: 35px;
        padding: 0 13px;
        font-size: 12px;
    }

    body.sport-events-body .sport-events-grid {
        flex: 1 1 auto;
        min-height: 0;
        margin-top: 10px;
        gap: 10px;
        grid-auto-rows: minmax(0, 1fr);
    }

    body.sport-events-body .sport-event-card {
        min-height: 0;
        grid-template-columns: minmax(145px, 31%) minmax(0, 1fr);
        border-radius: 15px;
    }

    body.sport-events-body .sport-event-card__body {
        padding: 13px 17px 12px;
    }

    body.sport-events-body .sport-event-meta {
        gap: 5px 10px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    body.sport-events-body .sport-event-title {
        margin-bottom: 5px;
        font-size: 17px;
    }

    body.sport-events-body .sport-event-address {
        margin-bottom: 5px;
        font-size: 11px;
    }

    body.sport-events-body .sport-event-description {
        font-size: 12px;
        line-height: 1.35;
    }

    body.sport-events-body .sport-event-card__footer {
        padding-top: 8px;
    }

    body.sport-events-body .sport-event-type,
    body.sport-events-body .sport-event-open {
        font-size: 12px;
    }

    body.sport-events-body .sport-event-menu {
        top: 8px;
        right: 8px;
    }

    body.sport-events-body .sport-event-menu__button {
        width: 29px;
        height: 29px;
    }

    body.sport-events-body .sport-events-pagination {
        flex: 0 0 auto;
        margin-top: 10px;
    }

    body.sport-events-body .sport-events-pagination .pagination {
        margin-bottom: 0;
    }

    body.sport-events-body .sport-events-pagination .page-item .page-link {
        width: 31px;
        height: 31px;
        border-radius: 8px;
        font-size: 11px;
    }
}

/* Архив отличаем спокойной палитрой, сохраняя общий интерфейс карточек. */
.sport-events-archive-hero {
    background: linear-gradient(118deg, #263849, #586d82);
}

.sport-events-archive-page .sport-event-media img {
    filter: saturate(.68) contrast(.95);
}

.sport-events-archive-page .sport-event-card:hover .sport-event-media img {
    filter: saturate(.85) contrast(1);
}

.sport-events-archive-page .sport-event-type {
    color: #536b80;
    background: #e8eef3;
}

.sport-events-archive-page .sport-event-open,
.sport-events-archive-page .sport-event-title:hover {
    color: #536f89;
}

/* ===========================================================================
   EVENT DETAILS MODAL
   ========================================================================== */

.event-details-modal .modal-dialog {
    max-width: 880px;
}

.event-details-modal__content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #f7fafc;
    box-shadow: 0 22px 58px rgba(14, 43, 74, .28);
}

.event-details-modal__header {
    position: relative;
    align-items: center;
    min-height: 76px;
    padding: 10px 70px 10px 25px;
    border: 0;
    color: #fff;
    background: linear-gradient(122deg, #143657, #087b93);
}

.event-details-modal__heading h5 {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 3vw, 29px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.event-details-modal__header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    margin: 0 40px 0 18px;
}

.event-details-modal__type {
    max-width: 165px;
    overflow: hidden;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, .13);
}

.event-details-modal__close {
    position: absolute;
    top: 16px;
    right: 19px;
    width: 31px;
    height: 31px;
    margin: 0 !important;
    border-radius: 9px;
    opacity: .86;
    background-color: rgba(255, 255, 255, .88);
}

.event-details-modal__close:hover {
    opacity: 1;
}

.event-details-modal__body {
    padding: 25px;
}

.event-details-modal__image-wrap {
    position: relative;
    min-height: 245px;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #163e5d;
}

.event-details-modal__image-wrap::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(9, 33, 57, 0), rgba(9, 33, 57, .23));
}

.event-details-modal .modal-event-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.event-details-modal__image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    background:
            radial-gradient(circle at 25% 25%, rgba(247, 191, 81, .68), transparent 16%),
            linear-gradient(145deg, #173a5b, #078398);
}

.event-details-modal__image-placeholder i {
    font-size: 38px;
}

.event-details-modal__facts {
    display: grid;
    gap: 13px;
}

.event-details-modal__fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 67px;
    padding: 13px;
    border: 1px solid rgba(16, 90, 125, .1);
    border-radius: 13px;
    background: #fff;
}

.event-details-modal__fact-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #0a7493;
    background: #e1f3f6;
}

.event-details-modal__fact-label {
    display: block;
    margin-bottom: 3px;
    color: #71869a;
    font-size: 11px;
    font-weight: 700;
}

.event-details-modal__fact strong {
    display: block;
    color: #28445d;
    font-size: 14px;
    line-height: 1.35;
}

.event-details-modal__source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 9px;
    color: #0a718f;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    background: #e9f6f8;
}

.event-details-modal__source:hover {
    color: #07566c;
    background: #d8f0f4;
}

.event-details-modal__source .fa-arrow-up-right-from-square {
    font-size: 10px;
}

.event-details-modal__description {
    margin-top: 24px;
    padding: 19px 20px;
    border: 1px solid rgba(16, 90, 125, .1);
    border-radius: 15px;
    background: #fff;
}

.event-details-modal__description h6 {
    margin: 0 0 10px;
    color: #203e58;
    font-size: 13px;
    font-weight: 800;
}

.event-details-modal__description h6 i {
    margin-right: 6px;
    color: #0b7898;
}

.event-details-modal__description p {
    margin: 0;
    color: #526b80;
    font-size: 14px;
    line-height: 1.2;
    white-space: pre-line;
}

.event-details-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 25px;
    border-top: 1px solid rgba(19, 84, 117, .1);
    background: #fff;
}

.event-details-modal__timestamps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: #76899a;
    font-size: 13px;
}

.event-details-modal__timestamps i {
    margin-right: 3px;
    color: #57a2b8;
}

.event-details-modal__done {
    min-width: 92px;
    padding: 8px 15px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    background: #0b7898;
}

.event-details-modal__done:hover {
    color: #fff;
    background: #086982;
}

/* Неопубликованные события: фон страницы намеренно не переопределяем. */
.sport-events-unpublished-page {
    padding: 28px 0 72px;
}

.sport-events-unpublished-hero {
    background: linear-gradient(118deg, #394556, #807052);
}

.sport-event-card__labels {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

.sport-event-draft {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 8px;
    color: #85632b;
    font-size: 11px;
    font-weight: 750;
    background: #fff1d7;
}

.sport-event-draft i {
    margin-right: 3px;
}

.sport-event-card--unpublished .sport-event-type {
    max-width: 130px;
}

@media (min-width: 1200px) and (min-height: 650px) {
    body.sport-events-unpublished-body .sport-events-unpublished-page {
        flex: 1 1 auto;
        min-height: 0;
        padding: 10px 0;
        display: flex;
    }

    body.sport-events-unpublished-body .sport-event-draft {
        padding: 4px 6px;
        font-size: 9px;
    }

    body.sport-events-unpublished-body .sport-event-card__labels {
        gap: 4px;
    }

    body.sport-events-unpublished-body .sport-event-card--unpublished .sport-event-type {
        max-width: 106px;
    }
}

@media (max-width: 575.98px) {
    .sport-events-unpublished-page {
        padding: 16px 0 56px;
    }
}

@media (max-width: 575.98px) {
    .event-details-modal .modal-dialog {
        margin: .6rem;
    }

    .event-details-modal__header,
    .event-details-modal__body,
    .event-details-modal__footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .event-details-modal__header {
        min-height: 0;
        padding-right: 58px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .event-details-modal__heading h5 {
        font-size: 21px;
    }

    .event-details-modal__type {
        display: none;
    }

    .event-details-modal__header-actions {
        margin: 0 27px 0 10px;
    }

    .event-details-modal__image-wrap {
        min-height: 190px;
    }

    .event-details-modal__body {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .event-details-modal__description {
        margin-top: 18px;
        padding: 16px;
    }

    .event-details-modal__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-details-modal__done {
        width: 100%;
    }
}

/* ===========================================================================
   Поиск спортивных комплексов
   ========================================================================== */

.gym-search-page {
    padding: 28px 0 68px;
}

.gym-search-container {
    max-width: 1400px;
}

.gym-search-panel {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(480px, 1.25fr);
    gap: 32px;
    align-items: end;
    padding: 30px 34px;
    border: 1px solid rgba(22, 55, 97, .1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(18, 43, 76, .08);
}

.gym-search-panel__heading {
    min-width: 0;
}

.gym-search-panel__kicker,
.gym-search-results-section__heading p {
    margin: 0 0 7px;
    color: #2472b9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.gym-search-panel__kicker i {
    margin-right: 5px;
}

.gym-search-panel__heading h1,
.gym-search-results-section__heading h2 {
    margin: 0;
    color: #173a63;
    font-weight: 800;
    letter-spacing: -.025em;
}

.gym-search-panel__heading h1 {
    font-size: clamp(25px, 3vw, 31px);
    line-height: 1.6;
}

.gym-search-panel__heading > p:not(.gym-search-panel__kicker) {
    max-width: 420px;
    margin: 11px 0 0;
    color: #62758a;
    font-size: 14px;
    line-height: 1.5;
}

.gym-search-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.gym-search-field {
    min-width: 0;
}

.gym-search-field label {
    display: block;
    margin: 0 0 7px;
    color: #4d647d;
    font-size: 12px;
    font-weight: 700;
}

.gym-search-field label i {
    width: 14px;
    margin-right: 3px;
    color: #2a8ed9;
    text-align: center;
}

.gym-search-form .select2-container {
    width: 100% !important;
}

.gym-search-form .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #d5e0eb;
    border-radius: 11px;
    background: #f9fbfd;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.gym-search-form .select2-container--default .select2-selection--single:hover {
    border-color: #aac5df;
    background: #fff;
}

.gym-search-form .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2184cb;
    box-shadow: 0 0 0 3px rgba(33, 132, 203, .13);
    background: #fff;
}

.gym-search-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 34px;
    padding-left: 13px;
    color: #213f5d;
    font-size: 14px;
    line-height: 36px;
}

.gym-search-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
    right: 8px;
}

.gym-search-submit {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #1b8ad6, #2661af);
    box-shadow: 0 8px 17px rgba(35, 105, 180, .22);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.gym-search-submit i {
    margin-right: 5px;
}

.gym-search-submit:hover,
.gym-search-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 11px 20px rgba(35, 105, 180, .3);
    filter: brightness(1.04);
}

.gym-search-submit:focus-visible,
.gym-search-card__main:focus-visible,
.gym-search-card__subscriptions:focus-visible {
    outline: 3px solid rgba(247, 179, 50, .62);
    outline-offset: 3px;
}

.gym-search-results-section {
    margin-top: 12px;
    padding: 26px 28px 18px;
    border: 1px solid rgba(22, 55, 97, .1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(18, 43, 76, .08);
}

.gym-search-results-section__heading {
    display: flex;
    gap: 18px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gym-search-results-section__heading h2 {
    font-size: 24px;
}

.gym-search-results-count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #e9f4fd;
    color: #236ba9;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.gym-search-results-section__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.gym-search-view-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid #d5e0eb;
    border-radius: 10px;
    background: #f5f9fc;
}

.gym-search-view-switch__button {
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #526d88;
    font-size: 12px;
    font-weight: 700;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.gym-search-view-switch__button i {
    margin-right: 4px;
}

.gym-search-view-switch__button.is-active {
    background: #fff;
    box-shadow: 0 2px 7px rgba(26, 69, 107, .14);
    color: #216faa;
}

.gym-search-view-switch__button:focus-visible {
    outline: 3px solid rgba(247, 179, 50, .62);
    outline-offset: 2px;
}

#searchResults.gym-search-results {
    max-height: calc(100vh - 355px);
    padding: 2px 8px 12px 2px;
    overflow-y: auto;
}

.gym-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.gym-search-map-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #d5e0eb;
    border-radius: 18px;
    height: clamp(320px, calc(100vh - 460px), 620px);
    min-height: 0;
}

.gym-search-map {
    height: clamp(320px, calc(100vh - 460px), 620px);
    min-height: 0;
}

.gym-search-map__empty {
    position: absolute;
    z-index: 500;
    top: 50%;
    left: 50%;
    max-width: min(90%, 420px);
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 5px 18px rgba(23, 58, 99, .2);
    color: #49657e;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transform: translate(-50%, -50%);
}

.gym-search-map__empty i {
    margin-right: 5px;
    color: #2784ca;
}

.gym-search-yandex-marker {
    position: relative;
    transform: translate(-50%, -100%);
}

.gym-search-yandex-marker__pin {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #238bd4, #2461ae);
    box-shadow: 0 4px 12px rgba(22, 71, 123, .35);
    color: #fff;
    font-size: 15px;
    place-items: center;
    transform: rotate(-45deg);
}

.gym-search-yandex-marker__pin i {
    transform: rotate(45deg);
}

.gym-search-yandex-marker__popup {
    position: absolute;
    bottom: 47px;
    left: 50%;
    display: none;
    width: max-content;
    max-width: 230px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 58, 99, .24);
    color: #3d566e;
    font-size: 12px;
    line-height: 1.35;
    transform: translateX(-50%);
}

.gym-search-yandex-marker.is-open .gym-search-yandex-marker__popup {
    display: grid;
    gap: 5px;
}

.gym-search-yandex-marker__popup strong {
    color: #173a63;
    font-size: 13px;
}

.gym-search-yandex-marker__details {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #216faa;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}

/* Отчёт: загруженность спортивного комплекса */
.report-visit-load {
    padding: 1.5rem 0 2rem;
}

.report-visit-load__container {
    max-width: 1140px;
}

.report-visit-load__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(41, 98, 255, 0.14);
    border-radius: 1.25rem;
    background: linear-gradient(118deg, #ffffff 0%, #f4f7ff 100%);
    box-shadow: 0 14px 35px rgba(32, 63, 124, 0.08);
}

.report-visit-load__hero::after {
    position: absolute;
    top: -4rem;
    right: 4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(55, 127, 255, 0.08);
    content: "";
}

.report-visit-load__eyebrow {
    margin: 0 0 0.35rem;
    color: #3268c9;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-visit-load__hero h1 {
    margin: 0;
    color: #1e2e4c;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
}

.report-visit-load__hero p:not(.report-visit-load__eyebrow) {
    max-width: 40rem;
    margin: 0.45rem 0 0;
    color: #66748c;
    font-size: 0.95rem;
}

.report-visit-load__hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 4.6rem;
    height: 4.6rem;
    place-items: center;
    border-radius: 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, #3268dc, #55a8e9);
    box-shadow: 0 13px 24px rgba(43, 104, 209, 0.26);
    font-size: 2rem;
}

.report-visit-load__filters {
    margin-top: 1rem;
    padding: 1.2rem 1.35rem 1.35rem;
    border: 1px solid #e7ebf2;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 47, 84, 0.06);
}

.report-visit-load__filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-visit-load__filter-title > span {
    color: #273958;
    font-size: 0.95rem;
    font-weight: 750;
}

.report-visit-load__filter-title > span i {
    margin-right: 0.38rem;
    color: #4381d5;
}

.report-visit-load__filter-title small {
    color: #7a8699;
    font-size: 0.78rem;
}

.report-visit-load__filter-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1.55fr) minmax(9.5rem, 1fr) minmax(9.5rem, 1fr) minmax(11.5rem, 1fr);
    gap: 0.85rem;
    align-items: end;
}

.report-visit-load__field {
    display: block;
    min-width: 0;
}

.report-visit-load__field > span {
    display: block;
    margin: 0 0 0.4rem;
    color: #59677d;
    font-size: 0.76rem;
    font-weight: 700;
}

.report-visit-load__field .form-select,
.report-visit-load__field .form-control {
    min-height: 2.7rem;
    border-color: #dfe6f0;
    border-radius: 0.7rem;
    color: #2d3d5a;
    box-shadow: none;
    font-size: 0.88rem;
}

.report-visit-load__field .form-select:focus,
.report-visit-load__field .form-control:focus {
    border-color: #5b91e1;
    box-shadow: 0 0 0 0.2rem rgba(69, 131, 222, 0.13);
}

.report-visit-load__generate {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.7rem;
    color: #ffffff;
    background: linear-gradient(135deg, #2d6bcd, #4388df);
    box-shadow: 0 9px 18px rgba(47, 109, 205, 0.2);
    font-size: 0.87rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.report-visit-load__generate:hover,
.report-visit-load__generate:focus {
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(47, 109, 205, 0.28);
    transform: translateY(-1px);
}

.report-visit-load__generate.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.report-visit-load__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.report-visit-load__metric,
.report-visit-load__charts {
    display: flex;
    min-width: 0;
    min-height: 6.8rem;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #e7ebf2;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(31, 47, 84, 0.055);
}

.report-visit-load__metric-icon,
.report-visit-load__charts-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border-radius: 0.75rem;
    font-size: 1.05rem;
}

.report-visit-load__metric-icon--visits {
    color: #286abf;
    background: #e9f3ff;
}

.report-visit-load__metric-icon--day {
    color: #7453c3;
    background: #f2edff;
}

.report-visit-load__metric-icon--time {
    color: #0b887e;
    background: #e5f8f4;
}

.report-visit-load__metric-label,
.report-visit-load__charts small {
    display: block;
    margin-bottom: 0.18rem;
    color: #7b8799;
    font-size: 0.72rem;
    line-height: 1.25;
}

.report-visit-load__metric strong {
    display: block;
    overflow: hidden;
    color: #263958;
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-visit-load__charts {
    width: 100%;
    border-color: #dce8fb;
    color: #ffffff;
    text-align: left;
    background: linear-gradient(135deg, #315d9d, #3a89b9);
    box-shadow: 0 10px 22px rgba(43, 100, 166, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-visit-load__charts:hover,
.report-visit-load__charts:focus {
    box-shadow: 0 13px 25px rgba(43, 100, 166, 0.28);
    transform: translateY(-1px);
}

.report-visit-load__charts-icon {
    color: #2e68a3;
    background: rgba(255, 255, 255, 0.92);
}

.report-visit-load__charts small {
    color: rgba(255, 255, 255, 0.75);
}

.report-visit-load__charts strong {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
}

.report-visit-load__charts strong i {
    margin-left: 0.2rem;
}

.report-visit-load__pdf-canvases {
    position: absolute;
    top: 0;
    left: -9999px;
}

.report-visit-load__pdf-canvases > div {
    width: 800px;
    height: 400px;
}

@media (max-width: 991.98px) {
    .report-visit-load__filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-visit-load__field--gym {
        grid-column: span 2;
    }

    .report-visit-load__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .report-visit-load {
        padding: 0.8rem 0 1.5rem;
    }

    .report-visit-load__hero {
        align-items: flex-start;
        padding: 1.15rem;
    }

    .report-visit-load__hero p:not(.report-visit-load__eyebrow) {
        font-size: 0.86rem;
    }

    .report-visit-load__hero-icon {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 0.9rem;
        font-size: 1.45rem;
    }

    .report-visit-load__filters {
        padding: 1rem;
    }

    .report-visit-load__filter-title {
        display: block;
    }

    .report-visit-load__filter-title small {
        display: block;
        margin-top: 0.3rem;
    }

    .report-visit-load__filter-grid,
    .report-visit-load__metrics {
        grid-template-columns: 1fr;
    }

    .report-visit-load__field--gym {
        grid-column: auto;
    }

    .report-visit-load__metric,
    .report-visit-load__charts {
        min-height: 5.8rem;
    }
}

@media (min-width: 1200px) and (min-height: 650px) {
    body.report-visit-load-page {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.report-visit-load-page > header {
        flex: 0 0 auto;
    }

    body.report-visit-load-page .report-visit-load {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        align-items: flex-start;
        padding: 0.8rem 0 0.65rem;
    }

    body.report-visit-load-page .report-visit-load__container {
        width: 100%;
    }

    body.report-visit-load-page .report-visit-load__hero {
        padding: 0.8rem 1.35rem;
    }

    body.report-visit-load-page .report-visit-load__eyebrow,
    body.report-visit-load-page .report-visit-load__hero p:not(.report-visit-load__eyebrow) {
        display: none;
    }

    body.report-visit-load-page .report-visit-load__hero h1 {
        font-size: 1.4rem;
    }

    body.report-visit-load-page .report-visit-load__hero-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.85rem;
        font-size: 1.4rem;
    }

    body.report-visit-load-page .report-visit-load__filters {
        margin-top: 0.65rem;
        padding: 0.75rem 1.05rem 0.9rem;
    }

    body.report-visit-load-page .report-visit-load__filter-title {
        margin-bottom: 0.55rem;
    }

    body.report-visit-load-page .report-visit-load__metrics {
        margin-top: 0.65rem;
    }

    body.report-visit-load-page .report-visit-load__metric,
    body.report-visit-load-page .report-visit-load__charts {
        min-height: 5.5rem;
        padding: 0.75rem 0.85rem;
    }

    body.report-visit-load-page .footer {
        position: relative;
        flex: 0 0 32px;
        height: 32px;
        min-height: 32px;
    }
}

.gym-search-results-grid--scrollable {
    display: flex;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: #94bad9 #eaf2f8;
    scrollbar-width: thin;
}

.gym-search-results-grid--scrollable::-webkit-scrollbar {
    height: 8px;
}

.gym-search-results-grid--scrollable::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eaf2f8;
}

.gym-search-results-grid--scrollable::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94bad9;
}

.gym-search-results-grid--scrollable .gym-search-card {
    flex: 0 0 calc((100% - 54px) / 4);
    scroll-snap-align: start;
}

@media (min-width: 1200px) {
    .gym-search-results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gym-search-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dfe8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(22, 58, 95, .07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.gym-search-card:hover {
    transform: translateY(-4px);
    border-color: #b7d4eb;
    box-shadow: 0 15px 28px rgba(22, 58, 95, .14);
}

.gym-search-card--featured {
    border-color: #edc76d;
}

.gym-search-card__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.gym-search-card__media {
    position: relative;
    height: 144px;
    overflow: hidden;
    background: #eaf2f8;
}

.gym-search-card .gym-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.gym-search-card:hover .gym-avatar {
    transform: scale(1.05);
}

.gym-search-card__featured {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(24, 63, 101, .88);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.gym-search-card__featured i {
    margin-right: 3px;
    color: #ffd15d;
}

.gym-search-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 16px 17px 14px;
}

.gym-search-card .gym-name {
    overflow: hidden;
    margin: 0;
    color: #183b61;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-search-card .gym-city {
    margin: 8px 0 15px;
    overflow: hidden;
    color: #718398;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-search-card .gym-city i {
    margin-right: 2px;
    color: #2b90d8;
}

.gym-search-card__details {
    margin-top: auto;
    color: #2378bb;
    font-size: 12px;
    font-weight: 700;
}

.gym-search-card__details i {
    margin-left: 4px;
    transition: transform .2s ease;
}

.gym-search-card__main:hover .gym-search-card__details i {
    transform: translateX(3px);
}

.gym-search-card__subscriptions {
    width: calc(100% - 34px);
    min-height: 39px;
    margin: 0 17px 17px;
    border: 1px solid #267ac0;
    border-radius: 9px;
    background: #fff;
    color: #236dad;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.gym-search-card__subscriptions i {
    margin-right: 5px;
}

.gym-search-card__subscriptions:hover {
    transform: translateY(-1px);
    background: #267ac0;
    color: #fff;
}

.gym-search-loading,
.gym-search-empty,
.gym-search-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px dashed #bed2e4;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    color: #61778e;
    text-align: center;
}

.gym-search-loading {
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.gym-search-loading i {
    color: #2784ca;
}

.gym-search-empty {
    flex-direction: column;
    padding: 24px;
}

.gym-search-empty__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 11px;
    border-radius: 50%;
    place-items: center;
    background: #e9f4fd;
    color: #267dc1;
    font-size: 21px;
}

.gym-search-empty h3 {
    margin: 0 0 6px;
    color: #24496d;
    font-size: 18px;
    font-weight: 800;
}

.gym-search-empty p {
    max-width: 410px;
    margin: 0;
    font-size: 14px;
}

.gym-search-error {
    gap: 8px;
    padding: 20px;
    border-color: #e7b8ba;
    color: #a63d43;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .gym-search-panel {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gym-search-results-grid--scrollable .gym-search-card {
        flex-basis: calc((100% - 18px) / 2);
    }
}

@media (max-width: 767.98px) {
    .gym-search-page {
        padding: 18px 0 52px;
    }

    .gym-search-panel {
        padding: 23px 20px;
        border-radius: 18px;
    }

    .gym-search-form {
        grid-template-columns: 1fr;
    }

    .gym-search-submit {
        width: 100%;
    }

    #searchResults.gym-search-results {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .gym-search-map {
        height: 440px;
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .gym-search-results-section {
        margin-top: 24px;
        padding: 21px 17px 15px;
        border-radius: 18px;
    }

    .gym-search-results-section__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gym-search-results-section__controls {
        justify-content: flex-start;
    }

    .gym-search-results-section__heading h2 {
        font-size: 22px;
    }

    .gym-search-results-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .gym-search-results-grid--scrollable .gym-search-card {
        flex-basis: 86%;
    }

    .gym-search-card__media {
        height: 158px;
    }
}

/* Общая выручка: оформление панелей без изменения фона страницы. */
.report-revenue {
    padding: 2rem 0 3.25rem;
}

.report-revenue__container {
    max-width: 1140px;
}

.report-revenue__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.9rem 2rem;
    overflow: hidden;
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(28, 45, 75, 0.07);
}

.report-revenue__hero::after {
    position: absolute;
    top: -7.2rem;
    right: -3.5rem;
    width: 15rem;
    height: 15rem;
    border: 1.75rem solid #edf5ff;
    border-radius: 50%;
    content: "";
}

.report-revenue__eyebrow,
.report-revenue__section-kicker {
    margin: 0 0 0.35rem;
    color: #237de3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.report-revenue__eyebrow i {
    margin-right: 0.35rem;
}

.report-revenue__hero h1 {
    margin: 0;
    color: #172c4d;
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.report-revenue__lead {
    max-width: 43rem;
    margin: 0.65rem 0 0;
    color: #697a91;
    font-size: 0.98rem;
    line-height: 1.55;
}

.report-revenue__hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 4.4rem;
    height: 4.4rem;
    place-items: center;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #0b77f2, #42a5ff);
    box-shadow: 0 12px 24px rgba(13, 116, 235, 0.24);
    color: #ffffff;
    font-size: 1.8rem;
}

.report-revenue__filters {
    margin-bottom: 1.25rem;
    padding: 1.65rem 1.75rem 1.75rem;
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 45, 75, 0.055);
}

.report-revenue__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.report-revenue__section-heading h2 {
    margin: 0;
    color: #233750;
    font-size: 1.25rem;
    font-weight: 750;
}

.report-revenue__hint {
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    background: #f2f7fd;
    color: #6a88aa;
    font-size: 0.76rem;
    line-height: 1.3;
}

.report-revenue__hint i {
    margin-right: 0.25rem;
    color: #287fdf;
}

.report-revenue__label {
    margin-bottom: 0.5rem;
    color: #556a85;
    font-size: 0.82rem;
    font-weight: 750;
}

.report-revenue__label i {
    margin-right: 0.27rem;
    color: #1978e7;
}

.report-revenue__control {
    min-height: 2.85rem;
    border-color: #dce6f1;
    border-radius: 0.7rem;
    background-color: #fbfdff;
    color: #243b59;
    box-shadow: none;
}

.report-revenue__control:focus {
    border-color: #83bbf7;
    box-shadow: 0 0 0 0.22rem rgba(28, 126, 232, 0.12);
}

.report-revenue__generate {
    display: inline-flex;
    width: 100%;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #087bf6, #3c9dfc);
    box-shadow: 0 10px 20px rgba(13, 123, 239, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-revenue__generate:hover,
.report-revenue__generate:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(13, 123, 239, 0.28);
}

.report-revenue__result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.85fr);
    gap: 1.25rem;
}

.report-revenue__summary,
.report-revenue__chart-button {
    min-height: 9.25rem;
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 45, 75, 0.055);
}

.report-revenue__summary {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.55rem;
}

.report-revenue__summary-icon,
.report-revenue__chart-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.95rem;
}

.report-revenue__summary-icon {
    width: 3.55rem;
    height: 3.55rem;
    background: #e9f5ff;
    color: #087bf6;
    font-size: 1.45rem;
}

.report-revenue__summary-content p {
    margin: 0 0 0.35rem;
    color: #7890aa;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-revenue__summary-content h2 {
    margin: 0;
    color: #173457;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.report-revenue__summary-content span {
    display: block;
    margin-top: 0.35rem;
    color: #8191a6;
    font-size: 0.78rem;
}

.report-revenue__chart-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.35rem;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-revenue__chart-button:hover,
.report-revenue__chart-button:focus-visible {
    transform: translateY(-2px);
    border-color: #9ccaf7;
    box-shadow: 0 16px 30px rgba(28, 99, 176, 0.12);
}

.report-revenue__chart-icon {
    width: 2.9rem;
    height: 2.9rem;
    background: #eff9f6;
    color: #18a878;
    font-size: 1.25rem;
}

.report-revenue__chart-button span:not(.report-revenue__chart-icon) {
    min-width: 0;
}

.report-revenue__chart-button strong,
.report-revenue__chart-button small {
    display: block;
}

.report-revenue__chart-button strong {
    color: #27415f;
    font-size: 0.93rem;
}

.report-revenue__chart-button small {
    margin-top: 0.22rem;
    color: #8191a6;
    font-size: 0.75rem;
}

.report-revenue__chart-button > .fa-arrow-right {
    margin-left: auto;
    color: #2f83e8;
    font-size: 0.9rem;
}

.report-revenue__pdf-canvas {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 1000px;
    height: 500px;
}

@media (max-width: 767.98px) {
    .report-revenue {
        padding: 1.1rem 0 2.25rem;
    }

    .report-revenue__hero,
    .report-revenue__filters {
        padding: 1.35rem;
        border-radius: 1rem;
    }

    .report-revenue__hero-icon {
        display: none;
    }

    .report-revenue__section-heading {
        display: block;
    }

    .report-revenue__hint {
        display: inline-block;
        margin-top: 0.75rem;
    }

    .report-revenue__result-grid {
        grid-template-columns: 1fr;
    }
}

/* Популярность абонементов: панели и таблица без изменения фона страницы. */
.report-subscription {
    padding: 2rem 0 3.25rem;
}

.report-subscription__container {
    max-width: 1140px;
}

.report-subscription__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.9rem 2rem;
    overflow: hidden;
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(28, 45, 75, 0.07);
}

.report-subscription__hero::after {
    position: absolute;
    top: -7.6rem;
    right: -3.8rem;
    width: 15.5rem;
    height: 15.5rem;
    border: 1.75rem solid #f1ecff;
    border-radius: 50%;
    content: "";
}

.report-subscription__eyebrow,
.report-subscription__section-kicker {
    margin: 0 0 0.35rem;
    color: #7563d5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.report-subscription__eyebrow i {
    margin-right: 0.35rem;
}

.report-subscription__hero h1 {
    margin: 0;
    color: #2a214b;
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.report-subscription__lead {
    max-width: 43rem;
    margin: 0.65rem 0 0;
    color: #697a91;
    font-size: 0.98rem;
    line-height: 1.55;
}

.report-subscription__hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 4.4rem;
    height: 4.4rem;
    place-items: center;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #715de0, #aa83f4);
    box-shadow: 0 12px 24px rgba(115, 91, 220, 0.24);
    color: #ffffff;
    font-size: 1.8rem;
}

.report-subscription__filters,
.report-subscription__table-card {
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 45, 75, 0.055);
}

.report-subscription__filters {
    margin-bottom: 1.25rem;
    padding: 1.65rem 1.75rem 1.75rem;
}

.report-subscription__section-heading,
.report-subscription__table-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.report-subscription__section-heading {
    margin-bottom: 1.3rem;
}

.report-subscription__section-heading h2,
.report-subscription__table-heading h2 {
    margin: 0;
    color: #34295a;
    font-size: 1.25rem;
    font-weight: 750;
}

.report-subscription__hint {
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    background: #f5f2ff;
    color: #7c6aa8;
    font-size: 0.76rem;
    line-height: 1.3;
}

.report-subscription__hint i {
    margin-right: 0.25rem;
    color: #7660d9;
}

.report-subscription__label {
    margin-bottom: 0.5rem;
    color: #556a85;
    font-size: 0.82rem;
    font-weight: 750;
}

.report-subscription__label i {
    margin-right: 0.27rem;
    color: #7660d9;
}

.report-subscription__control {
    min-height: 2.85rem;
    border-color: #dce6f1;
    border-radius: 0.7rem;
    background-color: #fbfdff;
    color: #243b59;
    box-shadow: none;
}

.report-subscription__control:focus {
    border-color: #ad9bfa;
    box-shadow: 0 0 0 0.22rem rgba(121, 94, 219, 0.12);
}

.report-subscription__generate {
    display: inline-flex;
    width: 100%;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.7rem;
    background: linear-gradient(135deg, #735ddb, #a37bf0);
    box-shadow: 0 10px 20px rgba(111, 88, 211, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.report-subscription__generate:hover:not(:disabled),
.report-subscription__generate:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(111, 88, 211, 0.29);
}

.report-subscription__generate:disabled {
    cursor: wait;
    opacity: 0.72;
}

.report-subscription__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(15rem, 0.9fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.report-subscription__metric,
.report-subscription__chart-button {
    min-height: 9.25rem;
    border: 1px solid #e4ebf4;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 45, 75, 0.055);
}

.report-subscription__metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
}

.report-subscription__metric-icon,
.report-subscription__chart-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.95rem;
}

.report-subscription__metric-icon {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.3rem;
}

.report-subscription__metric-icon--sales {
    background: #f3efff;
    color: #725dde;
}

.report-subscription__metric-icon--revenue {
    background: #edf9f5;
    color: #13a574;
}

.report-subscription__metric p {
    margin: 0 0 0.32rem;
    color: #7890aa;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.075em;
}

.report-subscription__metric strong {
    display: block;
    color: #302653;
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.report-subscription__metric small {
    display: block;
    margin-top: 0.35rem;
    color: #8191a6;
    font-size: 0.75rem;
}

.report-subscription__chart-button {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.2rem;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-subscription__chart-button:hover,
.report-subscription__chart-button:focus-visible {
    transform: translateY(-2px);
    border-color: #c6b7fb;
    box-shadow: 0 16px 30px rgba(91, 72, 165, 0.12);
}

.report-subscription__chart-icon {
    width: 2.9rem;
    height: 2.9rem;
    background: #f3efff;
    color: #725dde;
    font-size: 1.2rem;
}

.report-subscription__chart-button span:not(.report-subscription__chart-icon) {
    min-width: 0;
}

.report-subscription__chart-button strong,
.report-subscription__chart-button small {
    display: block;
}

.report-subscription__chart-button strong {
    color: #3e315f;
    font-size: 0.9rem;
}

.report-subscription__chart-button small {
    margin-top: 0.22rem;
    color: #8191a6;
    font-size: 0.74rem;
}

.report-subscription__chart-button > .fa-arrow-right {
    margin-left: auto;
    color: #765fda;
    font-size: 0.9rem;
}

.report-subscription__table-card {
    overflow: hidden;
}

.report-subscription__table-heading {
    padding: 1.55rem 1.75rem 1.15rem;
}

.report-subscription__table-heading > span {
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    background: #f8fafc;
    color: #7f8fa4;
    font-size: 0.75rem;
}

.report-subscription__table-heading > span i {
    margin-right: 0.25rem;
    color: #7563d5;
}

.report-subscription__table-wrap {
    padding: 0 1.1rem 1.15rem;
}

.report-subscription__table {
    margin: 0;
    overflow: hidden;
    border: 1px solid #e8edf4;
    border-radius: 0.85rem;
    color: #38506d;
}

.report-subscription__table thead th {
    padding: 0.9rem 1rem;
    border: 0;
    background: #f7f5ff;
    color: #6c5aaa;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-subscription__table thead th:nth-child(2),
.report-subscription__table thead th:nth-child(3),
.report-subscription__table tbody td:nth-child(2),
.report-subscription__table tbody td:nth-child(3) {
    text-align: right;
}

.report-subscription__table tbody td {
    padding: 0.95rem 1rem;
    border-color: #edf1f6;
    background: #ffffff;
    font-size: 0.9rem;
    vertical-align: middle;
}

.report-subscription__table tbody td:first-child {
    color: #2f4160;
    font-weight: 700;
}

.report-subscription__table tbody td:nth-child(3) {
    color: #15926a;
    font-weight: 750;
}

.report-subscription__empty {
    padding: 2.5rem 1rem !important;
    color: #8492a7 !important;
    font-weight: 500 !important;
    text-align: center !important;
}

.report-subscription__pdf-canvas {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 1000px;
    height: 500px;
}

@media (max-width: 991.98px) {
    .report-subscription__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-subscription__chart-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .report-subscription {
        padding: 1.1rem 0 2.25rem;
    }

    .report-subscription__hero,
    .report-subscription__filters,
    .report-subscription__table-heading {
        padding: 1.35rem;
    }

    .report-subscription__hero,
    .report-subscription__filters,
    .report-subscription__table-card,
    .report-subscription__metric,
    .report-subscription__chart-button {
        border-radius: 1rem;
    }

    .report-subscription__hero-icon {
        display: none;
    }

    .report-subscription__section-heading,
    .report-subscription__table-heading {
        display: block;
    }

    .report-subscription__hint,
    .report-subscription__table-heading > span {
        display: inline-block;
        margin-top: 0.75rem;
    }

    .report-subscription__metrics {
        grid-template-columns: 1fr;
    }

    .report-subscription__chart-button {
        grid-column: auto;
    }

    .report-subscription__table-wrap {
        padding: 0 0.75rem 0.75rem;
    }
}

/* На рабочем столе отчёт помещается в окно; прокрутка остаётся только внутри таблицы. */
@media (min-width: 1200px) and (min-height: 650px) {
    body.report-subscription-page {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.report-subscription-page > header {
        flex: 0 0 auto;
    }

    body.report-subscription-page .report-subscription {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.6rem 0 0.25rem;
    }

    body.report-subscription-page .report-subscription__container {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
    }

    body.report-subscription-page .footer {
        position: relative;
        flex: 0 0 32px;
        height: 32px;
        min-height: 32px;
    }

    .report-subscription__hero {
        min-height: 4.85rem;
        margin-bottom: 0.55rem;
        padding: 0.75rem 1.2rem;
        border-radius: 1rem;
    }

    .report-subscription__hero::after,
    .report-subscription__lead {
        display: none;
    }

    .report-subscription__eyebrow {
        display: none;
    }

    .report-subscription__hero h1 {
        font-size: 1.7rem;
    }

    .report-subscription__hero-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.85rem;
        font-size: 1.25rem;
    }

    .report-subscription__filters {
        margin-bottom: 0.55rem;
        padding: 0.75rem 1.15rem 0.9rem;
        border-radius: 1rem;
    }

    .report-subscription__section-heading {
        align-items: center;
        margin-bottom: 0.6rem;
    }

    .report-subscription__section-kicker {
        display: none;
    }

    .report-subscription__section-heading h2 {
        font-size: 1rem;
    }

    .report-subscription__hint {
        padding: 0.3rem 0.5rem;
        font-size: 0.68rem;
    }

    .report-subscription__label {
        margin-bottom: 0.28rem;
        font-size: 0.7rem;
    }

    .report-subscription__control,
    .report-subscription__generate {
        min-height: 2.35rem;
        font-size: 0.82rem;
    }

    .report-subscription__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .report-subscription__metric,
    .report-subscription__chart-button {
        min-height: 5.25rem;
        border-radius: 0.9rem;
        box-shadow: 0 7px 16px rgba(28, 45, 75, 0.045);
    }

    .report-subscription__metric {
        gap: 0.65rem;
        padding: 0.7rem 0.85rem;
    }

    .report-subscription__metric-icon,
    .report-subscription__chart-icon {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.7rem;
        font-size: 0.95rem;
    }

    .report-subscription__metric p {
        margin-bottom: 0.15rem;
        font-size: 0.58rem;
    }

    .report-subscription__metric strong {
        font-size: 1.25rem;
    }

    .report-subscription__metric small,
    .report-subscription__chart-button small {
        margin-top: 0.12rem;
        font-size: 0.65rem;
    }

    .report-subscription__chart-button {
        gap: 0.6rem;
        padding: 0.7rem 0.85rem;
    }

    .report-subscription__chart-button strong {
        font-size: 0.75rem;
    }

    .report-subscription__table-card {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        border-radius: 1rem;
    }

    .report-subscription__table-heading {
        flex: 0 0 auto;
        align-items: center;
        padding: 0.75rem 1.15rem 0.55rem;
    }

    .report-subscription__table-heading h2 {
        font-size: 0.98rem;
    }

    .report-subscription__table-heading > span {
        padding: 0.28rem 0.45rem;
        font-size: 0.65rem;
    }

    .report-subscription__table-wrap {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 0.8rem 0.7rem;
        overflow: auto;
    }

    .report-subscription__table thead th,
    .report-subscription__table tbody td {
        padding: 0.55rem 0.8rem;
        font-size: 0.75rem;
    }

    .report-subscription__empty {
        padding: 1.25rem 0.8rem !important;
    }
}

/* Отчёт: топ клиентов */
.report-top-clients {
    padding: 1.5rem 0 2rem;
}

.report-top-clients__container {
    max-width: 1180px;
}

.report-top-clients__hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(115, 74, 190, 0.15);
    border-radius: 1.25rem;
    background: linear-gradient(118deg, #ffffff 0%, #f7f3ff 100%);
    box-shadow: 0 14px 35px rgba(66, 45, 111, 0.08);
}

.report-top-clients__hero::after {
    position: absolute;
    top: -4rem;
    right: 4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(116, 77, 191, 0.08);
    content: "";
}

.report-top-clients__eyebrow {
    margin: 0 0 0.35rem;
    color: #7450bb;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-top-clients__hero h1 {
    margin: 0;
    color: #2d2644;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
}

.report-top-clients__hero p:not(.report-top-clients__eyebrow) {
    max-width: 40rem;
    margin: 0.45rem 0 0;
    color: #706985;
    font-size: 0.95rem;
}

.report-top-clients__hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 4.6rem;
    height: 4.6rem;
    place-items: center;
    border-radius: 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, #7652bf, #a06ccb);
    box-shadow: 0 13px 24px rgba(113, 74, 184, 0.28);
    font-size: 2rem;
}

.report-top-clients__filters {
    margin-top: 1rem;
    padding: 1.2rem 1.35rem 1.35rem;
    border: 1px solid #e9e6f0;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(50, 37, 76, 0.06);
}

.report-top-clients__filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-top-clients__filter-title > span {
    color: #3e3558;
    font-size: 0.95rem;
    font-weight: 750;
}

.report-top-clients__filter-title > span i {
    margin-right: 0.38rem;
    color: #7655bd;
}

.report-top-clients__filter-title small {
    color: #837b93;
    font-size: 0.78rem;
}

.report-top-clients__filter-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 1.55fr) minmax(8.6rem, 0.95fr) minmax(8.6rem, 0.95fr) minmax(7.5rem, 0.72fr) minmax(10.5rem, 0.95fr);
    gap: 0.8rem;
    align-items: end;
}

.report-top-clients__field {
    display: block;
    min-width: 0;
}

.report-top-clients__field > span {
    display: block;
    margin-bottom: 0.4rem;
    color: #655d75;
    font-size: 0.76rem;
    font-weight: 700;
}

.report-top-clients__field .form-select,
.report-top-clients__field .form-control {
    min-height: 2.7rem;
    border-color: #e4e0ec;
    border-radius: 0.7rem;
    color: #3d3552;
    box-shadow: none;
    font-size: 0.88rem;
}

.report-top-clients__field .form-select:focus,
.report-top-clients__field .form-control:focus {
    border-color: #8a68c6;
    box-shadow: 0 0 0 0.2rem rgba(125, 87, 192, 0.14);
}

.report-top-clients__generate {
    display: inline-flex;
    min-height: 2.7rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.7rem;
    color: #ffffff;
    background: linear-gradient(135deg, #7050b7, #9267c9);
    box-shadow: 0 9px 18px rgba(105, 73, 177, 0.2);
    font-size: 0.87rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.report-top-clients__generate:hover,
.report-top-clients__generate:focus {
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(105, 73, 177, 0.28);
    transform: translateY(-1px);
}

.report-top-clients__generate.is-loading {
    cursor: wait;
    opacity: 0.72;
}

.report-top-clients__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.report-top-clients__metric,
.report-top-clients__charts {
    display: flex;
    min-width: 0;
    min-height: 6.8rem;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid #e9e6f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 9px 22px rgba(50, 37, 76, 0.055);
}

.report-top-clients__metric-icon,
.report-top-clients__charts-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border-radius: 0.75rem;
    font-size: 1.05rem;
}

.report-top-clients__metric-icon--revenue {
    color: #16816c;
    background: #e4f7f1;
}

.report-top-clients__metric-icon--purchases {
    color: #8053bf;
    background: #f2ebff;
}

.report-top-clients__metric-icon--leader {
    color: #b87915;
    background: #fff4dc;
}

.report-top-clients__metric > div {
    min-width: 0;
    flex: 1 1 auto;
}

.report-top-clients__metric-label,
.report-top-clients__charts small {
    display: block;
    margin-bottom: 0.18rem;
    color: #81798e;
    font-size: 0.72rem;
    line-height: 1.25;
}

.report-top-clients__metric strong {
    display: block;
    overflow: hidden;
    color: #373049;
    font-size: 1rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-top-clients__charts {
    width: 100%;
    border-color: #e4dafa;
    color: #ffffff;
    text-align: left;
    background: linear-gradient(135deg, #69499f, #8a63bd);
    box-shadow: 0 10px 22px rgba(91, 60, 147, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-top-clients__charts:hover,
.report-top-clients__charts:focus {
    box-shadow: 0 13px 25px rgba(91, 60, 147, 0.28);
    transform: translateY(-1px);
}

.report-top-clients__charts-icon {
    color: #7553ae;
    background: rgba(255, 255, 255, 0.92);
}

.report-top-clients__charts small {
    color: rgba(255, 255, 255, 0.75);
}

.report-top-clients__charts strong {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 750;
    white-space: nowrap;
}

.report-top-clients__charts strong i {
    margin-left: 0.2rem;
}

.report-top-clients__table-card {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid #e9e6f0;
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(50, 37, 76, 0.06);
}

.report-top-clients__table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem 0.8rem;
}

.report-top-clients__table-eyebrow {
    display: block;
    margin-bottom: 0.16rem;
    color: #8062b4;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.report-top-clients__table-heading h2 {
    margin: 0;
    color: #3a314d;
    font-size: 1.05rem;
    font-weight: 800;
}

.report-top-clients__table-count {
    flex: 0 0 auto;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: #7654ae;
    background: #f3edff;
    font-size: 0.72rem;
    font-weight: 700;
}

.report-top-clients__table-wrap {
    overflow: auto;
    padding: 0 1rem 1rem;
}

.report-top-clients__table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
    color: #544b65;
    font-size: 0.84rem;
}

.report-top-clients__table thead th {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #e8e4ef;
    color: #746b84;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-top-clients__table tbody td {
    padding: 0.85rem;
    border-bottom: 1px solid #f0edf4;
    vertical-align: middle;
}

.report-top-clients__table tbody tr:last-child td {
    border-bottom: 0;
}

.report-top-clients__table tbody tr {
    transition: background-color 0.18s ease;
}

.report-top-clients__table tbody tr:hover {
    background: #fbf9ff;
}

.report-top-clients__table tbody td:first-child {
    color: #3e3551;
    font-weight: 750;
}

.report-top-clients__number {
    text-align: right;
}

.report-top-clients__empty {
    padding: 2rem 1rem !important;
    color: #837b90;
    text-align: center;
}

.report-top-clients__pdf-canvas {
    position: absolute;
    top: 0;
    left: -9999px;
    width: 800px;
    height: 600px;
}

@media (max-width: 991.98px) {
    .report-top-clients__filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-top-clients__field--gym {
        grid-column: span 2;
    }

    .report-top-clients__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .report-top-clients {
        padding: 0.8rem 0 1.5rem;
    }

    .report-top-clients__hero {
        align-items: flex-start;
        padding: 1.15rem;
    }

    .report-top-clients__hero p:not(.report-top-clients__eyebrow) {
        font-size: 0.86rem;
    }

    .report-top-clients__hero-icon {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 0.9rem;
        font-size: 1.45rem;
    }

    .report-top-clients__filters {
        padding: 1rem;
    }

    .report-top-clients__filter-title {
        display: block;
    }

    .report-top-clients__filter-title small {
        display: block;
        margin-top: 0.3rem;
    }

    .report-top-clients__filter-grid,
    .report-top-clients__metrics {
        grid-template-columns: 1fr;
    }

    .report-top-clients__field--gym {
        grid-column: auto;
    }

    .report-top-clients__metric,
    .report-top-clients__charts {
        min-height: 5.8rem;
    }

    .report-top-clients__table-heading {
        align-items: flex-start;
        padding: 1rem 1rem 0.75rem;
    }
}

@media (min-width: 1200px) and (min-height: 650px) {
    body.report-top-clients-page {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.report-top-clients-page > header {
        flex: 0 0 auto;
    }

    body.report-top-clients-page .report-top-clients {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        padding: 0.8rem 0 0.65rem;
    }

    body.report-top-clients-page .report-top-clients__container {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
    }

    body.report-top-clients-page .report-top-clients__hero {
        flex: 0 0 auto;
        padding: 0.8rem 1.35rem;
    }

    body.report-top-clients-page .report-top-clients__eyebrow,
    body.report-top-clients-page .report-top-clients__hero p:not(.report-top-clients__eyebrow) {
        display: none;
    }

    body.report-top-clients-page .report-top-clients__hero h1 {
        font-size: 1.4rem;
    }

    body.report-top-clients-page .report-top-clients__hero-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.85rem;
        font-size: 1.4rem;
    }

    body.report-top-clients-page .report-top-clients__filters {
        flex: 0 0 auto;
        margin-top: 0.65rem;
        padding: 0.75rem 1.05rem 0.9rem;
    }

    body.report-top-clients-page .report-top-clients__filter-title {
        margin-bottom: 0.55rem;
    }

    body.report-top-clients-page .report-top-clients__metrics {
        flex: 0 0 auto;
        margin-top: 0.65rem;
    }

    body.report-top-clients-page .report-top-clients__metric,
    body.report-top-clients-page .report-top-clients__charts {
        min-height: 5.25rem;
        padding: 0.7rem 0.85rem;
    }

    body.report-top-clients-page .report-top-clients__table-card {
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        margin-top: 0.65rem;
    }

    body.report-top-clients-page .report-top-clients__table-heading {
        flex: 0 0 auto;
        padding: 0.65rem 1.1rem 0.45rem;
    }

    body.report-top-clients-page .report-top-clients__table-eyebrow {
        display: none;
    }

    body.report-top-clients-page .report-top-clients__table-heading h2 {
        font-size: 0.95rem;
    }

    body.report-top-clients-page .report-top-clients__table-wrap {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 0.8rem 0.7rem;
        overflow: auto;
    }

    body.report-top-clients-page .report-top-clients__table thead th,
    body.report-top-clients-page .report-top-clients__table tbody td {
        padding: 0.55rem 0.8rem;
        font-size: 0.75rem;
    }

    body.report-top-clients-page .report-top-clients__empty {
        padding: 1.25rem 0.8rem !important;
    }

    body.report-top-clients-page .footer {
        position: relative;
        flex: 0 0 32px;
        height: 32px;
        min-height: 32px;
    }
}

/* ========================================================================
   МОИ АБОНЕМЕНТЫ
   ======================================================================== */
.user-subscriptions-page {
    --subscription-ink: #172033;
    --subscription-muted: #68738a;
    --subscription-line: #e5e9f1;
    --subscription-panel: #f7f9fc;
    --subscription-primary: #4f46e5;
    --subscription-primary-dark: #312e81;
    --subscription-accent: #f8b84e;
}

.user-subscriptions-page .user-subscriptions-panel {
    overflow: hidden;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.09);
}

.user-subscriptions-page .user-subscriptions-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(248, 184, 78, 0.36), transparent 29%),
        radial-gradient(circle at 2% 100%, rgba(99, 102, 241, 0.42), transparent 32%),
        linear-gradient(120deg, #141b35 0%, #29235d 100%);
}

.user-subscriptions-page .user-subscriptions-hero__title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-subscriptions-page .user-subscriptions-hero__icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    color: #fff7d6;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.45rem;
}

.user-subscriptions-page .user-subscriptions-hero p,
.user-subscriptions-page .user-subscriptions-hero h1 {
    margin: 0;
}

.user-subscriptions-page .user-subscriptions-hero__eyebrow {
    margin-bottom: 4px !important;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.user-subscriptions-page .user-subscriptions-hero h1 {
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.user-subscriptions-page .user-subscriptions-hero__subtitle {
    margin-top: 6px !important;
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.94rem;
}

.user-subscriptions-page .user-subscriptions-archive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.user-subscriptions-page .user-subscriptions-archive-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-subscriptions-page .subscriptions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 18px;
    max-height: calc(100dvh - 505px);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 28px 30px;
    scrollbar-color: #b9c1d2 transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.user-subscriptions-page .subscriptions-container::-webkit-scrollbar {
    width: 8px;
}

.user-subscriptions-page .subscriptions-container::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    background-color: #b9c1d2;
}

.user-subscriptions-page .subscriptions-container::-webkit-scrollbar-thumb:hover {
    background-color: #8d98af;
}

.user-subscriptions-page .subscription-card {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--subscription-line);
    border-radius: 18px;
    color: var(--subscription-ink);
    background: #fff;
    box-shadow: 0 5px 16px rgba(34, 48, 77, 0.06);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.user-subscriptions-page .subscription-card:hover {
    border-color: rgba(79, 70, 229, 0.34);
    box-shadow: 0 16px 28px rgba(34, 48, 77, 0.12);
    transform: translateY(-3px);
}

.user-subscriptions-page .subscription-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--subscription-line);
    background: linear-gradient(135deg, #fbfcff 0%, #f4f4ff 100%);
}

.user-subscriptions-page .subscription-card__gym {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.user-subscriptions-page .subscription-card__gym > div {
    min-width: 0;
}

.user-subscriptions-page .user-subscription-gym-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 3px solid #fff;
    border-radius: 15px;
    box-shadow: 0 5px 12px rgba(39, 44, 91, 0.16);
    outline: none;
}

.user-subscriptions-page .user-subscription-gym-logo:hover {
    box-shadow: 0 7px 16px rgba(79, 70, 229, 0.27);
}

.user-subscriptions-page .user-subscription-gym-logo:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.48);
    outline-offset: 3px;
}

.user-subscriptions-page .subscription-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: #15803d;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.user-subscriptions-page .subscription-card__status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.13);
    content: "";
}

.user-subscriptions-page .user-subscription-gym-name {
    margin: 0;
    overflow: hidden;
    color: var(--subscription-ink);
    background: transparent;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.user-subscriptions-page .subscription-card__activity {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--subscription-muted);
    font-size: .81rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-subscriptions-page .subscription-card__sessions {
    display: grid;
    width: 84px;
    min-height: 84px;
    flex: 0 0 84px;
    align-content: center;
    justify-items: center;
    border: 1px solid #dedcff;
    border-radius: 15px;
    color: var(--subscription-primary-dark);
    background: #fff;
    line-height: 1.05;
}

.user-subscriptions-page .subscription-card__sessions span,
.user-subscriptions-page .subscription-card__sessions small {
    color: var(--subscription-muted);
    font-size: .64rem;
    font-weight: 700;
}

.user-subscriptions-page .subscription-card__sessions strong {
    margin: 3px 0;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.user-subscriptions-page .subscription-card__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 0;
    border-bottom: 1px solid var(--subscription-line);
    background: var(--subscription-line);
}

.user-subscriptions-page .subscription-card__detail {
    min-width: 0;
    padding: 14px 18px;
    background: #fff;
}

.user-subscriptions-page .subscription-card__detail--wide {
    grid-column: 1 / -1;
}

.user-subscriptions-page .subscription-card__detail dt {
    margin-bottom: 5px;
    color: var(--subscription-muted);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .015em;
}

.user-subscriptions-page .subscription-card__detail dt i {
    width: 15px;
    margin-right: 3px;
    color: var(--subscription-primary);
    text-align: center;
}

.user-subscriptions-page .subscription-card__detail dd {
    margin: 0;
    overflow: hidden;
    color: var(--subscription-ink);
    font-size: .87rem;
    font-weight: 700;
    line-height: 1.32;
    text-overflow: ellipsis;
}

.user-subscriptions-page .subscription-card__footer {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 13px 16px 13px 18px;
}

.user-subscriptions-page .subscription-card__receipt {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: var(--subscription-muted);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.user-subscriptions-page .subscription-card__receipt:hover {
    color: var(--subscription-primary);
}

.user-subscriptions-page .subscription-card__receipt .fa-receipt {
    margin: 0;
    color: var(--subscription-primary);
    font-size: 1rem;
}

.user-subscriptions-page .subscription-card__actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.user-subscriptions-page .subscription-card__action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: .4rem .62rem;
    border: 1px solid #d8ddea;
    border-radius: 9px;
    color: #43506a;
    background: #fff;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.user-subscriptions-page .subscription-card__action.qr-icon,
.user-subscriptions-page .subscription-card__action.enter-icon {
    margin: 0;
    color: #43506a;
    font-size: .76rem;
}

.user-subscriptions-page .subscription-card__action:hover {
    border-color: #a8b0c3;
    color: var(--subscription-primary);
    background: #f7f7ff;
    transform: translateY(-1px);
}

.user-subscriptions-page .subscription-card__action--primary,
.user-subscriptions-page .subscription-card__action--primary.enter-icon {
    border-color: var(--subscription-primary);
    color: #fff;
    background: var(--subscription-primary);
}

.user-subscriptions-page .subscription-card__action--primary:hover,
.user-subscriptions-page .subscription-card__action--primary.enter-icon:hover {
    border-color: var(--subscription-primary-dark);
    color: #fff;
    background: var(--subscription-primary-dark);
}

.user-subscriptions-page .subscription-card__action:focus-visible,
.user-subscriptions-page .user-subscriptions-archive-btn:focus-visible,
.user-subscriptions-page .user-subscriptions-empty__action:focus-visible {
    outline: 3px solid rgba(248, 184, 78, .72);
    outline-offset: 3px;
}

.user-subscriptions-page .user-subscriptions-empty {
    display: flex;
    max-width: 510px;
    min-height: 340px;
    margin: 0 auto;
    padding: 54px 28px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--subscription-muted);
    text-align: center;
}

.user-subscriptions-page .user-subscriptions-empty__icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 22px;
    color: var(--subscription-primary);
    background: #eeefff;
    font-size: 2rem;
}

.user-subscriptions-page .user-subscriptions-empty h2 {
    margin: 0;
    color: var(--subscription-ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.user-subscriptions-page .user-subscriptions-empty p {
    max-width: 370px;
    margin: 9px 0 20px;
    line-height: 1.55;
}

.user-subscriptions-page .user-subscriptions-empty__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .66rem 1rem;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .user-subscriptions-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .user-subscriptions-page .user-subscriptions-panel {
        border-radius: 18px;
    }

    .user-subscriptions-page .user-subscriptions-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 23px 20px;
    }

    .user-subscriptions-page .user-subscriptions-hero__title {
        align-items: flex-start;
    }

    .user-subscriptions-page .user-subscriptions-hero__icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        border-radius: 13px;
        font-size: 1.2rem;
    }

    .user-subscriptions-page .user-subscriptions-hero__subtitle {
        font-size: .86rem;
    }

    .user-subscriptions-page .user-subscriptions-archive-btn {
        width: 100%;
    }

    .user-subscriptions-page .subscriptions-container {
        grid-template-columns: 1fr;
        gap: 14px;
        max-height: calc(100dvh - 320px);
        padding: 16px;
    }

    .user-subscriptions-page .subscription-card__header {
        padding: 17px 16px;
    }

    .user-subscriptions-page .subscription-card__sessions {
        width: 72px;
        min-height: 72px;
        flex-basis: 72px;
    }

    .user-subscriptions-page .subscription-card__sessions strong {
        font-size: 1.5rem;
    }

    .user-subscriptions-page .subscription-card__detail {
        padding: 13px 14px;
    }

    .user-subscriptions-page .subscription-card__footer {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .user-subscriptions-page .subscription-card__receipt {
        min-height: 30px;
    }

    .user-subscriptions-page .subscription-card__actions {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
    }

    .user-subscriptions-page .subscription-card__action {
        width: 100%;
        min-height: 40px;
    }

    .user-subscriptions-page .user-subscriptions-empty {
        min-height: 290px;
        padding: 42px 20px;
    }
}

@media (max-width: 390px) {
    .user-subscriptions-page .subscription-card__header {
        gap: 10px;
    }

    .user-subscriptions-page .user-subscription-gym-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .user-subscriptions-page .subscription-card__sessions {
        width: 64px;
        min-height: 64px;
        flex-basis: 64px;
    }

    .user-subscriptions-page .subscription-card__actions {
        grid-template-columns: 1fr;
    }
}
