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

        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
             background: linear-gradient(135deg, #37cd71 0%, #a0ffa0 50%, #a2f7d1 100%);
    background-attachment: fixed;
        }

        .header-container {
            position: relative;
            max-width: 1024px;
            margin: 0 auto;
        }

        .header-image {
            width: 1024px;
            height: auto;
            display: block;
            margin: 0 auto;
            max-width: 100%;
        }

.header-bg {
    width: 1024px;
    height: auto;
    aspect-ratio: 1024 / 373; /* подставь реальное соотношение ширины/высоты */
    background-image: url('/img/headnn.avif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    margin: 0 auto;
    max-width: 100%;
border-radius: 7px;
box-shadow: 0 8px 32px rgb(28 151 139);
    background-color: #a1ea89;
}

@media (max-width: 1024px) {
    .header-bg {
        width: 100%;
        background-size: cover;
    }
}

h1 {
    background: linear-gradient(135deg, #f4ff00c9, #ffa500, #ffa87e, #26db12);
    color: white;
    font-weight: 700;
    font-size: 1.3em;
    text-align: center;
    padding: 12px 25px;
    margin: 15px 0;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
    display: inline-block;
    border: 2px solid #ff4500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

h1:hover::before {
    left: 100%;
}



        /* ИЗМЕНЕНИЕ: Прозрачное меню перенесено вверх и зафиксировано */
        .overlay-menu {
            position: fixed; /* Изменено с absolute на fixed */
            top: 0; /* Перемещено вверх */
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 1024px;
            background: rgb(246 255 122 / 40%);
            backdrop-filter: blur(10px);
            border-radius: 0 0 12px 12px; /* Скругление только снизу */
            padding: 15px 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .overlay-menu ul {
            list-style: none;
            display: flex;
            justify-content: space-around;
            align-items: center;
            margin: 0;
        }

        .overlay-menu ul li {
            margin: 0;
        }

        .overlay-menu ul li a {
            color: #333;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .overlay-menu ul li a:hover {
            background: rgba(74, 144, 226, 0.1);
            color: #333;
            transform: translateY(-2px);
        }

        .overlay-menu ul li a.active {
            background: #53a33e;
            color: white;
        }

/* ИЗМЕНЕНИЕ: Кнопка гамбургер зафиксирована в правом верхнем углу для мобильных */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    background: #1b937d;
    border: none;
    cursor: pointer;
    padding: 8px 6px;
    position: fixed; /* Изменено с absolute на fixed */
    top: 15px; /* Перемещено вверх */
    right: 15px; /* Осталось справа */
    z-index: 1001;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(28, 151, 139, 0.3);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #1b937d;
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed; /* Изменено с absolute на fixed */
    top: 60px; /* Отступ от верхнего края */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(177, 237, 227, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(28, 151, 139, 0.3);
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.mobile-menu ul li {
    width: 100%;
    text-align: center;
    margin: 5px 0;
}

.mobile-menu ul li a {
    display: block;
    color: #1b5e20;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a.active {
    background: #22e197;
    color: white;
}

        /* Основной контент с отступом под фиксированное меню */
.container {
    max-width: 1024px;
    margin: 20px auto 0;
    padding: 0px 10px;
    background: 
linear-gradient(rgb(42 135 87 / 75%), rgb(177 237 227 / 71%)),
#368779 url('/img/bgcontent.jpg') no-repeat top center;

    border-radius: 12px;
box-shadow: 0 8px 32px rgb(28 151 139);
    z-index: 1;
    position: relative;
}

        .content {
            padding: 20px 0;
            color: #ffffff;
            font-size: 20px;
        }

        section {
            margin-bottom: 50px;
        }

h2 {
    background: linear-gradient(135deg, #22e197c9, #1b937d, #7ec3ff, #26db12);
    color: white;
    font-weight: 100;
    font-size: 1.3em;
    text-align: center;
    padding: 12px 25px;
    margin: 15px 0;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
    display: inline-block;
    border: 2px solid #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
}

h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

h2:hover::before {
    left: 100%;
}

        p {
            line-height: 1.8;
            margin-bottom: 15px;
        }

        footer {
           background: 
linear-gradient(rgb(42 135 87 / 75%), rgb(177 237 227 / 71%));
            color: #ffffff;
            text-align: center;
            padding: 30px;
            margin-top: 10px;
            max-width: 1024px;
            margin-right: auto;
            margin-left: auto;
   box-shadow: 0 8px 32px rgb(28 151 139);
border-radius: 12px;
        }

        /* Адаптивность для мобильных устройств */
        @media (max-width: 1024px) {
            .header-image {
                width: 100%;
            }
            
            .overlay-menu {
                width: 100%;
                padding: 12px 20px;
            }
            
            .overlay-menu ul {
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .overlay-menu ul li a {
                padding: 8px 15px;
                font-size: 14px;
            }
            
            .container {
                       margin-top: 0px;
        position: relative;
        z-index: 1;
            }
        }

        @media (max-width: 768px) {
            .overlay-menu {
                display: none;
            }
            
            .menu-toggle {
                display: flex;
            }
            
            .mobile-menu.active {
                display: block;
            }
            
            .container {
                      margin-top: 10px;
            }
            
            h1 {
                font-size: 1em;
            }
            
            h2 {
                font-size: 0.9em;
            }
        }




