* {
    margin: 0;
    padding: 0;   
    box-sizing: border-box;
}

body {
    padding: 0;
    background: #f5f5f5;
    height: auto;
    min-height: 100vh;
}

.navbar {
    position: absolute;
    top: 25px;
    background-color: #333;
    border-radius: 50px;
    margin-bottom: 20px;
    margin-left: 150px; 
    margin-right: 150px; 
    position: relative; 
}

.nav-container {
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 100px; 
}

.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; 
}

.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%; 
}

.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;
}

.content-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 20px;
    width: 90%;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.main-title {
    font-family: "Oswald", sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-align: center;
    color: #0088cc;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-family: "Oswald", sans-serif;
    color: #0088cc;
    text-align: center;
    margin: 40px 0 20px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #0088cc;
}

.feature-block {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #0088cc;
}

.feature-title {
    font-family: "Oswald", sans-serif;
    color: #333;
    margin-bottom: 15px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.feature-list {
    list-style-type: none;
    margin: 15px 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px dashed #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "•";
    color: #0088cc;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 7px;
}

.highlight {
    background: #0088cc;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.intro-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    text-align: center;
    color: #444;
    line-height: 1.8;
}

/* Стили для overlay затемнения фона */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .navbar {
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
    }
    
    .nav-container {
        padding: 0 50px;
    }
}

@media (max-width: 992px) {
    .content-container {
        margin: 120px auto 40px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

@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: #000; /* Меняем на белый цвет для лучшей видимости */
        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;
    }

    .content-container {
        margin: 100px auto 30px;
        padding: 15px;
    }
    
    .feature-block {
        padding: 20px 15px;
    }
    
    .feature-list li {
        padding-left: 25px;
    }
}

