        /* ========== Секция: Как происходят занятия ========== */
        .how-it-works-section {
            width: 100%;
            min-height: 60vh; /* ← min-height вместо height */
            display: flex;
            justify-content: center;
            align-items: center;
            /* background-image: url('{{ url_for("static", filename="images/zanytiy.png") }}'); */
            background-image: url('../images/диплом_3.jpg');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            background-color: #3a3a3a;
            margin: 0;
            padding: 0;
            /* fixed-фон только на десктопе */
            background-attachment: fixed;
        }

        .how-it-works-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
            z-index: 1;
        }

        .how-it-works-content {
            position: relative;
            z-index: 2;
            max-width: 850px;
            text-align: center;
            color: white;
            padding: 2rem;
        }

        .how-it-works-section h2 {
            font-size: 2.4rem;
            margin-bottom: 30px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.6);
        }

        .how-it-works-list {
            list-style: none;
            padding: 0;
            font-size: 1.2rem;
            line-height: 1.8;
        }

        .how-it-works-list li {
            margin-bottom: 16px;
            position: relative;
            padding-left: 32px;
        }

        .how-it-works-list li::before {
            content: "✓";
            color: #ffcc00;
            font-size: 1.4rem;
            position: absolute;
            left: 0;
            top: -2px;
            font-weight: bold;
        }


        /* Мобильные устройства */
        @media (max-width: 768px) {
            .mobile-main,
            .mobile-sub {
                display: block;
                text-align: center;
                white-space: nowrap;      
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 1.5rem;
            }

            .mobile-sub {
                margin-top: 0.2em;
            }
        }