.container {
    width: 100% !important;
    max-width: 1157px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
}


.button_block_time {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.content-wrapper{
    width: 100% !important;
}

/* От 426px до 768px */
@media (min-width: 426px) and (max-width: 768px) {
    .container {
        width: 100% !important;
    }
}

/* От 376px до 425px */
@media (min-width: 370px) and (max-width: 425px) {
    .container {
        width: 90% !important;
    }
    .main-content {
        width: 100% !important;
    }
    
    .d-flex {
        gap: 3px !important;
    }

}

/* Мобильные устройства */
@media (max-width: 768px) {
  * {
        box-sizing: border-box !important;
    }
    .main-content,
    .content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .button_block_time {
        margin-right: 0px;
    }
    
    .tab-content {
        padding: 0px !important;
    }

    /* Только для колонок внутри контента */
    .main-content .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .main-content .col-12,
    .main-content .col-md-6,
    .main-content .col-lg-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Footer */
    .footer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Календарь */
    #calendar,
    .fc,
    .fc-media-screen,
    .fc-direction-ltr,
    .fc-theme-standard,
    .fc-view-harness,
    .fc-timegrid,
    .fc-scrollgrid {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        font-size: 12px !important;
    }
    
    .fc-col-header,
    .fc-timegrid-slots,
    .fc-timegrid-cols {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .fc-timegrid-slot {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 50px !important;
    }
    
    .fc .fc-toolbar {
        display: grid !important;
    }
    .fc-toolbar-chunk{
        margin: 2px;
    }

    .d-flex {
        gap: 4px;
    }

    .insiuctions {
        width: 100%!important;
        padding: 0px;

    }
}

/* ===== ФИКС ДЛЯ МОБИЛЬНОГО МЕНЮ ===== */
@media (max-width: 991px) {
    /* Поднять меню выше dropdown-меню */
    .navbar-collapse {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999999 !important;
        background: white !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
        border-radius: 0 0 15px 15px !important;
    }
    
    .navbar-collapse * {
        position: relative !important;
        z-index: 99999999 !important;
    }
    
    /* Опустить dropdown-меню */
    .dropdown-menu {
        z-index: 100 !important;
        position: relative !important;
    }
    
    /* Убрать overflow у родителей */
    .header.site-header,
    .navbar,
    .container {
        overflow: visible !important;
    }
}


