@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;   
    box-sizing: border-box;
}

body {
    padding: 0;
    background: #f5f5f5;
    height: auto;
    min-height: 100vh;
}

img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 0;
}
 
.heading {
    text-align: center
}

.photo {
    margin: 80px auto 0 auto;
    max-width: 65%;
    height: auto;
    aspect-ratio: 1200/719;
    border-radius: 15px;
    display: block;
}

#nav {
    position: relative;
    top: 50px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 50px;
    z-index: 2;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    flex-wrap: wrap;
}

#nav li {
    background: #333;
    border: 1px solid silver;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    flex: 1;
    min-width: 180px;
    text-align: center;
}

#nav a {
    color: #fff; 
    text-decoration: none; 
    display: block; 
    width: 100%;
    height: 100%;
}

#nav li:hover {
    background: #555555;
    transform: translateY(5%);
}

#nav li:not(:last-of-type) {
    margin-right: 0;
}

.navbar {
    position: absolute;
    top: 25px;
    background-color: #333;
    border-radius: 50px;
    margin-bottom: 20px;
    margin-left: 5%; 
    margin-right: 5%; 
    width: 90%;
    position: relative; 
}

.nav-container {
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px; 
}

.nav-menu {
    list-style-type: none;  
    display: flex; 
    justify-content: center;
    align-items: center;
    height: 100%; 
}

.nav-menu li {
    float: left;
}

.nav-menu a {
    display: block;
    color: white;
    padding: 15px;
    text-decoration: none;
    transition: background-color 1s;
    border-radius: 15px;

    /* шрифт */
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500; 
    font-style: normal;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
}

.nav-menu a:hover {
    background-color: #ddd;
    color: black;
}

.telegram-icon {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
    z-index: 10;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 40px; 
    height: 40px; 
}

.telegram-icon:hover {
    color: #0088cc;
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 50%; 
}

#nav-menu-bottom {
    position: absolute;
    right: 45%;
    top: 100%;
    background-color: #333;
}

.faq-indent {
    margin: 50px auto 80px auto;
    max-width: 800px;
    width: 90%;
    line-height: 25px;
    font-size: clamp(1rem, 2.5vw, 1.3em);
    position: relative;
    z-index: 3;
}

.faq-container {
    padding: 20px;
}

.faq-item {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    background: #1a1a1a;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.faq-question {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 20px;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    margin-right: 15px;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.faq-answer {
    padding: 20px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: #d0d0d0;
    background: #2a2a2a;
    border-left: 5px solid #4a6491;
}

.faq-title {
    text-align: center;
    padding: 25px;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: #5d9cec;
    font-weight: bold;
    background: #1c2b4a;
    border-bottom: 2px dashed #5d9cec;
    margin-bottom: 20px;
}

.highlight {
    color: #f46b45;
    font-weight: bold;
}

.server-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 80px auto 60px auto;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 3;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px 15px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.info-card i {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #3a7bd5;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #f46b45;
    margin-bottom: 12px;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
}

.info-card p {
    color: #555;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 60px auto 100px auto;
    gap: 20px;
    position: relative;
    z-index: 3;
    max-width: 400px;
    width: 100%;
}

.hamburger {
    display: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 1000;
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 8px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 3px;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .photo {
        max-width: 80%;
        margin-top: 100px;
    }
    
    #nav {
        top: 60px;
    }
    
    .faq-indent {
        margin: 60px auto 80px auto;
    }
}

@media (max-width: 992px) {
    .photo {
        max-width: 90%;
        margin-top: 120px;
    }
    
    #nav {
        top: 70px;
        width: 95%;
    }
    
    .faq-indent {
        margin: 70px auto 80px auto;
    }
    
    .navbar {
        margin-left: 3%;
        margin-right: 3%;
        width: 94%;
    }
}

@media (max-width: 802px) {
    .navbar {
        background: none;
        margin: 0;
        padding: 0;
        border-radius: 0;
        width: 100%;
    }

    .nav-container {
        padding: 0;
        height: auto;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -350px;
        top: 0; 
        flex-direction: column;
        background-color: #333;
        width: 100%;
        max-width: 280px;
        max-height: 200px;
        text-align: center;
        transition: 0.3s;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 10px 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 5px 0;
        float: none;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 8px 30px;
        font-size: 1rem;
        text-align: left;
        padding-left: 40px;
    }
    
    .telegram-icon {
        position: fixed;
        top: 25px;
        right: 20px;
        transform: none;
        color: #333;
        z-index: 1001;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
}