
    .modules-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .modules-grid a {
        text-decoration: none;
        font-family: 'Unbounded-Bold', sans-serif;
    }
    .module-btn {
        padding: 1.5rem;
        background: rgba(73, 169, 176, 0.15);
        color: white;
        border: 1px solid #49A9B0;
        border-radius: 15px;
        font-weight: bold;
        text-align: center;
        aspect-ratio: 3 / 1;
        transition: 0.3s;
        display: flex;
        justify-content: flex-start; /* Добавлено для горизонтального центрирования */
        align-items: center; /* Изменено с flex-start на center для вертикального центрирования */
        width: 100%;

    }

    .module-btn-wide {
        grid-column: span 3;
        aspect-ratio: auto;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: left;
        
    }

    .module-btn:hover {
        background: #49A9B0;
        color: #fff;
    }

    .module-content {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .module-number {
        border: 1px solid #fff;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        font-size: 0.8rem;
        margin: 0;
        width: fit-content;
    }

    .module-title {
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
    }

    .hero-section {
        height: 35rem;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        position: relative;
        background: url("../../images/hero_bg.webp") center/cover no-repeat;
    }

    .carousel-container {
        overflow: hidden;
        position: relative;
        width: 100%;
    }

    .carousel-track {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: scroll 60s linear infinite;
        will-change: transform;
    }

    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .carousel-track img {
        width: 150px;
        height: 80px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .carousel-track img:hover {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }

    .hero-overlay, .hero-overlay-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 2rem;
        padding: 0 1rem;
        text-align: center;
        margin-bottom: 4vh;
    }

    .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        max-width: 300px;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 1);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        color: #fff;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .btn-primary:hover {
        background-color: rgba(30, 30, 30, 0.35);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 1);
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        width: 100%;
    }
    
    .hero-overlay {
        display: none;
    }
    .module-btn{
        justify-content: center;
        align-items: center;
    }

    .module-content{
        justify-content: center;
        align-items: center;
    }

    .module-btn-wide {
        grid-column: span 2;
    }
    
    .hero-overlay-mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-content: center;
        align-items: center;
        flex-wrap: wrap;
        text-align:center;
        margin-bottom: 4vh;
    }

    .hero-overlay-mobile h3 {
        font-size: 1.5rem;
    }
    
    .hero-overlay-mobile p.lead {
        font-size: 1rem;
    }
        
}

    @media (max-width: 768px) {
        .hero-section {
            width: 100%;
            height: 25vh;
        }


        .btn-primary {
            padding: 0.7rem 1.2rem;
            font-size: 0.8rem;
        }
        
        .carousel-track img {
            width: 240px;
            height: 140px;
        }
    }

    @media (max-width: 576px) {
        .modules-grid {
            grid-template-columns: 1fr;
        }
        
        .module-btn, .module-btn-wide {
            grid-column: span 1;
            aspect-ratio: auto;
            padding: 1rem;
        }
        
        .module-title {
            font-size: 0.9rem;
        }
        
        
        .carousel-track img {
            width: 200px;
            height: 100px;
        }
    }
