/* 

@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-UkraineHead-Light.otf') format('opentype');
font-weight: 300;
}
@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-UkraineHead-Regular.otf') format('opentype');
font-weight: 400;
}
@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-UkraineHead-Medium.otf') format('opentype');
font-weight: 500;
}
@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-UkraineHead-Bold.otf') format('opentype');
font-weight: 700;
} */


/* ===== e-Ukraine Head: усі товщини ===== */
@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-Ukraine-Light.otf') format('opentype');
font-weight: 300;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-Ukraine-Regular.otf') format('opentype');
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-Ukraine-Medium.otf') format('opentype');
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-Ukraine-Bold.otf') format('opentype');
font-weight: 700;
font-style: normal;
font-display: swap;
}

/* === окремо web-версія жирного для мобільних === */
@font-face {
font-family: 'e-Ukraine Head';
src: url('../fonts/e-ukrainehead-bold_w.woff2') format('woff2'),
url('../fonts/e-ukrainehead-bold_w.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
}



/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: #fff;
    overflow-x: hidden;
    background-color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section {
    padding: 8rem 3rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-dark {
    background-color: rgba(0, 0, 0, 0.85);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: 3px;
}

.section-title span {
    font-weight: 600;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== VIDEO BACKGROUND ===== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.77vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.7);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0);
    transition: all 0.4s ease;
    backdrop-filter: blur(0px);
}

header.scrolled {
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.logo span {
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 0 3rem;
    max-width: 800px;
    margin-top: 10rem;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.hero h1 span {
    font-weight: 600;
    display: block;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero h2 span {
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.cta-button, .cta-button-small, .cta-button-large {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.cta-button-small {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cta-button-large {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    letter-spacing: 2px;
}

.cta-button:hover, .cta-button-small:hover, .cta-button-large:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cta-button::before, .cta-button-small::before, .cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover::before, .cta-button-small:hover::before, .cta-button-large:hover::before {
    left: 100%;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-btn i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* ===== STATS ===== */
.stats {
    display: flex;
    padding: 3rem;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ===== SCHEDULE ===== */
.schedule-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.schedule-day {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.schedule-day h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-item {
    margin-bottom: 1.5rem;
}

.schedule-time {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.schedule-class {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== TRAINERS SECTION ===== */
.trainers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.trainer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    transition: all 0.4s ease;
    text-align: center;
}

.trainer-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.trainer-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trainer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.trainer-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trainer-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* ===== PHILOSOPHY SECTION ===== */
.philosophy-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.trainer-photo {
    position: sticky;
    top: 120px;
}

.trainer-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trainer-info {
    text-align: center;
}

.trainer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.trainer-title {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.philosophy-text {
    padding-top: 1rem;
}

.pillars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.pillar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
}

.pillar p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== STUDENTS SECTION ===== */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.student-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: left;
}

.student-card:hover {
    border-left-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.student-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.student-achievement {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.student-quote {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== JOIN TRAINING SECTION ===== */
.training-info {
    max-width: 600px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
}

.location-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.info-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.info-content {
    flex: 1;
}

.info-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.trainers-contact {
    margin-top: 4rem;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.trainers-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trainer-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.trainer-contact-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.trainer-contact-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.trainer-contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-contact-info {
    flex: 1;
}

.trainer-contact-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.trainer-contact-title {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trainer-contact-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.trainer-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trial-session {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    border-radius: 8px;
}

.trial-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trial-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Cormorant Garamond', serif;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* ===== FOOTER ===== */
footer {
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    font-weight: 600;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
    }

    header.scrolled {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding-top: 6rem;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }

    nav ul li {
        margin: 0 0 2rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.9);
        transition: color 0.3s ease;
    }

    nav ul li a:hover {
        color: #fff;
    }

    .menu-icon {
        display: block;
        position: relative;
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .menu-icon.active {
        transform: rotate(90deg);
    }

    /* Hero */
    .hero {
        padding: 0 1.5rem;
        margin-top: 8rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .cta-button {
        padding: 1.2rem 3rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    /* Stats */
    .stats {
        padding: 2rem 1.5rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Sections */
    .section {
        padding: 6rem 1.5rem 4rem;
        min-height: auto;
        display: block;
    }

    .section-content {
        padding-top: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .section-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    /* Schedule */
    .schedule-container {
        flex-direction: column;
        gap: 3rem;
        margin-top: 2rem;
    }

    .schedule-day {
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: 8px;
    }

    .schedule-day h4 {
        font-size: 1.3rem;
        text-align: center;
    }

    /* Philosophy */
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .trainer-photo {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .trainer-photo img {
        height: 300px;
    }
    
    .pillars-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillar {
        padding: 1.5rem;
    }

    /* Trainers & Students */
    .trainers-grid,
    .students-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trainer-card,
    .student-card {
        padding: 1.5rem;
    }

    /* Join Training */
    .location-info {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .trainers-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .trainer-contact-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .trainer-contact-photo {
        width: 120px;
        height: 120px;
    }
    
    .trial-session {
        padding: 2rem 1.5rem;
    }
    
    .trial-content h3 {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1.5rem;
    }

    .footer-logo {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    /* Video adjustment */
    #background-video {
        filter: brightness(0.6);
    }

    .video-overlay {
        background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.9) 100%);
    }

    
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem 0;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .training-info {
        padding: 1.5rem;
    }
    
    .trainer-contact-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

@media (max-height: 700px) {
    .hero {
        margin-top: 8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (min-width: 769px) {
    .menu-icon {
        display: none;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

/* ===== Mobile menu highlight ===== */
@media (max-width: 768px) {
    nav {
        /* трохи світліше і "преміальніше" */
        background: rgba(0, 0, 0, 0.88);
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
    }

    nav ul li a {
        /* перетворюємо лінк на "тап-зону" */
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 0.95rem 1rem;
        margin: 0.25rem 0;
        color: rgba(255, 255, 255, 0.88);
        background: rgba(255, 255, 255, 0.03);
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.07);
        color: rgba(255, 255, 255, 1);
        transform: translateX(2px);
    }

    /* активний пункт */
    nav ul li a.active {
        background: rgba(255, 255, 255, 0.10);
        color: #fff;
        border-bottom-color: rgba(255, 255, 255, 0.25);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    }

    /* лінію ::after на мобільному краще прибрати */
    nav ul li a::after {
        display: none;
    }

    /* трошки світліший overlay щоб меню "випливало" */
    .menu-overlay.active {
        background: rgba(0, 0, 0, 0.65);
    }
}

html {
scroll-behavior: smooth;
scroll-padding-top: 110px; /* висота fixed header */
}

@media (max-width: 768px) {
html { scroll-padding-top: 90px; }
}

section[id] { scroll-margin-top: 110px; }
@media (max-width: 768px) {
section[id] { scroll-margin-top: 90px; }
}

.menu-overlay { pointer-events: none; }
.menu-overlay.active { pointer-events: auto; }

/* щоб секції не ховались під fixed header */
section[id], .hero[id] { scroll-margin-top: 110px; }
@media (max-width: 768px) {
section[id], .hero[id] { scroll-margin-top: 90px; }
}

html, body { height: 100%; }
body { overflow-y: auto; }

/* 100% прибираємо перехоплення жестів фоном */
.video-container,
.video-overlay,
#background-video {
pointer-events: none !important;
}

/* гарантуємо, що скрол дозволений */
html, body {
height: auto !important;
overflow-y: auto !important;
overscroll-behavior-y: auto;
}

/* інколи допомагає мобільним */
body {
position: relative;
-webkit-overflow-scrolling: touch;
}

.video-fallback {
position:absolute;
inset:0;
background: url("https://images.unsplash.com/photo-1521412644187-c49fa049e84d?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
filter: brightness(0.55);
}

.hidden { display:none; }


@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 380px;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(0, 0, 0, 0.96);
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 90px 24px 24px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 18px;
        min-height: max-content;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .menu-icon {
        position: relative;
        z-index: 1002;
    }

    body.menu-open {
        overflow: hidden;
    }
}


@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 380px;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background: rgba(0, 0, 0, 0.96);
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 90px 24px 32px;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: max-content;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 0;
        opacity: 1;
        transform: none;
    }

    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        pointer-events: none;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-icon {
        position: relative;
        z-index: 1002;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: none !important;
    }
}



.students-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.student-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.student-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.16);
}

.student-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.student-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.student-name {
    margin: 18px 18px 8px;
    font-size: 24px;
    line-height: 1.2;
}

.student-achievement {
    margin: 0 18px 12px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.student-quote {
    margin: 0 18px 20px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.92;
}

@media (max-width: 992px) {
    .students-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .students-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .student-name {
        font-size: 21px;
        margin: 16px 16px 8px;
    }

    .student-achievement {
        margin: 0 16px 10px;
    }

    .student-quote {
        margin: 0 16px 18px;
        font-size: 14px;
        line-height: 1.65;
    }

    .student-photo {
        aspect-ratio: 1 / 1.15;
    }
}