html, body {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    scroll-behavior: smooth; /* Плавная прокрутка к секциям при клике на меню */
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: black;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    position: fixed;
}

header .head-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #022038;
    height: 101px;
}

header .head-nav .nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 45%; /* Увеличено с 30%, чтобы длинные пункты меню не слипались */
    align-items: center;
    height: 100%;
}

header .head-nav a {
    color: #fff !important;
}

header .head-nav .logo {
    padding-left: 20px;
}

header .head-nav .logo img {
    width: 130px;
}

header .head-nav .contact {
    padding-right: 20px;
}

header .head-nav .nav .nav-el {
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 4px;
    padding-left: 4px;
    height: 100%;
    transition: all 0.5s;
}

header .head-nav .nav .nav-el:hover {
    background-color: #451315;
}

/* СЕКЦИЯ: ПРИВЕТСТВЕННАЯ */
#start {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-image: url(/images/фон.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 101px; /* Смещаем контент вниз на высоту шапки */
}

#start img {
    width: 460px;
}

#start .img-pass, #start .text-pass {
    width: 50%;
    display: flex;
}

#start .img-pass {
    justify-content: center;
}

#start .text-pass {
    justify-content: center;
    align-items: center; /* Центрируем текст по вертикали */
    color: #fff;
    font-size: 36px;
    font-family: Arial, sans-serif;
}

/* ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ПОЛНОЭКРАННЫХ СЕКЦИЙ */
section {
    width: 100%;
    height: 100vh;             /* Строго на весь экран */
    box-sizing: border-box;     /* Защита от расширения высоты из-за паддингов */
    padding-top: 120px;         /* Отступ сверху, чтобы заголовок не уходил под шапку */
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    font-family: Arial, sans-serif;
    
    /* Флексбокс для выравнивания содержимого по центру */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Скрываем скроллбары, но позволяем карточкам выходить за рамки при масштабировании */
    overflow-y: clip !important; 
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 100%;               /* Флекс сам распределит высоту контента */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

section h2 {
    text-align: center;
    font-size: 28px;
    color: #022038;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    flex-shrink: 0;             /* Заголовок не будет сжиматься */
}

/* Линия под заголовками */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #451315;
    margin: 8px auto 0;
}

/* СЕКЦИЯ: О ШКОЛЕ */
.about-section {
    background-color: #f9f9f9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

#about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/images/поле1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

#about h2 {
    color: #fff;
}

#about .about-content {
    color: #fff;
}

/* СЕКЦИЯ: ТРЕНЕРЫ (ГОРИЗОНТАЛЬНЫЙ ВИД, ОПЫТ СЛЕВА) */
.trainers-section {
    background-color: #fff;
    padding-top: 50px;
}

.trainers-grid {
    display: flex;
    flex-direction: column;     /* Выстраиваем широкие карточки друг под другом */
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 15px 0;           /* Запас пространства сверху/снизу для зума карточек */
}

.trainer-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px 25px;
    width: 100%;
    max-width: 750px;           /* Оптимальная ширина, чтобы контент не сминался */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
    /* Разделяем на левую (опыт) и правую (фото+имя) части */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

/* ЭФФЕКТ НАВЕДЕНИЯ: Красивый аккуратный зум всей карточки */
.trainer-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 15px 30px rgba(2, 32, 56, 0.12); 
    border-color: #451315; 
    z-index: 10; 
}

.trainers-grid:hover .trainer-card:not(:hover) {
    opacity: 0.85;
}

/* Левая часть карточки: Опыт */
.trainer-card .experience {
    flex: 1;                    /* Забирает всё свободное место слева */
    font-size: 13.5px;
    color: #555;
    line-height: 1.5;
    text-align: left;
    padding-right: 15px;
}

.trainer-card .experience p {
    margin: 5px 0;
}

/* Правая часть карточки: Фото, Имя, Должность */
.trainer-info-block {
    width: 240px;               /* Фиксированная ширина правого блока */
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;             /* Защита от сжатия */
    border-left: 1px solid #f0f0f0; /* Вертикальный разделитель */
    padding-left: 25px;
}

.trainer-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;         /* Идеальное круглое фото */
    background-color: transparent; /* Никаких серых рамок по бокам */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Картинка заполняет круг без искажений */
    transition: transform 0.4s ease;
}

.trainer-card:hover .trainer-img img {
    transform: scale(1.05);     /* Легкое приближение лица при наведении */
}

.trainer-card h3 {
    margin: 15px 0 4px;
    color: #022038;
    font-size: 17px;
    text-align: center;
}

.trainer-card .position {
    color: #451315;
    font-weight: bold;
    font-size: 12.5px;
    margin-bottom: 0;
    text-align: center;
}

/* СЕКЦИЯ: МЕТОДИКА (СЕТКА 2х2) */
.services-section {
    background-color: #022038; 
    color: #fff;
}

.services-section h2 {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ровно 2 колонки */
    gap: 25px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.service-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1); 
    border-color: #451315; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 15px;
    line-height: 1;
}

.service-item h3 {
    font-size: 22px;
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    margin: 0;
    font-style: italic; 
}

/* Фоновые картинки для пунктов методик */
.service-item-1 {
    background-image: url(/images/section-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.service-item-1:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/images/section-1.png);
}

.service-item-2 {
    background-image: url(/images/section-2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.service-item-2:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/images/section-2.jpg);
}

.service-item-3 {
    background-image: url(/images/section-3.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.service-item-3:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/images/section-3.jpg);
}

.service-item-4 {
    background-image: url(/images/section-4.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.service-item-4:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(/images/section-4.png);
}

/* СЕКЦИЯ: КОНТАКТЫ */
.contacts-section {
    background-color: #fff;
}

.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.contact-info a {
    color: #451315;
    font-weight: bold;
}

.contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #022038;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form button {
    background-color: #451315;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #022038;
}

/* АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ */
@media (max-width: 768px) {
    header .head-nav .nav {
        display: none; /* Скрываем меню на телефонах */
    }
    
    section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 40px;
        overflow: visible; 
    }

    .container {
        max-height: none;
        overflow: visible;
    }
    
    #start {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    #start .img-pass, #start .text-pass {
        width: 100%;
    }
    
    #start img {
        width: 250px;
    }
    
    #start .text-pass {
        font-size: 22px;
        align-items: center;
        margin-top: 20px;
    }

    /* Мобильная адаптация карточек тренеров */
    .trainer-card {
        flex-direction: column-reverse; /* Фото сверху, опыт под ним */
        gap: 20px;
        max-width: 340px;
        padding: 20px;
    }
    
    .trainer-info-block {
        width: 100%;
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }
    
    .trainer-card .experience {
        padding-right: 0;
    }

    /* Мобильная адаптация методик */
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка вместо двух */
        gap: 15px;
    }
    
    .service-item {
        padding: 20px;
    }

    .services-grid, .contacts-wrapper {
        flex-direction: column;
    }
}