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

        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
             background: linear-gradient(135deg, #fff5f5 0%, #f0fff0 50%, #f5f5ff 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 / 923; /* подставь реальное соотношение ширины/высоты */
    background-image: url('/img/head.avif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

@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: 90%;
            max-width: 980px;
            background: rgb(246 255 122 / 60%);
            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: white;
            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: #ff5722;
            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(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .menu-toggle:hover {
            background: #e64a19;
            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: rgb(246 255 122 / 95%);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            z-index: 999;
            border: 1px solid rgba(255, 255, 255, 0.2);
            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: #333;
            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: #53a33e;
            color: white;
        }

        /* Основной контент с отступом под фиксированное меню */
        .container {
max-width: 1024px;
    margin: -115px auto 0;
    padding: 0px 10px;
    background: #fff796;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    Z-INDEX: 1;
    POSITION: relative;
        }

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

        section {
            margin-bottom: 50px;
        }

        h2 {
            color: #4a90e2;
            margin-bottom: 15px;
            font-size: 1.8em;
        }

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

        footer {
            background: #fff796;
            color: #f5644a;
            text-align: center;
            padding: 30px;
            margin-top: 60px;
            max-width: 1024px;
            margin-right: auto;
            margin-left: auto;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        /* Адаптивность для мобильных устройств */
        @media (max-width: 1024px) {
            .header-image {
                width: 100%;
            }
            
            .overlay-menu {
                width: 95%;
                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: -100px;
        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: -45px;
            }
            
            h1 {
                font-size: 1em;
            }
            
            h2 {
                font-size: 1.5em;
            }
        }
