/* Стили для разделов программ */
.program-selection, .master-program-selection {
width: 100%;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1C2526 0%, #1A1A1A 50%, #2A1A2E 100%);
    padding-bottom: 170px;
    padding-top: 15px;
}
.skipbtn{
      background-color: #603d36 !important;
    font-family: "ProximaNova-Bold", Sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px !important;
    margin-bottom: 100px;
    padding: 20px !important;
    margin-top: 40px !important;
}
.program-selection h1, .master-program-selection h2 {
  margin-bottom: 20px;
    font-size: 24px;
    color: #ffffff;
    font-family: "ProximaNova-Bold", sans-serif;
}

.master-program-selection p {
    font-size: 14px;
    color: #ffffff;
    margin: 5px 0;
}

/* Стили для списка программ */
.program-list {
    flex: 1;
    overflow-y: auto; /* Разрешаем скролл внутри списка */
    width: 100%;
    margin: 0;
    padding: 0 5px;
    box-sizing: border-box;

}

/* Стили скроллбара */
.program-list::-webkit-scrollbar {
    width: 6px;
}

.program-list::-webkit-scrollbar-track {
    background: #333;
}

.program-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.program-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Стили для карточки программы */
.program-item {
   border: 1px solid #ffffff1f;
    background: linear-gradient(135deg, #1C2526 0%, #1A1A1A 50%, #2A1A2E 100%);
    border-radius: 10px;
    padding: 8px;
    margin: 5px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex
;
    flex-direction: column;
    position: relative;
    touch-action: manipulation;
}

/* Отключаем hover на сенсорных устройствах */
@media (hover: none) and (pointer: coarse) {
    .program-item:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        cursor: default;
    }
}

/* Контейнер для аватара и названия */
.program-item .avatar-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* Аватар */
.program-item .program-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 5px;
    object-fit: cover;
    touch-action: none; /* Запрещаем масштабирование */
}

/* Название программы */
.program-item .program-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-left: 5px;
}

/* Контейнер для описания */
.program-item .program-description-container {
    margin: 0 5px 5px 46px;
    text-align: left;
}

/* Заголовок "Что включено в программу" */
.program-item .description-title {
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 3px 0;
}

/* Краткое и полное описание */
.program-item .program-description {
    font-size: 12px;
    color: #fff;
}

/* Краткое описание */
.program-item .program-description.short {
    display: block;
}

/* Полное описание (горизонтальный список) */
.program-item .program-description.full {
       display: none;
    flex-wrap: wrap;
    gap: 3px;
    margin-left: -43px;
    padding-bottom: 14px;
    padding-top: 15px;
}

/* Элемент описания */
.program-item .description-item {
    display: inline-flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
}

/* Кнопка "Раскрыть список" */
.program-item .toggle-description {
    margin-top: 3px;
    padding: 3px 8px;
    background-color: #61CE70;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.3s ease;
    touch-action: manipulation; /* Разрешаем только клики */
}

.program-item .toggle-description:hover {
    background-color: #e03562;
}

/* Контейнер для цены и кнопки */
.program-item .price-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 5px;
}

/* Цена */
.program-item .program-price {
    font-size: 12px;
    color: #ff9500;
}

/* Кнопка "Записаться" */
.program-item .book-button {
    padding: 3px 8px;
    background-color: #fe3c72;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    transition: background-color 0.3s ease;
    touch-action: manipulation; /* Разрешаем только клики */
}

.program-item .book-button:hover {
    background-color: #e03562;
}

/* Кнопка "Пропустить" в masterProgramSelection */
.master-program-selection button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #fe3c72;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    touch-action: manipulation; /* Разрешаем только клики */
}

.master-program-selection button:hover {
    background-color: #e03562;
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
    .program-item {
        width: auto;
    }

    .program-item .program-avatar {
        width: 36px;
        height: 36px;
		display: none;
    }

    .program-item .program-name {
        font-size: 20px;
    }

    .program-item .program-description-container {
        margin-left: 46px;
    }

    .program-item .description-title {
              font-size: 14px;
        background: white;
        color: black;
        width: 209px;
        text-align: center;
        border-radius: 20px;
        margin-left: -40px;
    }

    .program-item .program-description {
        font-size: 13px;
		margin-left: -40px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .program-item .description-item {
        font-size: 15px;
        padding: 3px 6px;
		        white-space: pre-wrap;
    }

    .program-item .toggle-description {
		margin-left: -40px;
              padding: 6px 11px;
      font-size: 14px;
    }

    .program-item .program-price {
       font-size: 16px;
    }

    .program-item .book-button {
       padding: 13px 16px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .program-item {
        width: 100%;
    }

    .program-item .program-avatar {
        width: 32px;
        height: 32px;
    }

    .program-item .program-name {
        font-size: 13px;
    }

    .program-item .program-description-container {
        margin-left: 42px;
    }

    .program-item .description-title {
        font-size: 11px;
    }

    .program-item .program-description {
        font-size: 11px;
    }

    .program-item .description-item {
        font-size: 9px;
        padding: 2px 5px;
    }

    .program-item .toggle-description {
        padding: 2px 6px;
        font-size: 9px;
    }

    .program-item .program-price {
        font-size: 11px;
    }

    .program-item .book-button {
                padding: 6px 8px;
        font-size: 16px;
    }
}