/* ============================
   Основной контейнер
   ============================ */
.booking-calendar {
    /* Переменные цветов и размеров */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --occupied-bg: #fee2e2;
    --occupied-border: #fca5a5;
    --selected-bg: #dbeafe;
    --time-column-width: 70px;
    --cell-height: 30px;

    /* Настройки шрифта и отображения */
    -webkit-user-select: none;  /* Запрет выделения текста (Safari) */
    -moz-user-select: none;     /* Запрет выделения текста (Firefox) */
    -ms-user-select: none;      /* Запрет выделения текста (IE/Edge) */
    user-select: none;          /* Запрет выделения текста (Стандарт) */

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Один вертикальный скролл — страницы */
    display: flex;
    flex-direction: column;
}

/* ============================
   Заголовок календаря
   ============================ */
.calendar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-week-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    min-width: 150px;
    text-align: center;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.nav-today {
    font-weight: 500;
}

.nav-btn.nav-today:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-btn.nav-today:not(:disabled):hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ============================
   Плашка итога бронирования (закреплена по низу экрана)
   ============================ */
.booking-summary-bar {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1099;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.booking-summary-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-summary-bar__info {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.booking-summary-bar__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-summary-bar__label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.booking-summary-bar__value {
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
}

.booking-summary-bar__total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.booking-summary-bar__action {
    flex-shrink: 0;
}

.booking-summary-bar__btn {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-summary-bar__btn:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.booking-summary-bar__btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.booking-summary-bar__btn:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

/* Отступ страницы, чтобы контент не уходил под плашку */
.booking-page {
    padding-bottom: 80px;
}

/* ============================
   Инфо-панель (сверху) — оставлена для совместимости, если календарь без summaryBarContainer
   ============================ */
.booking-info-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.selected-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.selected-date,
.selected-time,
.selected-duration {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-date strong,
.selected-time strong,
.selected-duration strong {
    color: #1e293b;
}

.booking-total {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-label {
    font-size: 0.875rem;
    color: #64748b;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-book {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-book:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-book:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* ============================
   Сетка календаря
   ============================ */
.calendar-grid-container {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: visible; /* Только один вертикальный скролл — страницы */
    position: relative;
    background: #fff;
    min-width: 100%;
    /* Не задаём max-height — контент тянет страницу, скролл один */
}

.calendar-grid {
    display: grid;
    /* Первая колонка - время, остальные 7 - дни */
    grid-template-columns: var(--time-column-width) repeat(7, minmax(100px, 1fr));
    min-width: 800px;
}

.calendar-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.calendar-loader .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
}

/* ============================
   Заголовки дней недели
   ============================ */
.day-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-header:last-child {
    border-right: none;
}

.day-header.today-column {
    background: #eff6ff;
    border-bottom-color: var(--primary-color);
}

.day-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 500;
    /* margin-bottom: 4px; */
    margin-right: 6px;
}

.day-date {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.day-date.today {
    color: var(--primary-color);
}

.day-price {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
    display: none;
}

/* Уголок (пустая ячейка сверху слева) — выше строки дат при горизонтальном скролле */
.corner-cell {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 12;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
}

/* ============================
   Ячейки времени (левая колонка) — выше строки дат при горизонтальном скролле
   ============================ */
.time-cell {
    position: sticky;
    left: 0;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    border-right: 2px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
    height: var(--cell-height);
    box-sizing: border-box;
}

/* Стиль для получасовых меток */
.time-cell-half {
    color: #94a3b8; /* Чуть светлее */
}

/* ============================
   Ячейки выбора времени
   ============================ */
.booking-cell {
    position: relative;
    height: var(--cell-height);
    background: #fff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    overflow: hidden; /* Важно для корректного отображения границ оверлея */
    z-index: 1;
}

.booking-cell:last-child {
    border-right: none;
}

.booking-cell:hover {
    background: #f1f5f9;
}

.booking-cell.selectable:hover {
    background: #e0f2fe;
}

/* Подсветка всей строки времени при наведении - верхний/нижний бордер */
/* Менее ярко выраженный бордер для более мягкого визуального эффекта */
.booking-cell.time-row-highlight-top {
    border-top: 1px solid rgba(59, 130, 246, 0.5) !important;
}

.booking-cell.time-row-highlight-bottom {
    border-bottom: 1px solid rgba(59, 130, 246, 0.5) !important;
}

.time-cell.time-row-highlight-top {
    border-top: 1px solid rgba(59, 130, 246, 0.5) !important;
}

.time-cell.time-row-highlight-bottom {
    border-bottom: 1px solid rgba(59, 130, 246, 0.5) !important;
}

/* Выбранные слоты */
.booking-cell.selected {
    background: var(--selected-bg);
    border-color: #bfdbfe;
}

.booking-cell.selecting {
    background: #bfdbfe;
}

/* Прошедшее время (неактивно) */
.booking-cell.past,
.booking-cell.occupied {
    background-color: #f8fafc;
    color: #cbd5e1;
    cursor: default;
    pointer-events: none;

    background-image: repeating-linear-gradient(
        -55deg,
        transparent 0px,
        transparent 6px,
        #e2e8f0 6px,
        #e2e8f0 8px
    );
}

@media (max-width: 768px) {
  .booking-cell.past,
  .booking-cell.occupied {
    background-image: repeating-linear-gradient(
        -55deg,
        transparent 0px,
        transparent 8px,
        #e2e8f0 8px,
        #e2e8f0 10px
    );
  }
}

/* ============================
   Блок информации поверх выделения
   ============================ */
.selection-overlay {
    position: absolute;
    /* Позиционирование (top, left, width, height) задается через JS */
    pointer-events: none; /* Пропускает клики сквозь себя к ячейкам */
    background-color: rgba(30, 41, 59, 0.9);
    border-radius: 8px; /* Немного увеличил для мягкости, можно 6px */
    z-index: 20;
    display: none; /* Скрыт по умолчанию, включается JS */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden; /* Важно для скругления углов */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* ВАЖНО: Добавляем box-sizing, чтобы padding не ломал ширину */
    box-sizing: border-box; 
    
    /* Плавная анимация */
    transition: width 0.1s ease, height 0.1s ease, top 0.1s ease, left 0.1s ease;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 6px 8px; /* Чуть увеличил отступы */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px; /* Чуть увеличил отступ между строками */
    /* Убрал фиксированную ширину, чтобы контент мог дышать */
}

.overlay-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    /* Убрал white-space: nowrap, чтобы текст переносился в длинных блоках */
}

.overlay-price {
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.2;
    /* Убрал white-space: nowrap */
}

/* ============================
   Блок "Занято" (визуальный)
   ============================ */
.occupied-block {
    position: absolute;
    left: 2px;
    right: 2px;
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border: 1px solid #f87171;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #991b1b;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 4px;
    display: none;
}

/* ============================
   Модальное окно
   ============================ */
.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.booking-modal.active {
    display: flex;
}

.booking-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.25rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.booking-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #64748b;
    font-size: 0.875rem;
}

.summary-value {
    font-weight: 500;
    color: #1e293b;
}

.summary-total {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn-book {
    flex: 1;
}

.btn-cancel {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

/* ============================
   Адаптивность (Мобильные)
   ============================ */
@media (max-width: 768px) {
    .booking-info-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .selected-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calendar-header {
        padding: 12px 12px 14px;
    }

    .calendar-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        width: 100%;
        align-items: center;
    }

    .calendar-nav .nav-week-label {
        grid-row: 1;
        grid-column: 1 / -1;
        font-size: 0.85rem;
        min-width: 0;
        text-align: center;
        padding: 2px 0;
    }

    .calendar-nav .nav-prev {
        grid-row: 2;
        grid-column: 1;
    }

    .calendar-nav .nav-next {
        grid-row: 2;
        grid-column: 2;
    }

    .calendar-nav .nav-today {
        grid-row: 2;
        grid-column: 3;
    }

    .calendar-nav .nav-btn {
        padding: 8px 6px;
        font-size: 0.8rem;
        min-width: 0;
    }

    .booking-calendar {
        max-height: none;
        /* Без фиксированной высоты — календарь растёт по контенту, скролл только у страницы */
        min-height: 0;
        border-radius: 0;
        --cell-height: 32px !important;
        /* Узкая колонка времени, чтобы 1+7 колонок помещались на экране 360px+ */
        --time-column-width: 48px;
    }

    /* На мобильном сужаем сетку: 1 колонка времени + 7 дней в одну ширину экрана (без горизонтальной прокрутки на 360px+) */
    .calendar-grid-container {
        overflow-x: auto; /* прокрутка только если экран уже 360px (см. ниже) */
    }

    .calendar-grid {
        min-width: 0;
        width: 100%;
        grid-template-columns: var(--time-column-width) repeat(7, minmax(0, 1fr));
    }

    .sticky-grid {
        grid-template-columns: var(--time-column-width) repeat(7, minmax(0, 1fr));
    }

    /* В узких ячейках — компактный текст, без переноса */
    .day-header {
        padding: 8px 4px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .day-name {
        font-size: 0.65rem;
        margin-right: 2px;
    }

    .day-date {
        font-size: 0.65rem;
    }

    .time-cell {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .corner-cell {
        padding: 8px 4px;
    }

    .total-amount {
        font-size: 1.25rem;
    }

    .booking-summary-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .booking-summary-bar__info {
        gap: 12px;
    }

    .booking-summary-bar__action .booking-summary-bar__btn {
        width: 100%;
    }

    .booking-page {
        padding-bottom: 100px;
    }

}

/* Экран уже 360px: сохраняем горизонтальную прокрутку, сетка не сжимается ниже минимума */
@media (max-width: 359px) {
    .calendar-grid {
        min-width: 320px;
        width: auto;
        grid-template-columns: var(--time-column-width) repeat(7, minmax(36px, 1fr));
    }

    .sticky-grid {
        grid-template-columns: var(--time-column-width) repeat(7, minmax(36px, 1fr));
    }

    .booking-calendar {
        --time-column-width: 44px;
    }
}

/* ============================
   Бейдж информации (Badge) — не обрезается ячейкой
   ============================ */
/* Ячейка с бейджем: разрешаем выход содержимого за границы */
.booking-cell.selection-badge-cell {
    overflow: visible;
    z-index: 5;
}

.selection-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: #1e293b;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 8px;
    
    z-index: 25;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    animation: fadeInBadge 0.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInBadge {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.selection-badge .badge-time {
    font-weight: 700;
    margin-bottom: 1px;
}

.selection-badge .badge-price {
    font-weight: 500;
    opacity: 0.95;
}


/* Обертка для закрепленной шапки (ширина и left задаются в JS по видимой области сетки; top — под .calendar-header) */
.calendar-sticky-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
    background-color: #fff;
    box-shadow: 0 0px 4px rgba(0,0,0,0.1);
    display: none;
    overflow: hidden; /* Обрезка при горизонтальном скролле */
}

/* Сетка внутри шапки: та же раскладка; min-width в JS; сдвиг через transform для точной синхронизации на мобильных */
.sticky-grid {
    display: grid;
    grid-template-columns: var(--time-column-width) repeat(7, minmax(100px, 1fr));
    overflow: visible;
    width: 100%;
    will-change: transform;
}

/* Заголовки внутри шапки (высота — по контенту, без var(--header-height)) */
.sticky-grid .corner-cell {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-right: 2px solid #e2e8f0;
    padding: 12px 8px;
    min-height: 52px;
    box-sizing: border-box;
}

.sticky-grid .day-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 8px;
    min-height: 52px;
    box-sizing: border-box;
}

/* ============================
   Блок выбора студии
   ============================ */
.studio-selector {
    margin-bottom: 2rem;
}

.studio-selector__title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
}

/* Горизонтальная прокрутка (мобильный и десктоп) */
.studio-selector__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
}

.studio-selector__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.studio-selector__card {
    flex: 0 0 auto;
    width: min(320px, 85vw);
    min-width: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.studio-selector__card--link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.studio-selector__card--current {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.studio-selector__card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.studio-selector__image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56%;
    overflow: hidden;
    background: #f1f5f9;
}

.studio-selector__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.studio-selector__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    height: 120px;
}

.studio-selector__placeholder-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.studio-selector__body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.studio-selector__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.studio-selector__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.studio-selector__price-period {
    font-weight: 400;
    font-size: 0.875rem;
    color: #64748b;
}

.studio-selector__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.studio-selector__badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--primary-color);
    border-radius: 6px;
    align-self: flex-start;
}

.studio-selector__cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
}

.studio-selector__card--link:hover .studio-selector__cta {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .studio-selector__card {
        width: min(300px, 75vw);
        min-width: 220px;
    }
}