/* ============ ОБЩИЕ КОМПОНЕНТЫ ============ */

/* Карточки */
.content-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

/* ЗАГОЛОВКИ В КАРТОЧКАХ (<h4>) - ПОЛНАЯ ЛИНИЯ */
.content-card h4 {
    color: #757575;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.content-card h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* ПОЛНАЯ ЛИНИЯ */
    height: 2px;
    background: linear-gradient(to right, #e9ecef, transparent);
}

.content-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Фото галерея */
.photo-gallery {
    margin-top: 1.5rem;
}

.image-container {
    width: 100%;
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    border-color: #9e9e9e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Расписание */
.schedule-column {
    background: white;
    border-radius: 10px;
    padding: 1.2rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.2rem;
}

/* ЗАГОЛОВКИ ДНЕЙ - ПОЛНАЯ ЛИНИЯ */
.schedule-day {
    color: #757575;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.schedule-day:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* ПОЛНАЯ ЛИНИЯ */
    height: 2px;
    background: linear-gradient(to right, #e9ecef, transparent);
}

.class-item {
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    border-left: 4px solid #9e9e9e;
    background: #f8f9fa;
    border-radius: 4px;
}

.class-time {
    font-weight: 600;
    color: #757575;
}

.class-name {
    margin: 0.2rem 0;
}

/* Цены */
.prices-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Отступы между подразделами "РАЗОВОЕ ЗАНЯТИЕ" и "АБОНЕМЕНТЫ" */
#prices > div:first-of-type {
    margin-bottom: 3rem; /* Отступ после "РАЗОВОГО ЗАНЯТИЯ" */
}

/* ПОДЗАГОЛОВКИ В РАЗДЕЛЕ ЦЕН - аналогично direction-title */
#prices h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #757575;
    margin-bottom: 1rem;
    text-align: center;
}

.price-item {
    background: white;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #9e9e9e;
}

.price-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #757575;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #757575;
}

.price-description {
    color: #666;
    margin-top: 0.5rem;
}

/* Направления */
.directions-section {
    margin-top: 1.5rem;
}

.direction-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
    border: 1px solid #e9ecef;
}

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

/* ЗАГОЛОВКИ НАПРАВЛЕНИЙ - БЕЗ ПОДЧЕРКИВАНИЯ */
.direction-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #757575;
    margin-bottom: 1rem;
    text-align: center;
}

.direction-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Тренер */
.trainer-section {
    margin-top: 1.5rem;
}

.trainer-card-main {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.trainer-name-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.trainer-specialty-main {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1.5rem;
}

.trainer-experience,
.trainer-status {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0.5rem auto;
    line-height: 1.6;
}

.achievement-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

/* ЗАГОЛОВКИ ДОСТИЖЕНИЙ (<h5>) - ПОЛНАЯ ЛИНИЯ */
.achievement-section h5 {
    color: #757575;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.achievement-section h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* ПОЛНАЯ ЛИНИЯ */
    height: 2px;
    background: linear-gradient(to right, #e9ecef, transparent);
}

/* ДЛЯ ЦЕНТРИРОВАННЫХ ЗАГОЛОВКОВ ДОСТИЖЕНИЙ */
.achievement-section h5.text-center:after {
    background: linear-gradient(to right, transparent, #9e9e9e, transparent);
    left: 0;
    width: 100%;
}

.achievement-list {
    list-style-type: none;
    padding-left: 0;
}

.achievement-list li {
    padding: 0.4rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.achievement-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #9e9e9e;
    font-weight: bold;
}

.trainer-image-container {
    width: 100%;
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.trainer-image-container:hover {
    border-color: #9e9e9e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.trainer-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.trainer-gallery-img:hover {
    transform: scale(1.03);
}

/* Видео */
.video-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 3px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #000;
}

.video-container:hover {
    border-color: #9e9e9e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: #000;
}

.video-container-16-9 {
    padding-bottom: 56.25%;
}

.video-container-16-9 .video-element {
    object-fit: cover;
}

.video-container-9-16 {
    padding-bottom: 177.78%;
}

.video-container-9-16 .video-element {
    object-fit: contain;
    width: 100% !important;
    background: #000;
}

/* Контакты */
.contacts-section {
    margin-top: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.2rem;
    height: 100%;
}

.contact-icon {
    font-size: 1.8rem;
    color: #757575;
    margin-bottom: 0.8rem;
}

.contact-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #757575;
    margin: 0.5rem 0;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #9e9e9e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    font-size: 1.5rem;
}

.scroll-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

.scroll-to-top:hover {
    opacity: 1;
    background: #757575;
}