/* ============================================
   CUMAN CABINET (Личный кабинет)
   ============================================ */

/* --- УТИЛИТЫ --- */
.text-success { color: #7CB342; }
.text-danger { color: #E57373; }

/* ============================================
   1. АВТОРИЗАЦИЯ И ОЖИДАНИЕ
   ============================================ */
.cabinet-auth { background: #E8E8E8; min-height: 80vh; padding: 140px 0 80px; display: flex; align-items: flex-start; justify-content: center; }
.cabinet-auth .container { max-width: 480px; width: 100%; }
.cabinet-auth__tabs { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.cabinet-auth__tab { font-size: 28px; font-weight: 300; color: #888; text-decoration: none; padding-bottom: 8px; border-bottom: 2px solid transparent; transition: all 0.2s ease; }
.cabinet-auth__tab:hover { color: #333; }
.cabinet-auth__tab.is-active { color: #222; border-bottom-color: #7CB342; }
.cabinet-auth__form { display: flex; flex-direction: column; gap: 16px; }
.cabinet-form__field input { width: 100%; padding: 16px 20px; background: #FFF; border: 1px solid #DDD; border-radius: 8px; font-size: 15px; color: #222; font-family: inherit; }
.cabinet-form__field input:focus { outline: 2px solid #7CB342; border-color: transparent; }

.cabinet-pending { background: #E8E8E8; min-height: 80vh; padding: 140px 0 80px; color: #333; text-align: center; }
.cabinet-pending h1 { font-size: 42px; font-weight: 300; margin-bottom: 24px; }
.cabinet-pending p { font-size: 16px; color: #666; max-width: 500px; margin: 0 auto 40px; line-height: 1.6; }

/* --- КНОПКИ --- */
.cabinet-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: all 0.2s ease; letter-spacing: 0.3px; white-space: nowrap; }
.cabinet-btn--primary { background: #7CB342; color: #FFF; }
.cabinet-btn--primary:hover { background: #5A8F2E; color: #FFF; }
.cabinet-btn--outline { background: transparent; color: #7CB342; border: 1.5px solid #7CB342; }
.cabinet-btn--outline:hover { background: #7CB342; color: #FFF; }
.cabinet-btn--link { background: transparent; color: #888; padding: 8px 12px; font-size: 14px; }
.cabinet-btn--link:hover { color: #333; }

/* ============================================
   2. ДАШБОРД И ПРОФИЛЬ
   ============================================ */
.cabinet-dashboard { background: #E8E8E8; padding: 180px 0 100px; }
.cabinet-dashboard__inner { width: 100%; margin: 0 auto; padding: 0 24px; }

/* --- Верхняя панель (Хлебные крошки + Кнопка инфо) --- */
.cabinet-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Ссылка "Назад" */
.cabinet-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #757575;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.cabinet-back-link svg { transition: transform 0.2s ease; }
.cabinet-back-link:hover { color: #222; }
.cabinet-back-link:hover svg { transform: translateX(-4px); }

/* Кнопка "О странице" */
.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    color: #333;
    border-radius: 12px;
    padding: 8px 18px 8px 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.info-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #F1F8E9;
    color: #7CB342;
    border-radius: 50%;
    transition: all 0.25s ease;
}
.info-btn:hover {
    border-color: #7CB342;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 179, 66, 0.15);
}
.info-btn:hover .info-btn__icon {
    background: #7CB342;
    color: #FFFFFF;
}
.info-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.1);
}

/* Карточка профиля */
.profile-card { background: #FFFFFF; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); overflow: hidden; margin: 0 auto; }
.profile-card__header { display: flex; align-items: center; gap: 32px; padding: 40px; border-bottom: 1px solid #F0F0F0; background: #FAFAFA; }
.profile-card__avatar { width: 100px; height: 100px; flex-shrink: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; }
.profile-card__avatar svg { width: 100%; height: 100%; }
.profile-card__title-wrap { display: flex; flex-direction: column; gap: 8px; }
.profile-card__name { font-size: 28px; font-weight: 500; color: #222; margin: 0; line-height: 1.2; }
.profile-card__subtitle { font-size: 16px; color: #888; margin: 0; }
.profile-card__body { padding: 40px; }
.profile-card__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
.profile-card__item { display: flex; flex-direction: column; gap: 6px; }
.profile-card__item--full { grid-column: 1 / -1; }
.profile-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
.profile-card__value { font-size: 16px; color: #333; font-weight: 400; }
.profile-card__footer { padding: 24px 40px; background: #FAFAFA; border-top: 1px solid #F0F0F0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-card__logout-form { margin: 0; margin-left: auto; }

/* Навигационная сетка */
.cabinet-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.cabinet-nav-card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E5E5E5; border-radius: 12px; padding: 20px; text-decoration: none; transition: all 0.25s ease; }
.cabinet-nav-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05); border-color: #7EB02E; }
.cabinet-nav-card__icon { margin-bottom: 12px; display: flex; align-items: center; justify-content: flex-start; }
.cabinet-nav-card:hover .cabinet-nav-card__icon svg { stroke: #7EB02E; }
.cabinet-nav-card__title { font-size: 18px; font-weight: 600; color: #1A1A1A; margin: 0 0 4px 0; line-height: 1.3; }
.cabinet-nav-card__desc { font-size: 14px; color: #777777; margin: 0; line-height: 1.4; }

/* ============================================
   3. СТРАНИЦА БАЛЛОВ (Статистика и прогресс)
   ============================================ */
.cabinet-points__title { font-size: 22px; font-weight: 600; color: #222; margin: 48px 0 20px; }

/* Сетка 3-х карточек */
.points-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.points-stat-card { background: #F9FAFB; border: 1px solid #EAEAEA; border-radius: 16px; padding: 28px 20px; text-align: center; transition: all 0.25s ease; }
.points-stat-card:hover { border-color: #7CB342; box-shadow: 0 8px 24px rgba(124, 179, 66, 0.08); transform: translateY(-2px); }
.points-stat-value { font-size: 38px; font-weight: 700; color: #1A1A1A; line-height: 1.1; margin-bottom: 8px; letter-spacing: -1px; }
.points-stat-label { font-size: 15px; color: #777777; font-weight: 500; }

/* Блок Заработано / Списано */
.points-summary-block { display: flex; align-items: center; justify-content: center; gap: 32px; background: #FAFAFA; padding: 16px 24px; border-radius: 12px; border: 1px solid #F0F0F0; }
.points-summary-item { display: flex; align-items: center; gap: 8px; }
.points-summary-label { font-size: 15px; color: #666; }
.points-summary-val { font-size: 16px; font-weight: 600; }
.points-summary-divider { width: 1px; height: 24px; background: #DDD; }

/* Прогресс уровней */
.points-progress-section { margin: 40px auto; }
.points-progress-card { background: #FFF; border-radius: 20px; padding: 32px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.points-progress-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.points-progress-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 4px; }
.points-progress-level { font-size: 28px; font-weight: 700; color: #7CB342; }
.points-progress-header-right { text-align: right; }
.points-progress-next { font-size: 18px; font-weight: 600; color: #555; }
.points-progress-bar-wrap { height: 12px; background: #E8F5E0; border-radius: 6px; overflow: hidden; margin-bottom: 12px; position: relative; }
.points-progress-bar { height: 100%; background: #7CB342; border-radius: 6px; transition: width 0.5s ease; box-shadow: 0 0 10px rgba(124, 179, 66, 0.5); }
.points-progress-footer { display: flex; justify-content: space-between; font-size: 13px; color: #666; margin-bottom: 32px; }

.points-levels-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid #EEE; padding-top: 24px; }
.level-mark { display: flex; flex-direction: column; gap: 4px; opacity: 0.5; transition: opacity 0.3s ease; }
.level-mark.is-active { opacity: 1; }
.level-mark__name { font-size: 14px; font-weight: 700; color: #222; }
.level-mark.is-active .level-mark__name { color: #7CB342; }
.level-mark__range { font-size: 12px; color: #888; }

/* История баллов */
.points-history { display: flex; flex-direction: column; gap: 0; background: #FFF; border-radius: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); overflow: hidden; }
.points-history__item { display: flex; justify-content: space-between; align-items: center; padding: 24px 32px; border-bottom: 1px solid #F0F0F0; }
.points-history__item:last-child { border-bottom: none; }
.points-history__info { display: flex; flex-direction: column; gap: 4px; }
.points-history__reason { font-size: 16px; font-weight: 500; color: #222; }
.points-history__desc { font-size: 14px; color: #666; }
.points-history__date { font-size: 12px; color: #999; margin-top: 4px; }
.points-history__amount { font-size: 18px; font-weight: 700; }
.points-history__amount.is-positive { color: #7CB342; }
.points-history__amount.is-negative { color: #E57373; }
.points-empty { padding: 60px 20px; text-align: center; background: #FFF; border-radius: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.points-empty__icon { font-size: 48px; margin-bottom: 16px; }
.points-empty__text { font-size: 18px; font-weight: 500; color: #333; margin: 0 0 8px; }
.points-empty__subtext { font-size: 14px; color: #888; margin: 0; }

/* ============================================
   4. РЕЙТИНГ (LEADERBOARD)
   ============================================ */

.rating-header { margin-bottom: 24px; }
.rating-title { font-size: 28px; font-weight: 700; color: #1A1A1A; margin: 0 0 8px 0; }
.rating-subtitle { font-size: 15px; color: #777; margin: 0; }

/* Фильтры */
.rating-filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.rating-filter-btn { padding: 8px 20px; border-radius: 20px; border: 1px solid transparent; background: #F0F0F0; color: #555; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.rating-filter-btn.is-active { background: #E8F5E9; color: #4A7A28; border-color: #C5E1A5; }
.rating-filter-btn:hover:not(.is-active) { background: #E0E0E0; }

/* Пьедестал (Топ-3) - Аккуратные акценты */
.rating-podium { display: flex; justify-content: center; align-items: stretch; gap: 16px; margin-bottom: 40px; }
.podium-card { flex: 1; border-radius: 16px; padding: 24px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid transparent; transition: transform 0.3s ease; }
.podium-card:hover { transform: translateY(-4px); }

.podium-card--silver { background: #F8F9FA; border-color: #E0E0E0; order: 1; }
.podium-card--gold { background: #FFFDF5; border-color: #FBC02D; order: 2; transform: scale(1.05); box-shadow: 0 8px 24px rgba(251, 192, 45, 0.12); z-index: 2; }
.podium-card--gold:hover { transform: scale(1.05) translateY(-4px); }
.podium-card--bronze { background: #FAFAFA; border-color: #FFAB91; order: 3; }

.podium-icon { font-size: 28px; margin-bottom: 12px; }
.podium-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 12px; line-height: 1.2; word-break: break-word; }
.podium-points { font-size: 22px; font-weight: 700; color: #1A1A1A; }
.podium-points span { font-size: 12px; font-weight: 500; color: #888; display: block; margin-top: 4px; }

/* Моя позиция - Сделаем чуть аккуратнее */
.my-position-card { background: #FFFFFF; border: 1px solid #EAEAEA; border-radius: 16px; padding: 24px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.my-position-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.my-position-title { font-size: 16px; font-weight: 600; color: #1A1A1A; }
.my-position-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.trend-up { background: #E8F5E9; color: #4A7A28; }
.trend-down { background: #FDECEA; color: #C62828; }

.my-position-main { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.my-position-rank { display: flex; align-items: baseline; gap: 6px; }
.rank-num { font-size: 32px; font-weight: 700; color: #1A1A1A; line-height: 1; }
.rank-label { font-size: 14px; color: #777; }
.my-position-points { text-align: right; }
.points-num { font-size: 24px; font-weight: 700; color: #1A1A1A; display: block; line-height: 1; }
.points-label { font-size: 13px; color: #777; }

.my-position-progress { height: 8px; background: #F0F0F0; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.my-position-progress-bar { height: 100%; background: #7CB342; border-radius: 4px; }
.my-position-footer { font-size: 13px; color: #777; }
.my-position-footer strong { color: #1A1A1A; font-weight: 600; }

/* Заголовок списка */
.rating-section-title { font-size: 20px; font-weight: 700; color: #1A1A1A; margin: 0 0 16px 0; }

/* Поиск (Обновлен для работы с кнопкой) */
.rating-search-wrap { margin-bottom: 16px; display: flex; gap: 12px; }
.rating-search-input { width: 100%; padding: 14px 20px; border-radius: 12px; border: 1px solid #E0E0E0; background: #FAFAFA; font-size: 15px; color: #333; font-family: inherit; transition: all 0.2s; }
.rating-search-input:focus { outline: none; border-color: #7CB342; background: #FFF; box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1); }
.rating-search-wrap .cabinet-btn { padding: 0 24px; height: 48px; flex-shrink: 0; } /* Фиксируем высоту кнопки */

/* Список участников */
.leaderboard-card { background: #FFFFFF; border-radius: 16px; padding: 8px 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #F0F0F0; }
.leaderboard-list { display: flex; flex-direction: column; }

.leaderboard-item { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid #F5F5F5; gap: 12px; transition: background 0.2s; }
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item--me { background: #F1F8E9; margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 8px; border-bottom: none; border-left: 3px solid #7CB342; }

.leaderboard-item__place { width: 24px; font-size: 15px; font-weight: 700; color: #888; text-align: center; }
.leaderboard-item--me .leaderboard-item__place { color: #7CB342; }
.leaderboard-item__avatar { width: 40px; height: 40px; border-radius: 50%; background: #F0F0F0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.leaderboard-item__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.leaderboard-item__name { font-size: 15px; font-weight: 600; color: #1A1A1A; display: flex; align-items: center; gap: 8px; }
.leaderboard-item__dept { font-size: 12px; color: #888; }
.badge-me { font-size: 10px; font-weight: 700; color: #7CB342; background: #E8F5E9; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.leaderboard-item__points-wrap { text-align: right; display: flex; flex-direction: column; }
.leaderboard-item__points { font-size: 16px; font-weight: 700; color: #1A1A1A; }
.leaderboard-item--me .leaderboard-item__points { color: #4A7A28; }
.leaderboard-item__points-label { font-size: 11px; color: #999; }
.leaderboard-dots { text-align: center; color: #999; padding: 8px 0; font-weight: 700; letter-spacing: 2px; }

/* Адаптив для пьедестала и поиска */
@media (max-width: 600px) {
    .rating-podium { flex-direction: column; align-items: stretch; gap: 12px; }
    .podium-card { flex-direction: row; justify-content: space-between; padding: 16px; transform: none !important; box-shadow: none !important; }
    .podium-icon { margin-bottom: 0; margin-right: 12px; font-size: 24px; }
    .podium-name { margin-bottom: 0; text-align: left; flex: 1; }
    .podium-points span { display: inline; margin-left: 4px; }
    .my-position-main { flex-direction: column; align-items: flex-start; gap: 12px; }
    .my-position-points { text-align: left; }
    
    .rating-search-wrap { flex-direction: column; gap: 8px; }
    .rating-search-wrap .cabinet-btn { width: 100%; }
}

/* ============================================
   6. CUMAN MARKET
   ============================================ */
.market-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.market-title { font-size: clamp(24px, 3vw, 32px); font-weight: 400; color: #222; margin: 0; }
.market-balance { background: #7CB342; color: #FFF; padding: 12px 24px; border-radius: 12px; font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(124, 179, 66, 0.2); }
.market-subtitle { font-size: 15px; color: #777; margin-bottom: 24px; }

.market-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.market-category-tab { padding: 8px 16px; background: #FFF; color: #555; font-weight: 600; font-size: 13px; border-radius: 50px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.2s ease; border: 1px solid #E0E0E0; }
.market-category-tab:hover { border-color: #7CB342; color: #7CB342; box-shadow: 0 4px 12px rgba(124, 179, 66, 0.15); }
.market-category-tab.is-active { background: #7CB342; color: #FFF; border-color: #7CB342; box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3); }
.market-categories::-webkit-scrollbar { display: none; }

.market-subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #E8E8E8; }
.market-subcategory-tab { padding: 6px 14px; background: #F4F6F3; color: #666; font-size: 13px; font-weight: 500; border-radius: 6px; text-decoration: none; transition: all 0.2s ease; border: 1px solid transparent; }
.market-subcategory-tab:hover { background: #E8F5E0; color: #4A7A28; }
.market-subcategory-tab.is-active { background: #E8F5E0; color: #4A7A28; font-weight: 600; border-color: #C5E1A5; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.market-card { background: #FFF; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid #F0F0F0; }
.market-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); border-color: #E8F5E0; }
.market-card__media-link { display: block; text-decoration: none; color: inherit; }
.market-card__media { aspect-ratio: 1 / 1; background: #F8F9FA; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 24px; position: relative; }
.market-card__img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; mix-blend-mode: multiply; }
.market-card:hover .market-card__img { transform: scale(1.03); }
.market-card__placeholder { font-size: 48px; opacity: 0.5; }
.market-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.market-card__title { font-size: 18px; font-weight: 600; margin: 0 0 8px 0; line-height: 1.3; }
.market-card__title a { color: #222; text-decoration: none; transition: color 0.2s ease; }
.market-card__title a:hover { color: #7CB342; }
.market-card__desc { font-size: 14px; color: #666; margin: 0 0 16px 0; flex: 1; line-height: 1.5; }
.market-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.market-card__price { font-size: 20px; font-weight: 700; color: #7CB342; white-space: nowrap; }
.market-card__footer .cabinet-btn { padding: 10px 20px; font-size: 14px; }

/* Страница товара */
.market-product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; background: #FFF; border-radius: 20px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); align-items: start; }
.market-product__gallery { display: flex; flex-direction: column; gap: 16px; }
.market-product__media { background: #F8F9FA; border-radius: 16px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 40px; width: 100%; }
.market-product__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.market-product__placeholder { font-size: 64px; opacity: 0.5; }
.market-product__thumbnails { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.market-product__thumbnails::-webkit-scrollbar { display: none; }
.market-product__thumb { width: 80px; height: 80px; flex-shrink: 0; background: #F8F9FA; border-radius: 8px; padding: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s ease, opacity 0.2s ease; opacity: 0.7; display: flex; align-items: center; justify-content: center; }
.market-product__thumb:hover { opacity: 1; }
.market-product__thumb.is-active { border-color: #7CB342; opacity: 1; }
.market-product__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.market-product__body { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 20px; }
.market-product__title { font-size: 32px; font-weight: 600; color: #222; margin: 0 0 16px; }
.market-product__desc { font-size: 16px; color: #666; line-height: 1.6; margin: 0 0 24px; }
.market-product__meta { display: flex; gap: 24px; align-items: baseline; margin-bottom: 24px; }
.market-product__price { font-size: 28px; font-weight: 700; color: #7CB342; }
.market-product__stock { font-size: 14px; color: #888; }
.market-product__balance { font-size: 15px; color: #555; margin-bottom: 24px; padding: 12px 16px; background: #F0F7E8; border-radius: 8px; }

/* Заказы */
.market-section-title { font-size: 22px; font-weight: 600; color: #222; margin: 48px 0 20px; }
.market-orders { display: flex; flex-direction: column; gap: 0; background: #FFF; border-radius: 16px; padding: 8px 24px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); border: 1px solid #F0F0F0; }
.market-order { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid #F0F0F0; }
.market-order:last-child { border-bottom: none; }
.market-order__name { font-size: 16px; font-weight: 500; color: #222; }
.market-order__date { font-size: 13px; color: #888; margin-top: 4px; }
.market-order__price { font-size: 16px; font-weight: 600; color: #7CB342; white-space: nowrap; }
.market-order__status { font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 20px; white-space: nowrap; }
.market-order__status--pending { background: #FFF3E0; color: #E65100; }
.market-order__status--processing { background: #E3F2FD; color: #1565C0; }
.market-order__status--approved { background: #E8F5E0; color: #4A7A28; }
.market-order__status--completed { background: #E8F5E9; color: #2E7D32; }
.market-order__status--rejected { background: #FDECEA; color: #C62828; }

/* Сетка карточек подкатегорий (Подарочные сертификаты) */
.market-subcategory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.market-subcategory-card { background: #F4F5F4; border-radius: 16px; padding: 24px; text-decoration: none; transition: all 0.25s ease; border: 1px solid transparent; display: flex; flex-direction: column; }
.market-subcategory-card:hover { background: #FFFFFF; border-color: #7CB342; box-shadow: 0 8px 24px rgba(124, 179, 66, 0.1); transform: translateY(-2px); }
.market-subcategory-card__icon { margin-bottom: 16px; }
.market-subcategory-card__title { font-size: 20px; font-weight: 600; color: #1A1A1A; margin: 0 0 8px 0; line-height: 1.3; }
.market-subcategory-card__desc { font-size: 15px; color: #777777; margin: 0; line-height: 1.4; }

/* ============================================
   7. ГЛАВНАЯ СТРАНИЦА ("МОЙ CUMAN")
   ============================================ */
.my-cuman-section { padding: 40px 0; background: #F8F9FA; }
.my-cuman-card { background: #FFFFFF; border-radius: 24px; padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03); border: 1px solid #EAEAEA; max-width: 1000px; margin: 0 auto; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.my-cuman-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06); }
.my-cuman-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.my-cuman-avatar { width: 80px; height: 80px; border-radius: 50%; background: #F5F5F5; flex-shrink: 0; overflow: hidden; box-shadow: inset 0 0 0 2px #EEE; }
.my-cuman-title h2 { font-size: 28px; font-weight: 600; color: #1A1A1A; margin: 0 0 4px 0; }
.my-cuman-title p { font-size: 16px; color: #888; margin: 0; }
.my-cuman-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.my-cuman-stat { background: #F8F9FA; border-radius: 16px; padding: 24px; text-align: center; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease; border: 1px solid transparent; }
.my-cuman-stat:hover { background: #FFFFFF; border-color: #E8F5E0; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124, 179, 66, 0.1); }
.my-cuman-stat-value { font-size: 36px; font-weight: 700; color: #1A1A1A; margin-bottom: 8px; line-height: 1; }
.my-cuman-stat-label { font-size: 15px; color: #777; font-weight: 500; }

/* ============================================
   8. АДАПТИВНОСТЬ (MEDIA QUERIES)
   ============================================ */
@media (max-width: 1024px) {
    .cabinet-downloads-layout { grid-template-columns: 1fr; }
    .cabinet-sidebar { padding: 24px; border-bottom: 1px solid #E0E0E0; }
    .cabinet-sidebar__link.is-active::after { display: none; }
    .cabinet-content { padding: 40px 24px 60px; }
    .cabinet-update-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    
    .market-subcategory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Профиль */
    .cabinet-dashboard { padding: 140px 0 60px; }
    .profile-card__header { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .profile-card__body { padding: 24px; }
    .profile-card__grid { grid-template-columns: 1fr; }
    .profile-card__footer { padding: 24px; flex-direction: column; align-items: stretch; }
    .profile-card__logout-form { margin-left: 0; margin-top: 16px; display: flex; justify-content: center; }

    /* Навигация */
    .cabinet-nav-grid { grid-template-columns: 1fr; gap: 12px; }
    .cabinet-nav-card { padding: 16px; }

    /* Статистика баллов */
    .points-stat-grid { grid-template-columns: 1fr; gap: 12px; }
    .points-stat-card { padding: 20px; }
    .points-stat-value { font-size: 32px; }
    .points-summary-block { flex-direction: column; gap: 12px; padding: 20px; }
    .points-summary-divider { width: 100%; height: 1px; }

    /* Прогресс */
    .points-progress-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .points-progress-header-right { text-align: left; }
    .points-levels-map { grid-template-columns: repeat(2, 1fr); }
    
    /* История */
    .points-history__item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }

    /* Маркет */
    .market-product { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
    .market-product__title { font-size: 24px; }
    .market-product__body { padding-top: 0; }
    .market-order { grid-template-columns: 1fr; gap: 8px; }
    .market-order__price { margin-top: 8px; }

    /* Лидерборд */
    .leaderboard-item { padding: 16px 24px; }
    .leaderboard-item--me { padding-left: 20px; }
    .leaderboard-item__place { width: 30px; font-size: 16px; }
    .leaderboard-item__name { font-size: 14px; }
    .leaderboard-item__points { font-size: 16px; }

    /* Главная "Мой CUMAN" */
    .my-cuman-card { padding: 24px; }
    .my-cuman-header { flex-direction: column; text-align: center; gap: 16px; }
    .my-cuman-stats { grid-template-columns: 1fr; gap: 12px; }
    .my-cuman-stat-value { font-size: 28px; }

    /* Подкатегории маркета */
    .market-subcategory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cabinet-update-row__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
    .cabinet-btn { width: 100%; justify-content: center; }

    /* Мобильная верхняя панель */
    .cabinet-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .info-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   9. НОВОСТИ (CABINET NEWS)
   ============================================ */

/* Ограничиваем текст в карточке новости, чтобы они были одинаковой высоты */
.cabinet-news .market-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 16px;
}

/* Стили для даты в карточке новости */
.cabinet-news__date {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed #EAEAEA;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Улучшаем вид пустого состояния (когда ничего не найдено) */
.cabinet-news .points-empty {
    border: 1px dashed #D5D5D5;
    background: #FAFAFA;
    box-shadow: none;
}

/* ============================================
   10. ОБРАТНАЯ СВЯЗЬ (FEEDBACK)
   ============================================ */
.feedback-header {
    margin-bottom: 32px;
}
.feedback-title {
    font-size: 32px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}
.feedback-subtitle {
    font-size: 16px;
    color: #777777;
    margin: 0;
}

.feedback-grid {
    display: grid;
    /* Автоматически подстраивается: 3 колонки на десктопе, 1 на телефоне */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feedback-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.feedback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 179, 66, 0.1);
    border-color: #7CB342;
}

.feedback-card__icon {
    width: 48px;
    height: 48px;
    background: #F1F8E9;
    color: #7CB342;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.25s ease, color 0.25s ease;
}

.feedback-card:hover .feedback-card__icon {
    background: #7CB342;
    color: #FFFFFF;
}

.feedback-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.feedback-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.feedback-card__desc {
    font-size: 15px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* ============================================
   11. ОБРАТНАЯ СВЯЗЬ — ФОРМЫ И СПИСКИ
   ============================================ */
.cabinet-form { display: flex; flex-direction: column; gap: 20px; background: #FFF; border-radius: 20px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.cabinet-form__field { display: flex; flex-direction: column; gap: 8px; }
.cabinet-form__field label { font-size: 13px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.cabinet-form__field input,
.cabinet-form__field select,
.cabinet-form__field textarea {
    width: 100%; padding: 14px 18px; background: #FFF;
    border: 1px solid #DDD; border-radius: 10px;
    font-size: 15px; color: #222; font-family: inherit;
    transition: all 0.2s ease;
}
.cabinet-form__field input:focus,
.cabinet-form__field select:focus,
.cabinet-form__field textarea:focus {
    outline: none; border-color: #7CB342;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.15);
}
.cabinet-form__field textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.cabinet-form__field-hint { font-size: 12px; color: #999; }
.cabinet-form__error { background: #FDECEA; color: #C62828; padding: 14px 18px; border-radius: 10px; font-size: 14px; border-left: 4px solid #C62828; }
.cabinet-form__actions { display: flex; gap: 12px; margin-top: 8px; }

.feedback-status { font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; white-space: nowrap; }
.feedback-status--pending     { background: #FFF3E0; color: #E65100; }
.feedback-status--in_progress { background: #E3F2FD; color: #1565C0; }
.feedback-status--answered    { background: #E8F5E0; color: #4A7A28; }
.feedback-status--rejected    { background: #FDECEA; color: #C62828; }

.feedback-list { display: flex; flex-direction: column; background: #FFF; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #F0F0F0; overflow: hidden; }
.feedback-list__item { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 20px 28px; border-bottom: 1px solid #F0F0F0; text-decoration: none; color: inherit; transition: background 0.2s; }
.feedback-list__item:last-child { border-bottom: none; }
.feedback-list__item:hover { background: #FAFAFA; }
.feedback-list__title { font-size: 16px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
.feedback-list__meta { font-size: 13px; color: #888; }
.feedback-list__date { font-size: 13px; color: #888; white-space: nowrap; text-align: right; }
.feedback-list__arrow { color: #BBB; font-size: 18px; }

.feedback-detail { background: #FFF; border-radius: 20px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.feedback-detail__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.feedback-detail__title { font-size: 24px; font-weight: 600; color: #1A1A1A; margin: 0; }
.feedback-detail__date { font-size: 13px; color: #888; margin-top: 6px; }
.feedback-detail__body { font-size: 15px; color: #333; line-height: 1.7; white-space: pre-wrap; padding: 20px 24px; background: #F8F9FA; border-radius: 12px; margin-bottom: 24px; }
.feedback-detail__response { background: #F1F8E9; border-left: 4px solid #7CB342; border-radius: 0 12px 12px 0; padding: 20px 24px; }
.feedback-detail__response-label { font-size: 12px; font-weight: 700; color: #4A7A28; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.feedback-detail__response-text { font-size: 15px; color: #222; line-height: 1.7; white-space: pre-wrap; }
.feedback-detail__pending { background: #FFF8E1; border-left: 4px solid #FBC02D; border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: 14px; color: #6D4C00; }

@media (max-width: 600px) {
    .feedback-list__item { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
    .feedback-list__date { text-align: left; }
    .feedback-detail { padding: 24px; }
    .cabinet-form { padding: 24px; }
}

/* ============================================
   РАЗДЕЛ "МОЯ КОМАНДА" (ВКЛАДКИ, КАРТОЧКИ, ОРГСТРУКТУРА)
   ============================================ */

/* --- 1. Главные вкладки раздела --- */
.team-main-tabs {
    display: flex;
    background: #FFF;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #EAEAEA;
}

.team-main-tab {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.team-main-tab:hover {
    color: #1A1A1A;
    background: #F8F9FA;
}

.team-main-tab.is-active {
    background: #7CB342;
    color: #FFF;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.2);
}

.team-main-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.team-main-content.is-active {
    display: block;
}

/* --- 2. Инфо-плашка отдела --- */
.team-dept-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F1F8E9;
    color: #4A7A28;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* --- 3. Сетка и карточки сотрудников --- */
.team-grid {
    display: grid;
    /* Увеличили минимальную ширину, чтобы длинным ФИО было просторнее */
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}

.team-card {
    background: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    /* flex-start прижимает аватарку к верху, если текст длинный */
    align-items: flex-start; 
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 179, 66, 0.1);
    border-color: #7CB342;
}

.team-card__avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #F8F9FA;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #E8F5E0;
}

.team-card__avatar svg {
    width: 100%;
    height: 100%;
}

.team-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: 100%;
}

/* Разрешаем перенос строк для длинных имен */
.team-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

/* Разрешаем перенос строк для длинных должностей */
.team-card__position {
    font-size: 13px;
    color: #777777;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.team-card__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #7CB342;
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.team-card__dept {
    font-size: 11px;
    font-weight: 600;
    color: #5A8F2E;
    background: #F1F8E9;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    display: inline-block;
    margin-top: 4px;
}

.team-card__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

/* Email оставляем с обрезкой, чтобы длинный адрес не ломал верстку */
.team-card__contacts a {
    font-size: 12px;
    color: #777;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.team-card__contacts a:hover {
    color: #7CB342;
}

/* --- 4. Поиск в справочнике --- */
.rating-search-wrap {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.rating-search-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background: #FAFAFA;
    font-size: 15px;
    color: #333;
    font-family: inherit;
    transition: all 0.2s;
}

.rating-search-input:focus {
    outline: none;
    border-color: #7CB342;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

/* --- 5. Организационная структура --- */
.org-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.org-card {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #EAEAEA;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.org-card__header {
    padding: 24px 32px;
    background: #FAFAFA;
    border-bottom: 1px solid #EAEAEA;
}

.org-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.org-card__desc {
    font-size: 14px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

.org-card__body {
    padding: 32px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Руководитель */
.org-manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: #F1F8E9;
    border-radius: 16px;
    border: 1px dashed #A5D6A7;
    height: fit-content;
}

.org-manager__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7CB342;
    margin-bottom: 16px;
    background: #FFF;
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.org-manager__avatar {
    width: 80px;
    height: 80px;
    background: #E8F5E0;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid #FFF;
    box-shadow: 0 4px 10px rgba(124, 179, 66, 0.2);
    overflow: hidden;
}

.org-manager__avatar svg {
    width: 100%;
    height: 100%;
}

.org-manager__name {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 4px 0;
}

.org-manager__pos {
    font-size: 14px;
    color: #5A8F2E;
    font-weight: 500;
    margin: 0;
}

/* Список линейных сотрудников */
.org-staff {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.org-staff__label {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.org-staff__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.org-staff__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #EAEAEA;
    background: #FFF;
    transition: all 0.2s;
}

.org-staff__item:hover {
    border-color: #C5E1A5;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.05);
}

.org-staff__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.org-staff__name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-staff__pos {
    font-size: 12px;
    color: #777;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-badge-current {
    font-size: 10px;
    font-weight: 700;
    color: #7CB342;
    background: #E8F5E9;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    width: fit-content;
}

/* --- 6. Пустые состояния --- */
.team-empty {
    background: #FFF;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px dashed #D5D5D5;
}

.team-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.team-empty__text {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
}

.team-empty__subtext {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* --- 7. Адаптивность --- */
@media (max-width: 900px) {
    .org-card__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .team-main-tabs {
        flex-direction: column;
    }
    .team-card {
        flex-direction: column;
        text-align: center;
    }
    .team-card__info {
        align-items: center;
    }
    .team-card__contacts a {
        justify-content: center;
    }
}

/* ============================================
   15. ФАЙЛЫ И ОБНОВЛЕНИЯ (ГЛАВНЫЙ ХАБ)
   ============================================ */

.dl-hub-header {
    margin-bottom: 32px;
    margin-top: 16px;
}
.dl-hub-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}
.dl-hub-subtitle {
    font-size: 16px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

/* Сетка для карточек */
.dl-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Большая карточка (Каталог) */
.dl-card-main {
    grid-column: 1 / -1;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    text-decoration: none;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    position: relative;
}

.dl-card-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 179, 66, 0.08);
    border-color: #7CB342;
}

.dl-card-main__icon {
    width: 48px;
    height: 48px;
    background: #F1F8E9;
    color: #7CB342;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.dl-card-main__title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 12px 0;
}

.dl-card-main__desc {
    font-size: 16px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

.dl-card-main__arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    color: #999;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dl-card-main:hover .dl-card-main__arrow {
    color: #7CB342;
    transform: translate(4px, -4px);
}

/* Маленькие карточки (Архив / Новые версии) */
.dl-card-small {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.dl-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 179, 66, 0.08);
    border-color: #7CB342;
}

.dl-card-small__icon {
    width: 40px;
    height: 40px;
    background: #F1F8E9;
    color: #7CB342;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.dl-card-small__title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.dl-card-small__desc {
    font-size: 15px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

/* Адаптив */
@media (max-width: 768px) {
    .dl-hub-grid {
        grid-template-columns: 1fr;
    }
    .dl-card-main {
        padding: 24px;
    }
    .dl-card-small {
        padding: 24px;
    }
}

/* ============================================
   16. ФАЙЛЫ И ОБНОВЛЕНИЯ — КАТАЛОГ (САЙДБАР + КОНТЕНТ)
   ============================================ */

.cabinet-downloads-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ---------- Сайдбар со списком моделей ---------- */
.cabinet-sidebar {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cabinet-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cabinet-sidebar__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.3;
}

.cabinet-sidebar__link:hover {
    background: #F8F9FA;
    color: #4A7A28;
}

.cabinet-sidebar__link.is-active {
    background: #F1F8E9;
    color: #4A7A28;
    border-left-color: #7CB342;
    font-weight: 600;
}

.cabinet-sidebar__empty {
    font-size: 14px;
    color: #999;
    margin: 0;
    text-align: center;
    padding: 20px 0;
}

.cabinet-sidebar__back {
    display: inline-block;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
    font-size: 14px;
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.cabinet-sidebar__back:hover {
    color: #7CB342;
}

/* ---------- Контент каталога ---------- */
.cabinet-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #F0F0F0;
    min-height: 240px;
}

.cabinet-updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cabinet-update-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cabinet-update-row:hover {
    border-color: #C5E1A5;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.05);
}

.cabinet-update-row__title {
    font-size: 17px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
}

.cabinet-update-row__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* ---------- Кнопка "Скачать" ---------- */
.cabinet-btn--download {
    background: #7CB342;
    color: #FFF;
}
.cabinet-btn--download:hover {
    background: #5A8F2E;
    color: #FFF;
}

/* ---------- Выпадающее меню "Руководство" ---------- */
.cabinet-dropdown {
    position: relative;
}

.cabinet-dropdown__toggle {
    gap: 6px;
}

.cabinet-dropdown__arrow {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.cabinet-dropdown.is-open .cabinet-dropdown__arrow {
    transform: rotate(180deg);
}

.cabinet-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 270px;
    background: #FFF;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #EAEAEA;
    padding: 6px;
    z-index: 20;
}

.cabinet-dropdown.is-open .cabinet-dropdown__menu {
    display: block;
}

.cabinet-dropdown__item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.cabinet-dropdown__item:hover {
    background: #F1F8E9;
    color: #4A7A28;
}

/* ============================================
   16. АКАДЕМИЯ CUMAN (КАРТОЧКИ И СЕТКИ)
   ============================================ */

/* Статистика */
.academy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    max-width: 600px;
}

/* Базовая карточка курса */
.academy-card {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #F0F0F0;
    height: 100%; /* Растягивает карточки на одну высоту */
}

.academy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #E8F5E0;
}

/* Медиа-блок (для Каталога и Тестов) */
.academy-card__media {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #F0F0F0;
}

.academy-card__media--green { background: #F0F7E8; }
.academy-card__media--yellow { background: #FFF8E1; }

/* Тело карточки */
.academy-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.academy-card__top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.academy-card__category {
    font-size: 11px;
    font-weight: 700;
    color: #7CB342;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.academy-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.academy-card__desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex-grow: 1; /* Прижимает футер к низу */
}

.academy-card__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.academy-card__footer {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

/* Специфичные стили для Базы Знаний */
.academy-card--knowledge {
    flex-direction: row;
    padding: 24px;
    gap: 16px;
    align-items: flex-start;
}

.academy-card__icon-box {
    width: 48px;
    height: 48px;
    background: #F0F7E8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #C5E1A5;
}

/* Прогресс-бар в Моем обучении */
.academy-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

/* Сертификаты */
.academy-certificate {
    background: #FFFDF5;
    border: 2px solid #FBC02D;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.08);
}

.academy-certificate__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.academy-certificate__header span {
    font-size: 11px;
    font-weight: 700;
    color: #FBC02D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.academy-certificate__title {
    font-size: 22px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.academy-certificate__date {
    font-size: 14px;
    color: #777;
    margin: 0 0 24px 0;
}

.academy-certificate__footer {
    margin-top: auto;
    width: 100%;
    padding-top: 16px;
    border-top: 1px dashed #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.academy-certificate__id {
    font-size: 12px;
    color: #999;
}

/* Модалка (Красивая) */
.custom-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 480px;
    width: 90%;
    background: #FFF;
    outline: none;
    margin: auto;
}

.custom-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.custom-dialog__inner {
    padding: 32px;
    position: relative;
}

.custom-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F0F0F0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.custom-dialog__close:hover { background: #E0E0E0; }

.custom-dialog h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-top: 0;
    margin-bottom: 16px;
}

.custom-dialog p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-dialog__note {
    background: #F8F9FA;
    border-left: 4px solid #7CB342;
    border-radius: 0 8px 8px 0;
    padding: 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Адаптив для карточек знаний */
@media (max-width: 600px) {
    .academy-card--knowledge {
        flex-direction: column;
    }
    .academy-certificate {
        padding: 24px;
    }
}

/* ============================================
   17. УНИВЕРСАЛЬНАЯ МОДАЛКА (INFO MODAL)
   ============================================ */
.info-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 480px;
    width: 90%;
    background: #FFF;
    outline: none;
    margin: auto;
}

.info-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.info-dialog__inner {
    padding: 32px;
    position: relative;
}

.info-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F0F0F0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.info-dialog__close:hover {
    background: #E0E0E0;
}

.info-dialog__title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    margin-top: 0;
}

.info-dialog__text {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.info-dialog__note,
.info-dialog__warning {
    border-radius: 0 8px 8px 0;
    padding: 16px;
    margin-bottom: 16px;
}

.info-dialog__note {
    background: #F8F9FA;
    border-left: 4px solid #7CB342;
}

.info-dialog__warning {
    background: #FFF8E1;
    border-left: 4px solid #FBC02D;
    margin-bottom: 0; /* Убираем отступ у последнего блока */
}

.info-dialog__note p,
.info-dialog__warning p {
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.6;
}

/* Поиск в Академии (База знаний) */
.academy-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 800px;
}

.academy-search-input-wrap {
    position: relative;
    flex: 1;
}

.academy-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.academy-search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 15px;
    color: #222;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.academy-search-input:focus {
    outline: none;
    border-color: #7CB342;
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

@media (max-width: 768px) {
    .academy-search-form {
        flex-direction: column;
    }
    .academy-search-form .cabinet-btn {
        width: 100%;
    }
}