* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;
    padding: 0;

    height: 100%;

    font-family: Arial, sans-serif;

}


body {

    display: flex;

    flex-direction: column;

}



/* ---------- HEADER ---------- */


header {

    background: rgba(0, 119, 182, 0.95);

    color: white;

    padding: 10px 30px;

}



.header-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

}



.logo-block {

    display: flex;

    align-items: center;

}



.logo-block img {

    width: 60px;

    height: 60px;

    object-fit: contain;

    margin-right: 20px;

}



.logo-block h1 {

    margin: 0;

    font-size: 24px;

    white-space: nowrap;

}



.phone {

    font-size: 20px;

    font-weight: 600;

    white-space: nowrap;

}



/* ---------- MENU ---------- */


nav {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    position: relative;

    flex-wrap: wrap;

    margin: 10px -30px -10px;

    padding: 10px;

    background: rgba(0,0,0,0.12);

}



nav a {

    color: white;

    text-decoration: none;

    font-size: 20px;

}



nav a:hover {

    text-decoration: underline;

}



.dropdown {

    position: relative;

}



.dropbtn {

    background: none;

    border: none;

    color: white;

    font-size: 20px;

    cursor: pointer;

    font-family: inherit;

    padding: 0;

}



.dropbtn:hover {

    text-decoration: underline;

}



/* ---------- DROPDOWN ---------- */


.dropdown-content {

    display: none;

    position: absolute;

    top: 100%;

    left: 50%;

    transform: translateX(-50%);

    min-width: 380px;

    background: white;

    border-radius: 8px;

    box-shadow: 0 5px 20px rgba(0,0,0,.2);

    overflow: hidden;

    z-index: 1000;

}



.dropdown-content a {

    display: block;

    color: #333;

    text-decoration: none;

    padding: 14px 18px;

    border-bottom: 1px solid #eee;

    font-size: 17px;

}



.dropdown-content a:hover {

    background: #f2f8ff;

}



.dropdown-content.show {

    display: block;

}



/* ---------- MAIN SCREEN ---------- */


.hero {

    flex: 1;

    background-image: url("../images/theme_pool.jpeg");

    background-size: cover;

    background-position: center;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    overflow: hidden;

}



.hero-title h2 {

    margin: 0;

    font-size: 64px;

    line-height: 1.15;

    font-weight: 700;

    color: white;

    text-shadow: 0 3px 10px rgba(0,0,0,0.8);

}



.hero-subtitle {

    position: absolute;

    bottom: 35px;

    width: 100%;

}



.hero-subtitle p {

    margin: 0;

    font-size: 28px;

    font-weight: 600;

    color: white;

    text-shadow: 0 3px 8px rgba(0,0,0,0.8);

}

/* ---------- TRAINERS PAGE ---------- */


.trainers-page {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 40px 20px;

    text-align: center;

    min-height: calc(100vh - 120px);

    background: white;

}



.page-title {

    width: 100%;

    text-align: center;

    font-size: 40px;

    color: #333;

    margin: 0 0 30px 0;

}



/* карточка тренера */


.trainers-page .trainer-card {

    width: 400px;

    margin: 0 auto;

    background: white;

    border-radius: 20px;

    padding: 25px;

    border: 1px solid #d9eaf2;

    box-shadow: 0 8px 25px rgba(0,119,182,0.15);

    display: flex;

    flex-direction: column;

    align-items: center;

}



.trainers-page .trainer-card img {

    width: 350px;

    height: 450px;

    object-fit: cover;

    border-radius: 15px;

}



.trainers-page .trainer-info {

    width: 100%;

    margin-top: 15px;

    text-align: center;

    color: #333;

}



.trainers-page .trainer-info h3 {

    font-size: 38px;

    color: #333;

    margin: 0 0 8px 0;

}



.trainers-page .trainer-info h4 {

    font-size: 28px;

    color: #333;

    margin: 0 0 25px 0;

}



.trainers-page .trainer-info p {

    color: #333;

    font-size: 20px;

    line-height: 1.6;

}



.trainers-page .trainer-info ul {

    padding-left: 25px;

    text-align: left;

    color: #333;

    font-size: 20px;

    line-height: 1.6;

}

.trainer-section {
    text-align: left;
}

.indent {
    margin-left: 25px;
}


/* ---------- ABOUT / EDUCATION PAGES ---------- */


.about-page {

    max-width: 1100px;

    margin: 30px auto;

    padding: 40px 60px;

    line-height: 1.6;

}



.about-page h3 {

    color: #0077b6;

    margin-top: 35px;

}



.about-page p,
.about-page li {

    font-size: 18px;

    color: #333;

}



.about-page .page-title {

    width: 100%;

    text-align: center;

    font-size: 40px;

    color: #333;

    margin: 0 0 30px 0;

}



.info-block {

    margin-top: 25px;

}



.info-block p {

    margin-bottom: 20px;

    line-height: 1.6;

}



/* ---------- MOBILE ---------- */


@media (max-width:700px) {


    header {

        padding: 10px 15px;

    }


    .header-top {

        flex-direction: column;

        align-items: center;

        justify-content: center;

    }


    .logo-block {

        flex-direction: column;

        align-items: center;

    }


    .logo-block img {

        width: 45px;

        height: 45px;

        margin: 0 0 8px 0;

    }


    .logo-block h1 {

        font-size: 16px;

        line-height: 1.2;

        white-space: nowrap;

        text-align: center;

    }


    .phone {

        font-size: 15px;

        margin-top: 8px;

    }


    nav {

        width: calc(100% + 30px);

        margin-left: -15px;

        margin-right: -15px;

        padding: 10px 15px;

        flex-direction: column;

        gap: 8px;

    }


    nav a,
    .dropbtn {

        width: 90%;

        max-width: 350px;

        min-height: 35px;

        padding: 6px 10px;

        font-size: 14px;

        font-weight: 600;

        border-radius: 8px;

        background: rgba(255,255,255,.18);

        display: flex;

        align-items: center;

        justify-content: center;

        text-align: center;

        line-height: 1.2;

    }


    .dropdown {

        width: 90%;

        max-width: 350px;

    }


    .dropdown .dropbtn {

        width: 100%;

    }


    .dropdown-content {

        position: static;

        transform: none;

        width: 100%;

        min-width: 0;

        margin-top: 8px;

    }


    .dropdown-content a {

        width: 100%;

        padding: 5px 8px;

        font-size: 12px;

        background: white;

    }


    .hero {

        min-height: 500px;

    }


    .hero-title h2 {

        font-size: 36px;

        line-height: 1.2;

    }


    .hero-subtitle {

        bottom: 20px;

        padding: 0 15px;

    }


    .hero-subtitle p {

        font-size: 18px;

    }


    .trainers-page {

        padding: 25px 10px;

    }


    .page-title {

        font-size: 32px;

    }


    .trainers-page .trainer-card {

        width: 95%;

        padding: 15px;

    }


    .trainers-page .trainer-card img {

        width: 280px;

        height: 360px;

    }


    .about-page {

        padding: 25px 15px;

    }


}

@media (max-width:700px) {

    nav > a,
    nav > .dropdown {

        width: 90%;

        max-width: 350px;

    }


    nav a,
    .dropbtn {

        display: flex;

        align-items: center;

        justify-content: center;

        width: 100%;

        min-height: 35px;

        padding: 6px 10px;

        font-size: 14px;

        font-weight: 600;

        border-radius: 8px;

        background: rgba(255,255,255,.18);

        text-align: center;

    }


    .dropdown .dropbtn {

        width: 100%;

    }

}

/* ---------- ADDITIONAL MOBILE FIXES ---------- */


@media (max-width:700px) {


    /* чтобы длинная кнопка меню красиво переносилась */

    .dropbtn {

        white-space: normal;

        overflow-wrap: break-word;

    }


    /* чтобы все кнопки были одинакового вида */

    nav > a,
    nav > .dropdown {

        display: flex;

        justify-content: center;

        align-items: center;

    }


    /* чтобы кнопки не прилипали к краям */

    nav a,
    .dropbtn {

        box-shadow: none;

    }


    /* выпадающий список под кнопкой */

    .dropdown-content.show {

        display: block;

    }

    .trainers-page .trainer-info h3 {

        font-size: 30px;

    }


    .trainers-page .trainer-info h4 {

        font-size: 22px;

    }


    .trainers-page .trainer-info p,
    .trainers-page .trainer-info ul {

        font-size: 17px;

    }


}

@media (max-width:700px) {

    .dropbtn {

        display: flex !important;

        align-items: center !important;

        justify-content: center !important;

        width: 100% !important;

        min-height: 35px !important;

        padding: 6px 10px !important;

        font-size: 14px !important;

        font-weight: 600 !important;

        border-radius: 8px !important;

        border: 1px solid rgba(255,255,255,.4) !important;

        background: rgba(255,255,255,.18) !important;

        color: white !important;

        text-align: center !important;

        line-height: 1.2 !important;

        font-family: Arial, sans-serif !important;

        appearance: none !important;

    }


    .dropdown {

        width: 90% !important;

        max-width: 350px !important;

    }

}