/* --- ОСНОВНІ НАЛАШТУВАННЯ --- */
:root {
    --red: #8b0000;
    --blue: #003a70;
    --gold: #d4af37;
    --dark: #1a1a1a;
    --light: #f9f9f9;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Рішення для білої полоски справа */
html, body { max-width: 100%; overflow-x: hidden; }

body { 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.6; 
    color: #333; 
    overflow-x: hidden; 
}

/* --- HEADER --- */
.main-header { 
    background: var(--red); 
    height: 95px; 
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
}
.main-logo {
    width: 90px;        
    height: 90px;       
    border-radius: 50%; 
    object-fit: cover;  
    display: block;     
    margin: 0 auto;     
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.logo-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
    color: white; 
    min-width: 250px; 
}

.logo-img { 
    height: 90px; 
    width: auto; 
    object-fit: contain; 
}

.logo-title { 
    font-weight: 90; 
    font-size: 1.2rem; 
    white-space: nowrap; 
}

.main-nav { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    min-width: 380px; 
}

.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
}

.main-nav a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    transition: 0.3s; 
}

.main-nav a:hover { 
    color: var(--gold); 
}
.header {
    display: flex;              
    justify-content: space-between; 
    align-items: center;        
    padding: 10px 20px;         
    background-color: #fff;     
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.header {
    display: flex;              
    justify-content: space-between; 
    align-items: center;        
    padding: 10px 20px;         
    background-color: #fff;     
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* Стилі для логотипу */
.main-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Стилі для меню/кнопок */
.main-nav {
    display: flex;
    gap: 15px; 
}

/* Кнопка "Записатися" */
.btn-signup {
    background-color: #0033cc; 
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* --- МОБІЛЬНА ВЕРСІЯ --- */
@media (max-width: 768px) {
    .header {
        flex-direction: column; 
        gap: 15px;              
        padding: 15px;
    }

    .main-nav {
        flex-direction: column; 
        align-items: center;    
        width: 100%;            
    }

    .btn-signup {
        width: 100%;            
        text-align: center;     
        max-width: 200px;       
    }
}

@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: column;  
        align-items: center;     
        justify-content: center;  
        height: auto;             
        padding: 20px 10px;
        box-sizing: border-box;  
    }

    .logo-box,
    .main-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 10px 0;
        float: none;
        position: static;
    }

    .btn-signup,
    .nav-link {
        display: inline-block;
        width: auto;           
        padding: 12px 24px;
        margin: 5px;           
        position: static;
        left: auto;
        right: auto;
        text-align: center;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    /* Зменшити ширину контейнера хедера */
    .header-container {
        padding: 0 10px;       /* менші бокові відступи */
        max-width: 100%;       /* займає всю ширину екрану */
    }

    /* Логотип трохи компактніший */
    .main-logo, .logo-img {
        width: 60px;
        height: 60px;
        border-radius: 0;      /* без кола */
        background: none;
        object-fit: contain;
    }

    /* Кнопки мов та приєднатися в одному ряду */
    .header-right {
        display: flex;
        flex-wrap: nowrap;      /* все в одному рядку */
        justify-content: flex-end; /* вирівняти вправо */
        gap: 6px;               /* компактний відступ між кнопками */
        width: auto;            /* не обмежувати ширину */
        margin-top: 0;          /* прибрати зайві відступи зверху */
    }

    /* Кнопка "Приєднатися" не буде виходити за екран */
    .btn-header-join {
        flex: 0 1 auto;         /* не розтягується, під текст */
        min-width: 0;           /* скасовує обмеження */
        padding: 8px 16px;      /* компактніше */
        font-size: 0.75rem;
    }

    /* Кнопки вибору мови також компактніші */
    .lang-selector {
        flex: 0 1 auto;
        gap: 4px;               /* менший відступ між кнопками */
    }
}

.header-right { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 15px; 
    min-width: 320px; 
}

.lang-selector { 
    display: flex; 
    gap: 2px; 
    background: rgba(0,0,0,0.2); 
    padding: 4px; 
    border-radius: 20px; 
}

.lang-node { 
    min-width: 35px; 
    background: none; 
    border: none; 
    color: white; 
    cursor: pointer; 
    padding: 5px; 
    border-radius: 15px; 
    font-size: 0.75rem; 
    font-weight: bold; 
}

.lang-node.active { 
    background: var(--gold); 
    color: black; 
}

.btn-header-join { 
    background: var(--gold); 
    color: black; 
    width: 150px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 900; 
    font-size: 0.85rem; 
    white-space: nowrap; 
    transition: 0.3s;
}
.btn-header-join {
    background: var(--gold);
    color: black;
    width: 150px; 
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.85rem;
    white-space: nowrap; 
    transition: 0.3s;       
}

.btn-header-join:hover {
    background: white;
}
/* --- HERO SECTION --- */
.hero-section { 
    height: 100vh; 
    background: url('https://78884ca60822a34fb0e6-082b8fd5551e97bc65e327988b444396.ssl.cf3.rackcdn.com/up/2019/03/LGthrow-1552133470-1552133470.jpg') center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
}

.hero-overlay { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
}

.hero-content { 
    position: relative; 
    color: white; 
    text-align: center; 
    z-index: 2;
}

.hero-content h1 { 
    font-size: clamp(3rem, 8vw, 5rem); 
    font-weight: 900; 
    margin-bottom: 10px;
}

.hero-subtext { 
    color: var(--gold); 
    letter-spacing: 5px; 
    font-weight: bold; 
    text-transform: uppercase;
}

/* --- СЕКЦІЇ ТА КОНТЕЙНЕРИ --- */
.section { 
    padding: 80px 0; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 30px; 
}

.section-title { 
    margin-bottom: 40px; 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: var(--blue); 
    text-align: center; 
}

.bg-light { 
    background: var(--light); 
}

/* --- ПРО НАС (ФІКС ФОТО ТА ТЕКСТУ) --- */
.about-flex { 
    display: flex; 
    gap: 50px; 
    align-items: center; 
    flex-wrap: wrap; 
}

.about-text-box { 
    flex: 1.2; 
    min-width: 300px; 
}

.about-img-box { 
    flex: 0.8; 
    min-width: 300px; 
}

.about-img-box img { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
    display: block;
}

/* --- РОЗКЛАД (РІВНІ КНОПКИ) --- */
.schedule-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 20px; 
}

.schedule-card { 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    text-align: center; 
    border-bottom: 5px solid var(--red); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    min-height: 420px;
}

.card-loc { 
    color: var(--red); 
    font-weight: bold; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
}

.card-group { 
    font-size: 1.4rem; 
    color: var(--blue); 
    margin-bottom: 15px; 
    min-height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.card-time { 
    font-weight: 900; 
    font-size: 1.1rem; 
    color: #333; 
    margin-bottom: 10px; 
}

.time-val-box { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    margin-bottom: 20px; 
    font-weight: 700; 
}

.btn-card-sm { 
    background: var(--red); 
    color: white; 
    padding: 12px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    width: 100%; 
    transition: 0.3s; 
}

.btn-card-sm:hover { 
    background: var(--blue); 
}

/* --- FITNESS WIDE CARD --- */
.fitness-wide-card { 
    background: linear-gradient(135deg, #fffdf0 0%, #fff6c9 100%); 
    border: 3px solid var(--gold); 
    border-radius: 20px; 
    padding: 40px; 
    margin-top: 40px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.fitness-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.fit-tag { 
    background: var(--gold); 
    color: black; 
    padding: 4px 12px; 
    border-radius: 5px; 
    font-weight: 900; 
    font-size: 0.8rem; 
}

.fit-info h4 { 
    font-size: 2rem; 
    color: var(--blue); 
    margin: 10px 0; 
    font-weight: 900; 
}

.btn-gold-wide { 
    background: var(--gold); 
    color: black; 
    padding: 18px 50px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 900; 
    font-size: 1.1rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: 0.3s;
}

.btn-gold-wide:hover { 
    transform: scale(1.05); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

/* --- ГАЛЕРЕЯ --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.gallery-item { 
    height: 280px; 
    overflow: hidden; 
    border-radius: 15px; 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

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

.gallery-footer { 
    text-align: center; 
    margin-top: 40px; 
}

.btn-insta { 
    display: inline-block; 
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); 
    color: white !important; 
    padding: 15px 45px; 
    border-radius: 50px; 
    text-decoration: none !important; 
    font-weight: 900; 
    transition: 0.3s;
}

.btn-insta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- КОНТАКТНА ФОРМА ТА МАПА (ФІКС ВИРІВНЮВАННЯ) --- */
.contact-grid-new { 
    display: grid; 
    grid-template-columns: 1.4fr 1fr; 
    gap: 30px; 
    align-items: start; /* Щоб права колонка не тягнулася вниз */
}

.map-box { 
    height: 500px; 
    border-radius: 20px; 
    overflow: hidden; 
}

.info-side {
    display: flex;
    flex-direction: column;
}

.nice-form { 
    background: white; 
    padding: 30px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.nice-form h3 {
    margin-bottom: 20px;
    color: var(--blue);
    font-weight: 900;
}

.nice-form input, .nice-form select { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 12px; 
    border: 1px solid #ddd; 
    border-radius: 10px; 
    font-family: inherit;
}

.btn-form { 
    width: 100%; 
    background: var(--red); 
    color: white; 
    border: none; 
    padding: 15px; 
    border-radius: 10px; 
    font-weight: 900; 
    cursor: pointer; 
    transition: 0.3s;
}

.btn-form:hover {
    background: var(--blue);
}

/* СОЦМЕРЕЖІ */
.social-wrapper { 
    margin-top: 15px; 
    text-align: center; 
}

.social-icons-row { 
    display: flex !important; 
    flex-direction: row !important; 
    justify-content: center !important; 
    gap: 15px !important; 
    margin-top: 10px !important;
}

.mini-icon { 
    width: 45px; 
    height: 45px; 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    color: white !important; 
    font-size: 1.3rem; 
    text-decoration: none !important;
    transition: 0.3s;
}

.mini-icon.insta { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.mini-icon.fb { background: #1877F2; }
.mini-icon.tiktok { background: #000; }

/* КОНТАКТИ (МАКСИМАЛЬНО ПІДНЯТО ВГОРУ ДО СОЦМЕРЕЖ) */
.quick-contacts {
    margin-top: 0px; 
    padding-top: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    margin-bottom: 5px; 
}

.contact-item i {
    color: var(--red);
    font-size: 1.2rem;
}

/* --- МЕДІА ЗАПИТИ (АДАПТИВНІСТЬ) --- */
@media (max-width: 1024px) {
    .main-nav { min-width: auto; }
    .header-right { min-width: auto; }
}

@media (max-width: 900px) {
    .main-nav { display: none; } 
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid-new { grid-template-columns: 1fr; }
    .about-flex { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .fitness-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .header-container { padding: 0 10px; }
    .btn-header-join { width: 130px; font-size: 0.75rem; }
    .logo-title { font-size: 1rem; }
    .logo-img { height: 70px; }
    .main-header { height: 80px; }
}
