
@media (max-width: 1023px) {


    .scroll-container {
        scroll-padding-top: 0px !important; 
    }


    .screen-section {
        height: 100vh !important;
        min-height: 100vh !important;
        box-sizing: border-box !important;
        padding-top: 80px !important; 
        scroll-margin-top: 0px !important;
        scroll-snap-align: start !important; 
    }

    .screen-section:target {
        scroll-margin-top: 80px !important; 
    }


    #gallery.screen-section {
        padding-top: 60px !important;
        justify-content: flex-start !important;
    }

    #gallery.screen-section:target {

        scroll-margin-top: 80px !important;

    }

    .scroll-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 12px;
        margin-top: 30px !important;
        padding-left: 7.5vw !important;
        padding-right: 7.5vw !important;
    }

    .scroll-gallery::-webkit-scrollbar {
        display: none;
    }

    .gallery-item-wrapper {
        flex: 0 0 auto;
        width: 85vw !important;
        scroll-snap-align: center;
    }

    .gallery-img {
        width: 100%;
        height: 40vh !important;
        object-fit: cover;
        border-radius: 14px;
    }

    .about-mobile-flex {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start !important;
        padding-top: 5px !important;
    }

    .about-mobile-flex h1,
    .about-mobile-flex h2,
    .about-mobile-flex .section-title {
        margin-top: 5px !important;
        margin-bottom: 10px !important;
    }

    .about-main-row {
        flex: 1;
        display: flex;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .school-desc {
        font-size: 0.85rem !important;
        line-height: 1.35;
        margin-bottom: 8px !important;
    }

    .about-img-container {
        display: block !important;
        width: 100%;
        text-align: center !important;
        margin-top: 5px !important;
    }

    .school-promo-img {
        width: 95% !important;
        max-width: 360px !important;
        
        height: 110px !important; 
        
        object-fit: cover !important;
        object-position: top !important; 
        
        border-radius: 12px !important;
        display: inline-block !important;
    }

    .coaches-title {
        font-size: 0.9rem !important;
        text-align: center !important;
        margin-top: 2px !important;
        margin-bottom: 2px !important;
        width: 100% !important;
        font-weight: 400 !important;
        font-style: italic !important;
    }

    .coach-list {
        font-size: 0.85rem !important;
        line-height: 1.3;
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .mobile-contact-layout {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    .mobile-contact-layout h2,
    .mobile-contact-layout .section-title {
        margin-top: 0 !important;
        margin-bottom: 15px !important;
    }

    .contact-item-compact {
        margin-bottom: 15px !important;
        text-align: center !important;
    }

    .contact-row-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .contact-label-compact {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #2d3748 !important;
        text-transform: none !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    .contact-value-compact {
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        color: #4a5568 !important;
        display: block !important;
    }

    .contact-link {
        color: #000000 !important;
        text-decoration: none;
    }

    .social-buttons-compact {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .btn-social-sm {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        color: #ffffff !important;
    }

    .btn-social-sm i,
    .btn-social-sm svg,
    .btn-social-sm span:not(.text-nowrap) {
        color: #ffffff !important;
        font-size: 0.9rem !important;
        display: inline-block !important;
        line-height: 1 !important;
        margin-right: 4px !important;
    }

    .btn-social-sm:hover,
    .btn-social-sm:focus,
    .btn-social-sm:active {
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .btn-vk { background-color: #0077FF; }
    .btn-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
    .btn-tamtam { background: linear-gradient(135deg, #00C6FF 0%, #0072FF 50%, #9B51E0 100%); }
    .btn-telegram { background-color: #24A1DE; }
    .btn-whatsapp { background-color: #25D366; }

    .map-container-compact {
        height: 190px !important;
        width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
        margin-top: 5px !important;
    }

    .stylish-card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 15px 12px;
        background-color: #ffffff !important;
    }

    .stylish-card h2 {
        font-size: 1.3rem;
        font-weight: 800;
    }

    .stylish-card .form-control,
    .stylish-card .form-select {
        font-family: 'Nunito', sans-serif !important;
        font-weight: 700 !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    .form-label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #555555;
        margin-bottom: 4px;
    }

    .form-control {
        border: 1px solid #cbd5e0;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .form-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .about-img-container .gallery-img {
        width: 95% !important;
        max-width: 360px !important;
        
        height: 110px !important; 
        
        object-fit: cover !important;
        object-position: top !important; 
        
        border-radius: 12px !important;
        display: inline-block !important;
    }
}