/* Общие стили для табов */
.tabs-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* Вертикальное меню слева */
.tabs-menu {
    flex: 0 0 300px;
    min-width: 250px;
}

.tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    border-right: 2px solid #eee;
}

.tab-nav-item {
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.tab-nav-item:hover {
    background-color: rgba(95, 95, 95, 0.6);
    border-left-color: #df0000;
}

.tab-nav-item.active {
    background-color: rgb(95, 95, 95);
    border-left-color: #df0000;
    font-weight: 600;
}

.tab-number {
    font-size: 14px;
    color: #ffffff;
    margin-right: 15px;
    font-weight: 500;
    min-width: 30px;
}

.tab-nav-item.active .tab-number {
    color: rgb(230, 230, 230);
    font-weight: 700;
}

.tab-title {
    display: block;
	color: rgb(230, 230, 230);
	font-family: "PFDin";
	font-size: 24px;
	font-weight: 500;
}

.tab-nav-item.active .tab-title {
    color: rgb(230, 230, 230);
}

/* Контент табов справа */
.tabs-content {
    flex: 1;
    min-width: 0; /* Для корректного flex */
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для контента табов */
.tab-text {
    display: block;
    color: rgb(230, 230, 230);
    font-family: "PFDin", sans-serif;
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;

    /* Ключевые свойства для выравнивания */
    text-align: justify; /* Выравнивание по ширине */
    word-wrap: break-word; /* Перенос длинных слов */
}

.tab-text h3 {
    display: block;
	color: rgb(230, 230, 230);
	font-family: "PFDin";
	font-size: 23px;
    line-height: 1.2;
	font-weight: 500;
	margin-bottom: 20px;
}

.tab-text p {
    margin-bottom: 20px;
    line-height: 1.2;
}


.tab-text li:before {
    content: "•";
    color: #ff3366;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Стили для карточек направлений */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.direction-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.direction-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.direction-card h3 {
    color: #000000;
    margin: 10px 0;
    font-size: 20px;
}

.direction-card p {
    color: #000000;
    margin-bottom: 15px;
}

.direction-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.direction-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #000000;
}

.direction-list li:before {
    content: "✓";
    color: #ff3366;
    margin-right: 10px;
}

/* Стили для карточек тренеров */
.coaches-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.coach-card {
    display: flex;
    gap: 25px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    align-items: center;
}

.coach-photo {
    flex: 0 0 150px;
}

.coach-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff3366;
}

.coach-info {
    flex: 1;
}

.coach-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.coach-spec {
    color: #ff3366;
    font-weight: 600;
    margin-bottom: 8px;
}

.coach-exp {
    color: #666;
    margin-bottom: 15px;
}

.coach-desc {
    color: #555;
    line-height: 1.6;
}

/* Стили для расписания */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.schedule-table th {
    background-color: #ff3366;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #ffffff;
}

.schedule-table tr:hover {
    background-color: rgba(255, 51, 102, 0.05);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tabs-container {
        flex-direction: column;
        gap: 30px;
    }

    .tabs-menu {
        flex: none;
        width: 100%;
    }

    .tabs-nav {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

    .tab-nav-item {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 3px solid transparent;
        margin-bottom: 0;
        margin-right: 20px;
        padding: 15px 20px;
        white-space: nowrap;
    }

    .tab-nav-item.active {
        border-left: none;
        border-bottom-color: #ff3366;
    }

    .tab-nav-item:hover {
        border-left-color: transparent;
        border-bottom-color: rgba(255, 51, 102, 0.3);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .coach-card {
        flex-direction: column;
        text-align: center;
    }

    .coach-photo {
        flex: none;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }

    .schedule-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .tab-nav-item {
        padding: 12px 15px;
        font-size: 14px;
    }

    .tab-number {
        font-size: 12px;
        margin-right: 10px;
        min-width: 25px;
    }

    .tab-title {
        font-size: 23px;
    }

    .direction-card,
    .coach-card {
        padding: 20px;
    }
}