@import url("https://fonts.googleapis.com/css2?family=Dancing+Script&family=Montserrat:wght@400;500;600;700&family=Open+Sans&display=swap");

/* --- РћСЃРЅРѕРІРЅС‹Рµ СЃС‚РёР»Рё Рё РїРµСЂРµРјРµРЅРЅС‹Рµ --- */
:root {
    --main-red: #C4161C;
    --dark-red: #8F0F14;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #3A3A3A;
    --light-accent: #F2B48A;
    --dark-accent: #C07A4A;
    --bg-dark: #1A1A1A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    text-transform: uppercase;
}
.main-nav,
.main-nav a {
    text-transform: none;
}

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

h1, h2, h3 {
    color: var(--main-red);
   font-family: 'Open Sans', sans-serif;

}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

section {
    padding: 60px 0;
}

a {
    color: var(--light-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--white);
}

.btn {
    display: inline-block;
    background-color: var(--main-red);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-red);
    color: var(--white);
}

.hero .btn {
    margin: 5px;
}

/* --- РЁР°РїРєР° СЃР°Р№С‚Р° --- */
.header {
    background-color: var(--black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--dark-red);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo span {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.2;
}

.header nav a {
    color: var(--white);
    margin: 0 15px;
    font-size: 1rem;
    font-weight: 500;
}

.header nav a:hover {
    color: var(--main-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002; /* Above modal overlay */
    position: relative;
}

.phone-number {
    color: var(--white);
    font-weight: 500;
}

.callback-btn {
    background-color: var(--main-red);
    color: var(--white) !important; /* Override general 'a' color */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.7rem;
}
.callback-btn:hover {
    background-color: var(--dark-red);
    color: var(--white) !important;
}

.callback-btn-hero {
    display: none; /* РЎРєСЂС‹С‚Р° РЅР° РґРµСЃРєС‚РѕРїРµ */
}

.hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: 0.4s;
}

/* --- РЎРµРєС†РёСЏ Hero --- */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* --- Рћ РєР»СѓР±Рµ --- */
.about-section {
    background-color: var(--dark-gray);
}
.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- Р&nbsp;Р°СЃРїРёСЃР°РЅРёРµ --- */
.schedule-notice {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 20px;
    color: #aaa;
    font-style: italic;
    display: none; /* РЎРєСЂС‹РІР°РµРј РЅР° РґРµСЃРєС‚РѕРїРµ */
}
.schedule-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #444;
    border-radius: 8px;
}

/* РЎС‚РёР»Рё РґР»СЏ РёР·РѕР±СЂР°Р¶РµРЅРёСЏ СЂР°СЃРїРёСЃР°РЅРёСЏ */
.schedule-image-container {
    text-align: center;
    cursor: pointer;
}

.schedule-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.schedule-image-container:hover img {
    transform: scale(1.02);
}

/* РњРѕРґР°Р»СЊРЅРѕРµ РѕРєРЅРѕ РґР»СЏ РёР·РѕР±СЂР°Р¶РµРЅРёСЏ */
.image-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1002;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1003;
}

/* --- РўСЂРµРЅРёСЂРѕРІРєРё --- */
.training-section {
    background-color: var(--bg-dark);
}
.training-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.training-text {
    flex: 1;
}
.training-image {
    flex: 1;
}
.training-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* --- Р“Р°Р»РµСЂРµСЏ --- */
.gallery-section {
    background-color: var(--dark-gray);
}
.slider-container {
    position: relative;
    max-width: 900px; /* РЁРёСЂРёРЅР° СЃР»Р°Р№РґРµСЂР° */
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    aspect-ratio: 16 / 9; /* Р—Р°РґР°РµРј СЃРѕРѕС‚РЅРѕС€РµРЅРёРµ СЃС‚РѕСЂРѕРЅ, РЅР°РїСЂРёРјРµСЂ 16:9 */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* РњР°СЃС€С‚Р°Р±РёСЂСѓРµС‚ РёР·РѕР±СЂР°Р¶РµРЅРёРµ, С‡С‚РѕР±С‹ РѕРЅРѕ Р·Р°РїРѕР»РЅРёР»Рѕ РєРѕРЅС‚РµР№РЅРµСЂ, РѕР±СЂРµР·Р°СЏ Р»РёС€РЅРµРµ */
    display: block;
}

.slider-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(0,0,0,0.4);
    border: none;
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: rgba(0,0,0,0.7);
}

.prev-btn {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next-btn {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* --- РљРѕРЅС‚Р°РєС‚С‹ --- */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.contacts-info h3 {
    color: var(--light-accent);
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    border: none;
    padding: 0;
    gap: 0;
}
.social-links a:hover {
    opacity: 0.9;
    color: var(--white);
}

.social-link.whatsapp {
    background-color: transparent;
}

.social-link.telegram {
    background-color: transparent;
}

.social-link.vk {
    background-color: transparent;
}

.social-link svg {
    width: 24px;
    height: 24px;
}
.social-link.telegram svg {
    width: 100%;
    height: 100%;
}
.social-link.whatsapp svg {
    width: 100%;
    height: 100%;
}
.social-link.vk svg {
    width: 100%;
    height: 100%;
}
.social-link.max img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.contacts-info .btn {
    margin-top: 25px;
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
}

/* --- РџРѕРґРІР°Р» --- */
.footer {
    background-color: var(--black);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--dark-gray);
}

/* --- Modal styles --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.modal-content {
    background-color: var(--dark-gray);
    margin: auto;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
    text-align: center;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: var(--main-red);
    margin-top: 0;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
    width: calc(100% - 24px); /* Adjust for padding */
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--dark-accent);
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content input[type="text"]::placeholder,
.modal-content input[type="tel"]::placeholder {
    color: #aaa;
}

.modal-content .btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* Close button for modal */
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
}

/* --- Floating Telegram Widget --- */
.telegram-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    z-index: 999;
    transition: transform 0.3s ease;
}

.telegram-widget:hover {
    transform: scale(1.1);
}

.telegram-widget svg {
    width: 100%;
    height: 100%;
}

/* --- РђРґР°РїС‚РёРІРЅРѕСЃС‚СЊ --- */
@media (max-width: 1440px) {
    /* РџСЂРµРІСЂР°С‰Р°РµРј РЅРѕРјРµСЂ С‚РµР»РµС„РѕРЅР° РІ РёРєРѕРЅРєСѓ РЅР° СЌРєСЂР°РЅР°С… 1440px Рё РјРµРЅСЊС€Рµ */
    .header-actions .phone-number {
        font-size: 0; /* РЎРєСЂС‹РІР°РµРј С‚РµРєСЃС‚ */
        width: 28px;
        height: 28px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}

@media (max-width: 1100px) {
    /* РЎРєСЂС‹РІР°РµРј РґРµСЃРєС‚РѕРїРЅСѓСЋ РЅР°РІРёРіР°С†РёСЋ Рё РєРЅРѕРїРєСѓ */
    .main-nav {
        order: 3; /* РџРѕСЂСЏРґРѕРє РґР»СЏ flex, С‡С‚РѕР±С‹ JS РїСЂР°РІРёР»СЊРЅРѕ СЂР°Р±РѕС‚Р°Р» */
    }
    .callback-btn-desktop {
        display: none;
    }

    /* РџРѕРєР°Р·С‹РІР°РµРј РіР°РјР±СѓСЂРіРµСЂ */
    .hamburger {
        display: block;
    }
    
    /* РЎС‚РёР»Рё РґР»СЏ РІС‹РµР·Р¶Р°СЋС‰РµРіРѕ РјРµРЅСЋ */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--black);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        box-sizing: border-box;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    /* РЎС‚РёР»Рё РґР»СЏ СЃСЃС‹Р»РѕРє РІРЅСѓС‚СЂРё РІС‹РµР·Р¶Р°СЋС‰РµРіРѕ РјРµРЅСЋ */
    .main-nav a {
        display: block;
        margin: 15px 0;
        font-size: 1.5rem;
    }

    /* Hamburger animation to 'X' */
    .hamburger.open .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }
    .hamburger.open .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
    }

    .contacts-content {
        grid-template-columns: 1fr;
    }

    .callback-btn-hero {
        display: inline-block; /* РџРѕРєР°Р·С‹РІР°РµРј РєРЅРѕРїРєСѓ РІ hero РЅР° РјРѕР±РёР»СЊРЅС‹С… */
        margin-top: 10px;
        background-color: transparent;
        border: 2px solid var(--main-red);
    }

    .schedule-notice {
        display: block; /* РџРѕРєР°Р·С‹РІР°РµРј РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .training-content {
        flex-direction: column;
    }
    .header-content {
        padding-bottom: 10px;
    }
    .header-contacts {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 60px;
    }
    .schedule-notice {
        display: block; /* РџРѕРєР°Р·С‹РІР°РµРј РЅР° РјРѕР±РёР»СЊРЅС‹С… */
    }
    .schedule-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    .schedule-section h2 {
        padding: 0 20px;
    }
    .schedule-image-container img {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.btn {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1px;
}
.btn {
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1px;
    line-height: 1.1;
}
