/* ===========================================
   Рост категорий — /categories-growth
   =========================================== */

@media (max-width: 1199px) {
    .container:has(.cg-page) {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

.cg-page {
    padding: 24px 0 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Header ───────────────────────────────── */

.cg-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.cg-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.cg-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.25;
}

.cg-header__subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 4px 0 0;
}


/* ─── Period pills ─────────────────────────── */

.cg-period {
    display: flex;
    gap: 4px;
    background: var(--color-bg-secondary);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.cg-period__btn {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cg-period__btn:hover {
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.08);
}

.cg-period__btn--active {
    background: var(--color-bg-primary);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ─── Category Select (dropdown) ───────────── */

.cg-category-select {
    position: relative;
    margin: 0 -2px;
}

.cg-category-select__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.cg-category-select__trigger:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.cg-category-select--open .cg-category-select__trigger {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.cg-category-select__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.cg-category-select__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-category-select__growth {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-success);
    flex-shrink: 0;
}

.cg-category-select__period {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.cg-category-select__unit {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.cg-category-select__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.cg-category-select--open .cg-category-select__chevron {
    transform: rotate(180deg);
}

.cg-category-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.cg-category-select--open .cg-category-select__dropdown {
    display: block;
}

.cg-category-select__search {
    padding: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.cg-category-select__search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.cg-category-select__search-input:focus {
    border-color: var(--color-primary);
}

.cg-category-select__list {
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.cg-category-select__list::-webkit-scrollbar {
    width: 5px;
}

.cg-category-select__list::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

.cg-category-select__loading {
    padding: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

.cg-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    background: var(--color-bg-primary);
    z-index: 1;
}

.cg-cat-header__name {
    flex: 1;
    min-width: 0;
}

.cg-cat-header__col {
    width: 72px;
    text-align: right;
    flex-shrink: 0;
}

.cg-cat-header__col--stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    line-height: 1.1;
}

.cg-cat-header__title {
    font-size: 9px;
    font-weight: 700;
}

.cg-cat-header__subtitle {
    font-size: 8px;
    font-weight: 500;
    opacity: 0.85;
    text-transform: none;
    letter-spacing: 0;
}

.cg-cat-header__growth-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.cg-cat-header__growth-label {
    position: absolute;
    top: -11px;
    right: 0;
    font-size: 8px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.8;
    white-space: nowrap;
}

.cg-cat-header__growth-cols {
    display: flex;
    gap: 10px;
}

.cg-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    color: var(--color-text-primary);
}

.cg-cat-item:hover {
    background: rgba(124, 58, 237, 0.06);
}

.cg-cat-item--active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.cg-cat-item--all {
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light);
    border-radius: 8px 8px 0 0;
    margin-bottom: 2px;
}

.cg-cat-item--root {
    font-weight: 600;
    font-size: 13px;
}

.cg-cat-item--child {
    padding-left: 28px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.cg-cat-item--leaf {
    padding-left: 46px;
    font-size: 11.5px;
    color: var(--color-text-secondary);
}

.cg-cat-item__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-cat-item__col {
    width: 72px;
    text-align: right;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.cg-cat-unit {
    font-size: 9px;
    font-weight: 400;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-left: 2px;
}

.cg-cat-item__count {
    color: var(--color-text-muted);
    font-weight: 500;
}

.cg-cat-badge--paid {
    color: #c2410c;
}

.cg-cat-badge--free {
    color: #2563eb;
}

.cg-cat-badge--zero {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.cg-cat-item__growth {
    font-weight: 800;
    color: var(--color-success);
}

.cg-cat-header__col {
    color: var(--color-text-secondary);
}

.cg-cat-header__growth-cols .cg-cat-header__col:nth-child(1) {
    color: #c2410c;
}

.cg-cat-header__growth-cols .cg-cat-header__col:nth-child(2) {
    color: #2563eb;
}

.cg-cat-header__growth-cols .cg-cat-header__col:nth-child(3) {
    color: var(--color-success);
}

.cg-cat-item__growth--zero {
    color: var(--color-text-muted);
    font-weight: 500;
}

.cg-cat-item__col .cg-cat-unit {
    display: inline-block;
    white-space: nowrap;
}

/* ─── Card (generic) ───────────────────────── */

.cg-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 16px;
    padding: 20px;
    position: relative;
}

.cg-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.cg-chart-card .cg-card__header {
    margin-bottom: 6px;
}

.cg-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

/* ─── Chart ────────────────────────────────── */

.cg-chart-wrap {
    position: relative;
    min-height: 280px;
    height: 40vh;
    max-height: 500px;
}

.cg-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.cg-chart-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    z-index: 5;
}

.cg-chart-loader[style*="display: none"],
.cg-chart-loader[style*="display:none"] {
    display: none !important;
}


.cg-chart-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cg-chart-legend {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding: 0 4px 4px;
}

.cg-chart-legend__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.cg-chart-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.cg-chart-legend__item--paid .cg-chart-legend__dot {
    background: #f59e0b;
}

.cg-chart-legend__item--free .cg-chart-legend__dot {
    background: var(--color-primary);
}

.cg-chart-hint {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 10px 0 0;
}

/* ─── Courses for day ──────────────────────── */

.cg-courses-card {
    min-height: 120px;
    overflow: hidden;
}

.cg-courses-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.cg-courses-placeholder__icon {
    width: 64px;
    height: 40px;
    opacity: 0.5;
}

.cg-courses-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.cg-courses-filters {
    display: flex;
    gap: 4px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    padding: 3px;
}

.cg-courses-filter {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.cg-courses-filter:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--color-primary);
}

.cg-courses-filter--active {
    background: var(--color-bg-primary);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cg-courses-date {
    --cg-courses-date-inline-pad: 2px;
    --cg-courses-date-gap: 4px;
    --cg-courses-date-sep-space: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cg-courses-date__label {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.cg-courses-date__accent {
    font-weight: 600;
    color: var(--color-primary);
}

.cg-courses-date__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    opacity: 0.4;
    line-height: 1;
    margin-inline: var(--cg-courses-date-sep-space);
}

.cg-courses-date__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: var(--cg-courses-date-gap);
    row-gap: 2px;
    padding-inline: var(--cg-courses-date-inline-pad);
}

.cg-courses-date__growth {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding-inline: var(--cg-courses-date-inline-pad);
}

.cg-courses-date__growth-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.cg-courses-date__growth-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cg-courses-date__growth-value--free {
    color: #7c3aed;
}

.cg-courses-date__growth-value--paid {
    color: #f59e0b;
}

.cg-courses-date__warn {
    font-size: 10px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 3px 8px;
    width: fit-content;
    margin-left: var(--cg-courses-date-inline-pad);
}

.cg-courses-list {
    max-height: 55vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: linear-gradient(180deg, #fafbfc 0%, var(--color-bg-primary) 100%);
    border: 1px solid var(--color-border-light);
    border-radius: 14px;
    scrollbar-width: none;
}

.cg-courses-list::-webkit-scrollbar {
    display: none;
}

/* ─── Infinite scroll ──────────────────────── */

.cg-scroll-sentinel {
    height: 10px;
    width: 100%;
}

.cg-infinity-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.cg-infinity-loading--hidden {
    display: none;
}

.cg-end-of-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
}

.cg-end-of-list--hidden {
    display: none;
}

.cg-courses-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ─── Skeleton shimmer ─────────────────────── */

.cg-skel {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: cg-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes cg-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.cg-skel--circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cg-skel--cover {
    width: 58px;
    height: 34px;
    flex-shrink: 0;
}

.cg-skel--text {
    height: 13px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.cg-skel--tag {
    height: 10px;
    width: 52px;
    border-radius: 4px;
}

.cg-skel--num {
    height: 14px;
    width: 42px;
    border-radius: 4px;
    margin-bottom: 3px;
    margin-left: auto;
}

.cg-skel--label {
    height: 8px;
    width: 30px;
    border-radius: 3px;
    margin-left: auto;
}

.cg-cr--skeleton {
    pointer-events: none;
}

/* Category growth skeleton */
.cg-skel--cat-growth {
    display: inline-block;
    height: 14px;
    width: 56px;
    border-radius: 4px;
    vertical-align: middle;
}

.cg-skel--kpi {
    display: none;
}

/* ─── Course row ───────────────────────────── */

.cg-cr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, #fafbfc 100%);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cg-cr:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.cg-cr__rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-bg-secondary);
}

.cg-cr__rank--gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    font-size: 14px;
}

.cg-cr__rank--silver {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    font-size: 14px;
}

.cg-cr__rank--bronze {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #9a3412;
    font-size: 14px;
}

.cg-cr__cover {
    width: 91px;
    height: 53px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.cg-cr:hover .cg-cr__cover {
    transform: scale(1.04);
}

.cg-cr__info {
    flex: 1;
    min-width: 0;
}

.cg-cr__aside {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.cg-cr__title-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.cg-cr__badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cg-cr__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.3;
}

.cg-cr__title:hover {
    color: var(--color-primary);
}

.cg-cr__award {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.cg-cr__award img {
    width: 16px;
    height: 16px;
}

.cg-cr__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.cg-cr__tag--paid {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    letter-spacing: normal;
}

.cg-cr__tag--free {
    font-size: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    padding: 3px 7px;
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.25);
}

.cg-cr__meta {
    margin-top: 4px;
    min-width: 0;
}

.cg-cr__authors {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.cg-cr__authors-label {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.cg-cr__authors-value {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

.cg-cr__authors-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.cg-cr__author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    vertical-align: baseline;
}

.cg-cr__author-link--extra {
    display: none;
}

.cg-cr__authors-list--expanded .cg-cr__author-link--extra {
    display: inline-flex;
}

.cg-cr__authors-list--expanded .cg-cr__team-more {
    display: none;
}

.cg-cr__team-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.cg-cr__team-avatar--placeholder {
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 600;
}

.cg-cr__author-name {
    display: inline;
}

.cg-cr__author-link:hover {
    color: var(--color-primary);
}

.cg-cr__team-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 4px;
    margin-left: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.cg-cr__team-more:hover {
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.06);
}

.cg-cr__stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.cg-cr__stat {
    min-width: 90px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 5px 7px;
    border-radius: 8px;
    background: var(--color-bg-secondary);
}

.cg-cr__stat-label {
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.cg-cr__stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.cg-cr__stat--delta .cg-cr__stat-value {
    color: var(--color-success);
}

.cg-cr__stat--total .cg-cr__stat-value {
    color: var(--color-text-primary);
}

.cg-cr__stat--total {
    margin-right: 4px;
}

/* ─── Custom tooltip ───────────────────────── */

.cg-tooltip {
    position: absolute;
    pointer-events: none;
    background: #1e293b;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-size: 12px;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: opacity 0.15s ease;
    min-width: 160px;
}

.cg-tooltip__date {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 13px;
}

.cg-tooltip__row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.cg-tooltip__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.cg-tooltip__label {
    flex: 1;
    opacity: 0.8;
}

.cg-tooltip__value {
    font-weight: 700;
}

.cg-tooltip__hint {
    margin-top: 6px;
    font-size: 10px;
    opacity: 0.5;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
}

.cg-tooltip__warn {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #fcd34d;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 768px) {
    .cg-page {
        padding: 16px 0 32px;
        gap: 14px;
    }

    .cg-header__title {
        font-size: 1.25rem;
    }

    .cg-period {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .cg-period::-webkit-scrollbar {
        display: none;
    }

    .cg-period__btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cg-card {
        padding: 14px;
        border-radius: 12px;
    }

    .cg-chart-wrap {
        min-height: 220px;
        height: 35vh;
    }

    .cg-courses-header {
        gap: 8px;
    }

    .cg-courses-list {
        padding: 6px;
        border-radius: 12px;
    }

    .cg-cr {
        padding: 10px;
        border-radius: 12px;
    }

    .cg-cr__cover {
        width: 75px;
        height: 46px;
    }

    .cg-cr__title {
        font-size: 13px;
    }

    .cg-cr__authors,
    .cg-cr__authors-label,
    .cg-cr__authors-value {
        font-size: 11px;
    }

}

@media (max-width: 600px) {
    .cg-chart-wrap {
        min-height: 180px;
        height: 30vh;
    }

    .cg-courses-date {
        --cg-courses-date-inline-pad: 1px;
        --cg-courses-date-gap: 3px;
        --cg-courses-date-sep-space: 6px;
    }

    .cg-courses-date__growth {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .cg-courses-list {
        padding: 4px;
        border-radius: 10px;
    }

    .cg-cr {
        padding: 6px 4px;
        display: grid;
        grid-template-columns: 65px minmax(0, 1fr);
        grid-template-areas:
            "cover info"
            ". info"
            "badge stats";
        column-gap: 5px;
        row-gap: 3px;
        align-items: flex-start;
    }

    .cg-cr__cover {
        grid-area: cover;
        margin-right: 0;
        width: 65px;
        height: 39px;
    }

    .cg-cr__title-row {
        gap: 2px;
    }

    .cg-cr__info {
        grid-area: info;
    }

    .cg-cr__aside {
        display: contents;
    }

    .cg-cr__tag.cg-cr__tag--paid {
        font-size: 14px;
    }

    .cg-cr__tag.cg-cr__tag--free {
        font-size: 10px;
        padding: 2px 6px;
    }

    .cg-cr__meta {
        margin-top: 2px;
    }

    .cg-cr__authors {
        gap: 1px;
    }

    .cg-cr__authors-label,
    .cg-cr__authors-value {
        font-size: 10px;
        line-height: 1.25;
    }

    .cg-cr__author-link {
        gap: 4px;
    }

    .cg-cr__team-avatar {
        width: 16px;
        height: 16px;
    }

    .cg-cr__team-avatar--placeholder {
        font-size: 8px;
    }

    .cg-cr__award img {
        width: 14px;
        height: 14px;
    }

    .cg-cr__badges {
        grid-area: badge;
        justify-self: start;
        align-self: end;
        margin-top: 0;
        margin-left: 4px;
        margin-bottom: 3px;
    }

    .cg-cr__stats {
        grid-area: stats;
        justify-self: end;
        gap: 6px;
        margin-top: 0;
    }

    .cg-cr__stat {
        min-width: 68px;
        padding: 2px 4px;
    }

    .cg-cr__stat-label {
        font-size: 8px;
    }

    .cg-cr__stat-value {
        font-size: 13px;
    }

    .cg-courses-date {
        font-size: 11px;
    }

    .cg-chart-legend {
        gap: 10px;
    }

    .cg-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cg-cat-header__growth-cols .cg-cat-header__col:nth-child(1),
    .cg-cat-header__growth-cols .cg-cat-header__col:nth-child(2),
    .cg-cat-item__col:nth-child(3),
    .cg-cat-item__col:nth-child(4) {
        display: none;
    }

    .cg-cat-header__col,
    .cg-cat-item__col {
        width: 60px;
    }

    .cg-cat-header__title {
        font-size: 8px;
    }

    .cg-cat-header__subtitle {
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .cg-page {
        padding: 12px 0 24px;
        gap: 10px;
    }

    .cg-header__title {
        font-size: 1.1rem;
    }

    .cg-header__subtitle {
        font-size: 11px;
    }

    .cg-card {
        padding: 12px;
    }

    .cg-cr {
        grid-template-columns: 60px minmax(0, 1fr);
        grid-template-areas:
            "cover info"
            ". info"
            "badge stats";
        padding: 5px 3px;
        column-gap: 4px;
        row-gap: 2px;
    }

    .cg-chart-wrap {
        min-height: 160px;
        height: 26vh;
    }

    .cg-cr__title {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .cg-cr__tag.cg-cr__tag--paid {
        font-size: 11px;
    }

    .cg-cr__tag.cg-cr__tag--free {
        font-size: 8px;
        padding: 1px 5px;
    }

    .cg-cr__badges {
        margin-left: 3px;
        margin-bottom: 2px;
    }

    .cg-cr__cover {
        width: 60px;
        height: 36px;
    }

    .cg-cr__authors-label,
    .cg-cr__authors-value {
        font-size: 9px;
    }

    .cg-cr__team-avatar {
        width: 14px;
        height: 14px;
    }

    .cg-cr__stat {
        min-width: 62px;
        padding: 2px 3px;
    }

    .cg-cr__stat-label {
        font-size: 7px;
    }

    .cg-cr__stat-value {
        font-size: 12px;
    }

    .cg-category-select__trigger {
        font-size: 13px;
        padding: 8px 12px;
    }
}

