/* ===========================================
   МОБІЛЬНИЙ ВИГЛЯД
   =========================================== */

/* --- МОБІЛЬНИЙ (до 768px) ТА НИЗЬКІ ПЛАНШЕТИ --- */
@media screen and (max-width: 768px),
       screen and (min-width: 769px) and (max-height: 639px) {
    .uzhnet-card__sound-block {
        display: none !important;
    }

    .uzhnet-card__big-logo {
        height: 100px !important;
    }

    #section-contacts {
        height: 540px !important;
    }

    .tariff-card.tariff-card--detail {
        flex-direction: column;
        /*justify-content: center;*/
        align-items: center;
        overflow-y: scroll;
        max-height: 300px;
    }

    .js-card-show + .uzhnet-holo-card {
        height: 540px !important;
        padding-top: 39px;
        padding-bottom: 75px;
        margin-top: -40px;
    }

    html {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    /* Viewport для мобільних - вертикальний скролл */
    .viewport {
        width: 100%;
        max-width: 100%;
        height: auto !important;
        overflow: hidden !important;
        cursor: auto !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        pointer-events: none;
    }

    .viewport-track {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        pointer-events: auto;
        overflow: hidden;
    }

    .viewport-track>* {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .uzhnet-card,
    .services-card,
    .app-card,
    .for-business-card,
    .projects-card,
    .contacts-card {
        position: relative;
        left: 0;
        scale: 1 !important;
        display: block !important;
        pointer-events: auto;
    }

    .uzhnet-card {
        display: flex !important;
        flex-direction: column;
        gap: 50px;
        justify-content: flex-start !important;
    }

    #section-documents #for-bussiness-button {
        display: none !important;
    }

    #section-documents .documents-card__mobile-pagination {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #section-documents .documents-card__mobile-pagination li {
        margin: 0;
        padding: 0;
    }

    #section-documents .documents-card__mobile-pagination .splide__pagination__page {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        border: 0;
        padding: 0;
        background: transparent;
        pointer-events: none;
    }

    #section-documents .documents-card__mobile-pagination .splide__pagination__page::before {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        background-color: rgba(183, 183, 183, 0.2);
    }

    #section-documents .documents-card__mobile-pagination .splide__pagination__page.is-active::before {
        background-color: rgba(230, 196, 76, 0.5);
    }

    .landscape-1 {
        height: 0 !important;
    }

    .landscape-2 {
        height: 0 !important;
    }

    .landscape-3 {
        height: 0 !important;
    }

    #cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        gap: 20px;
        height: fit-content;
        position: relative;
        top: 0;
        padding-top: 80px;
        transform: none;
        padding-left: 0;
        padding-bottom: 200px;
    }

    #section-services,
    #section-app,
    #section-business,
    #section-projects,
    #section-documents,
    #section-contacts {
        scroll-margin-top: 62px;
    }

    #section-services {
        /*background: linear-gradient(180deg, rgba(13, 14, 21, 0.6) 0%, rgba(38, 43, 69, 0.6) 100%) !important;*/
        background: transparent !important;
    }

    .uzhnet-holo-card {
        /*height: 480px !important;*/
        padding-bottom: 40px;
        /*padding-top: 0px !important;*/
        justify-content: space-between;
        display: flex !important;
    }

    .card-projects .splide__pagination {
        padding: 25px 0 0;
    }

    #sky {
        width: 100%;
        height: 3900px;
        display: none;
    }

    #comet-canvas {
        width: 100%;
        height: 3900px;

        display: none;
    }

    #planet-container {
        width: 100%;
        height: 3900px;
        display: none;
    }

    .uzhnet-holo-card:hover {
        box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.5) !important;
    }

    #landscape {
        display: none;
    }

    #navbar {
        display: none;
    }

    #comet-container {
        width: 100%;
        height: 3900px;
        position: relative;
        display: none;
    }

    #mobile-navbar {
        position: fixed;
        left: 50%;
        top: 20px;

        transform: translateX(-50%);

        background-color: rgba(38, 40, 51, 0.4);
        width: 90%;
        height: 30px;

        display: flex !important;
        align-items: center;
        justify-content: space-evenly;
        z-index: 1000 !important;
    }

    .uzhnet-card__content {
        font-size: 13px;
    }

    /* AI кнопка фіксована */
    #ai-assistant-button {
        display: none;
    }

    #tips {
        display: none;
    }

    #documents {
        display: none;
    }

    #asteroids {
        height: 3900px;
        display: none;
    }

    .document-card {
        display: flex !important;
        scale: 1 !important;
        position: relative;
        justify-content: flex-start;
        left: 0;
        width: 336px;
        padding-bottom: 40px;
    }

    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: linear-gradient(180.02deg, #08080E 39.84%, #272B44 88.31%);
    }

    #mobile-landscape {
        display: block !important;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 330px;
        z-index: 10;
        overflow: hidden;
    }

    .mobile-landscape-track {
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        animation: landscapeScroll 120s linear infinite;
    }

    .mobile-landscape-img {
        height: 330px;
        flex-shrink: 0;
    }

    /* Показуємо текст картки ДЛЯ БІЗНЕСУ на мобільному */
    .for-business-card .for-business-card__content ul li {
        opacity: 1 !important;
    }

    .for-business-card .for-business-card__headers {
        opacity: 1 !important;
    }

    /* Карточки тарифов кликабельны на мобильном */
    .tariff-card {
        cursor: pointer;
    }

    #vr-container {
        display: none;
    }

    .services-filter-main {
        max-width: 100vw;
        margin: auto;
        gap: 16px;
    }

    .mobile-choose-tariff-wrapper {
        margin-bottom: 20px;
    }

    .addon-services-block {
        width: 100vw;
        margin: auto;
    }

    .addon-services-block__footer {
        margin-top: 6px;
    }

    .addon-services-block__body {
        display: none;
    }

    .tariffs-block,
    .services-filter-secondary-wrapper {
        max-width: 100vw;
        margin: auto;
        overflow-x: scroll;
        overflow-y: hidden;
        scrollbar-width: none;
        margin-bottom: 8px;
    }

    .tariffs-block::-webkit-scrollbar,
    .services-filter-secondary-wrapper::-webkit-scrollbar {
        display: none;
    }

    .services-filter-secondary {
        width: fit-content;
        margin: auto;
    }
}

/* Загальна анімація для ландшафту (потрібна для обох медіа-запитів) */
@keyframes landscapeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.services-back-button {
    display: flex;
    margin: 16px 24px 0 16px;
    text-decoration: none;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    color: #E0C522;
    font-family: 'DeusEx', sans-serif;
    font-size: 15px;
}
