@media only screen and (max-width: 768px) {
    /* Центриране на header */
    body {
        margin: 0;
        padding: 0;
        width: 100% !important;
        overflow-x: hidden; /* Премахва хоризонталния скрол */
        box-sizing: border-box;
    }
    
    header {
        font-size: 12px;
        padding: 10px 0;
        text-align: center;
        width: 100%;
    }

    nav {
        position: relative;
        width: 100%;
    }

    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: none; /* Скрива менюто по подразбиране */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    nav ul li {
        border-bottom: 1px solid #444;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        color: white;
        text-decoration: none;
    }

    nav ul li a:hover {
        background-color: #555;
    }

    nav button.menu-toggle {
        display: block;
        background-color: #333;
        color: white;
        border: none;
        padding: 10px;
        width: 100%;
        text-align: left;
        cursor: pointer;
        font-size: 16px;
    }

    nav button.menu-toggle:hover {
        background-color: #555;
    }

    nav ul.show {
        display: flex; /* Показва менюто при активиране */
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    nav .menu-toggle-label {
        display: block; /* Показва бутона за мобилно меню */
    }

    nav ul {
        display: none; /* Скрива менюто по подразбиране */
        flex-direction: column; /* Подрежда елементите вертикално */
        background-color: #333; /* Фон за мобилното меню */
        padding: 10px;
        position: absolute; /* Позиционира менюто */
        top: 50px;
        left: 0;
        width: 100%; /* Ширината на менюто */
        z-index: 1000;
    }

    nav .menu-checkbox:checked + .menu-toggle-label + ul {
        display: flex; /* Показва менюто при активиране */
    }

    nav ul li {
        border-bottom: 1px solid #444; /* Разделител между елементите */
        text-align: center; /* Центрира текста */
    }

    nav ul li a {
        color: white; /* Бял текст */
        padding: 10px;
        display: block; /* Прави линковете блокови елементи */
    }

    nav ul li a:hover {
        background-color: #555; /* Фон при задържане */
    }
    
    /* Корекции за intro секцията */
    #intro {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        height: 100% !important;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        background-color: black;
    }

    /* Welcome image адаптация */
    #welcome-image {
        content: url('../../images/wellcome_image_mobile.jpg'); /* Указва изображението за мобилни устройства */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }
    /* Стилове за бутона Enter */
    #enter-button {
        width: 80%;
        font-size: 30px !important;
        padding: 10px !important;
        background-color: #fff;
        color: #000;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        margin-top: 20px;
    }

    #enter-button:hover {
        background-color: #f0f0f0;
    }

    /* Анимация за стрелките */
    .arrow {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) rotate(135deg);
        width: 30px;
        height: 30px;
        border-left: 2px solid white;
        border-bottom: 2px solid white;
        margin-bottom: 20px;
    }

    .arrow:nth-child(1) {
        bottom: 70px;
    }

    .arrow:nth-child(2) {
        bottom: 110px;
    }

    .arrow:nth-child(3) {
        bottom: 150px;
    }

    /* Двукрила врата - лява и дясна части */
    .door-part {
        position: fixed;
        top: 0;
        width: 50%;
        height: 100%;
        background-size: 200% 100%;
        z-index: 10000;
        transition: transform 2s ease;
    }

    .door-left {
        left: 0;
        background-position: left;
        transform-origin: left center;
    }

    .door-right {
        right: 0;
        background-position: right;
        transform-origin: right center;
    }

    /* Сервизни елементи - адаптиране */
    #services {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        background: transparent;
    }

    .service-item {
        width: 90%;
        margin-bottom: 20px;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .service-item img {
        width: 100%;
        height: auto;
    }

    .service-item h3 {
        font-size: 1.2em;
        margin: 10px 0;
    }

    .service-item p {
        font-size: 0.9em;
        margin: 0 10px 10px;
    }
    
        /* Hero секция корекция */
    #hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        background: transparent;
    }
    /* Hero секция корекция */
    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        text-align: center;
        font-size: 16px;
        z-index: 10;
        max-width: 90%; /* Добавя адаптивна широчина за мобилни */
    }

    .hero-text h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
        word-wrap: break-word; /* Пренос на думи */
    }

    .hero-text ul {
        list-style: none;
        padding: 0;
    }

    .hero-text ul li {
        font-size: 1.2em;
        margin: 10px 0;
        text-align: center; /* Подравняване спрямо центъра */
    }
}

    /**************** големи дисплей ***************************/
@media only screen and (min-width: 769px) {
    /* Скриване на мобилния бутон */
    nav .menu-toggle-label {
        display: none; /* Скрива етикета за менюто */
    }

    nav .menu-checkbox {
        display: none; /* Скрива чекбокса */
    }

    nav ul {
        display: flex !important; /* Винаги показва менюто за големи екрани */
        flex-direction: row; /* Подрежда елементите хоризонтално */
        justify-content: center; /* Центрира менюто */
        align-items: center;
        background-color: transparent; /* Без фон */
        position: static; /* Нормално позициониране */
        width: auto; /* Автоматична ширина */
    }

    nav ul li {
        margin: 0 10px; /* Разстояние между елементите */
    }

    nav ul li a {
        padding: 5px 10px;
        color: #000; /* Черен текст */
        text-decoration: none; /* Без подчертаване */
    }

    nav ul li a:hover {
        color: #555; /* Леко потъмняване при задържане */
    }
}
/************Скриване на чекбокса *******************/
nav .menu-checkbox {
    display: none; /* Скрива напълно чекбокса */
}
/*******************************/

