#home {
    display: flex;
    height: 100vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

@media (max-width: 768px) {
    #home {
        height: 95vh;
        min-height: 480px;
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .video-toggle {
        width: 45px;
        height: 45px;
        background-color: rgba(0, 0, 0, 0.5);
        color: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    .video-toggle .icon-play,
    .video-toggle .icon-pause {
        font-size: 22px;
        font-weight: bold;
    }

    .section {
        padding-top: 60px;
        min-height: auto;
        height: auto;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .section-content {
        padding: 0 10px;
    }

    .news-container {
        gap: 15px;
    }

    .news-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .news-image-container {
        width: 100%;
        padding-top: 56%;
        margin-right: 0;
    }

    .news-content {
        padding: 15px;
        margin-top: 0;
    }

    .news-date {
        margin-bottom: 5px;
    }

    .news-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .news-text {
        -webkit-line-clamp: 3;
    }

    .mall-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mall-image-container {
        padding-top: 100%;
    }

    #layout {
        padding-top: 60px;
        height: auto;
        min-height: auto;
        padding-bottom: 30px;
    }

    .layout-container {
        height: auto;
        min-height: auto;
    }

    .layout-panel {
        display: none;
        position: relative;
        transform: none;
        height: auto;
        min-height: auto;
    }

    .layout-panel.active {
        display: flex;
        flex-direction: column;
    }

    .panel-content {
        order: 1;
        width: 100%;
        padding: 15px;
    }

    .panel-toggle {
        order: 2;
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 12px;
        flex-direction: column;
        justify-content: center;
    }

    .toggle-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .shops-grid {
        gap: 10px;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .shop-card {
        margin-bottom: 0;
    }

    .shop-logo {
        height: 100px;
    }

    .contacts-section {
        padding-top: 60px;
    }

    .contact-container {
        flex-direction: column;
        gap: 15px;
    }

    .contact-block {
        width: 100%;
        padding-left: 0;
    }

    .contact-map-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
    }

    .news-image-container {
        width: 100%;
        padding-top: 56%;
    }

    .mall-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .contact-map-container {
        height: 200px;
    }
}
