/* styles.css */


body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    font-optical-sizing: auto;
    font-style: normal;
}

.header_menu_plusTranslation {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);   /* padding: 10px 50px;*/
    padding: 10px 0;
}

.logo-column {
    left: 10%;
    position: relative;
}

.logo-column img { max-width: 100%; }
#logo-column:hover {
    background-color: #ffffff;
}

.header_menu_plusTranslation .menu-column a {
    margin: 0 15px;
    text-decoration: none;
    color: #0C4A61;
    font-weight: bold;
    transition: color 0.3s;
}

.header_menu_plusTranslation .menu-column a:hover {
    color: #ffffff;
}

.header_menu_plusTranslation .button_menu-column_icon:hover {
    background-color: #0C4A61;
}

.menu-column {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    gap: 15px;
    font-size: 20px;
}

.menu-column a {
    color: #333;
    text-decoration: none;
    padding: 7px 15px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.menu-column a:hover {
    background-color: #034054;
    color: white;
    border-radius: 5%;
}
/* Кнопка контакти */
.button_menu-column button {
    padding: 5px 10px;
    background-color: #034054;
    color: white;
    border: none;
    border-radius: 6%;
    align-items: center;
    font-size: 20px;
    height: 44px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
}

.button_menu-column button img {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

/*Кнопка зміни мови*/
.header_menu_plusTranslation .language-column {
    position: relative;
}

.language-column button {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #034054;
    color: white;
    border: none;
}

.language-column button:hover {
    background-color: #777;
}

.header_menu_plusTranslation .dropdown-content {
    display: none;
    position: absolute;
    background-color: #034054;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 100%;
    width: auto;
    border-radius: 5%;
}

.header_menu_plusTranslation .dropdown-content a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 8px 16px;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #575757;
}

.language-column:hover .dropdown-content {
    display: block;
}

/*Популярні товари перехід на новий файл*/
.back-arrow {
    display: contents;
    margin-bottom: 20px;
    text-decoration: none;
    font-size: 50px;
    color: #0C4A61;
}

#back-arrow {
    position: absolute;
    text-decoration: none;

}

/* Таблиці та контейнери */
.table-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin-top: 0;
    position: relative;   /* необхідно для роботи z-index */
    z-index: 1;   /* більше за слайдер та інші блоки */
}

.table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: auto;
    padding: 10px;
}

.table-header {
    gap: 10px;
    background-color: #0C4A61;
    color: #fff;
    padding: 10px;
    font-size: 18px;
    text-align: left;
    display: flex; /* Enable flexbox layout */
    align-items: center; /* Align items vertically in the flex container */
    justify-content: center; /* Align items horizontally in the flex container (center the image) */
}

.table-header img{
    width: 50px;
    height: 50px;
}

.table-row {
    display: flex;
    padding: 20px;
    justify-content: space-between;
}

.table-cell {
    text-align: center;
}

.table-cell p {
    margin-bottom: -27px;
}

.expandable-content p {
    margin-top: -20px;
}

.button {
    transition: background-color 0.3s;
}

.button:hover {
}

.hidden {
    display: none;
}

.arrow {
    font-size: 20px;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

.arrow-icon {
    width: 20px;
    height: 20px;
}

.expandable-content {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
}
/* Секція детальної інформації */
.detail-block p { margin: 0 0 1rem; }
.zrp li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.price, .price_for_month { font-size: 1.1rem; }
.buy-button button {
    display: block;
    width: auto;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/*Слайди з 5 блока ПЕРЕВАГИ СІМ*/
/*Слайди з 5 блока ПЕРЕВАГИ Платформи*/
.short_description_slider_section {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    text-align: center;
    background-image: url("img/additional/background_additional.png");
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    padding: 20px 40px;
    position: relative;
    z-index: 100;        /* менше за таблицю */
}

.short_description_slider_section h2 {
    color: white;
    font-size: 24px;
    text-align: center;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

.short_description_slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem; /* щоб вміст не обрізався */
    margin: 0;

}
.short_description_slider::-webkit-scrollbar {
    display: none; /* Chrome */
}
.short_description_slider_container {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 10px 20px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

}

.short_description_slide {
    scroll-behavior: smooth;
    scroll-margin-inline-start: inherit;
    scroll-snap-type: none;
    overflow-scrolling: auto;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    margin: 0 8px; /* половина gap по боках */
    max-width: none; /* прибираємо обмеження */
    flex: 0 0 auto;
    width: 33.333%; /* за замовчуванням по 3 слайди */
    transition: transform .3s ease, opacity .3s ease;

}

.short_description_slider_top {
    position: relative;
    display: inline-flex;
    color: #005B7E;
    font-size: 1.1rem;
}

.short_description_text {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: pre-line;
    flex-grow: 1;
    justify-content: center;
    color: #005B7E;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 0 10px;
    align-items: center;
    overflow-wrap: break-word;
}

.short_description_slider_nav {
    background-color: rgb(243, 244, 244);
    position: relative;
    display: flex;
    color: #000;
    border: none;
    padding: 16px;
    cursor: pointer;
    margin: 10px 40px;
    border-radius: 10px;
    left: 0;
    right: 0;
    outline: none; /* Remove focus border */
    text-align: center;
    transition: background .2s, transform .2s;
}

.short_description_slider_nav.prev:focus,
.short_description_slider_nav.next:focus {
    outline: none;
}

.icon {
    max-width: 100%;
    flex: 0 0 50px;
    margin-right: 10px;
    text-align: right;
    width: 65px;
    height: 65px;
}

.short_description_text img  {
    display: table-cell;
    vertical-align: middle;
    padding-right: 0;
}

/*Індикатор гортання*/
.short_description_navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.indicators {
    display: flex;
    margin: 0 10px;
    justify-content: center;
    z-index: 1;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
}

.indicator.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.egps-header,
.egps-mobile-menu,
.egps-header__inner {
    display: none;
}
@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 5px);
    }
}

/*FOOTER*/
#footer {
    flex-shrink: 0;
    bottom: 0;
    padding-top: 2.5rem !important;
}

.footer {
    background-color: #034054;
    color: white;
    display: flex;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    position: relative;
    bottom: 0;
}

.container.justify-content-center .row {
    margin-left: 50px;
}

.footer-logo {
    width: 150px;
}

.footer-company-name {
    margin-top: 20px;
    line-height: 1.6;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-icon {
    vertical-align: middle;
    width: 25px;
    height: 25px;
    display: inline-block;
    color: white;
    text-decoration: none;
}

.map {
    color: white;
    text-decoration: none;
    display: inline-flex;
}

.map a {
    color: white;
    text-decoration: none;
}

.map a:hover {
    color: white;
    text-decoration: none;
}

.map img {
    width: 30px;
    height: 30px;
}

.footer-link {
    color: white;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}


/* ==================== АДАПТИВНІ СТИЛІ (≤ 986px) ==================== */
/* Адаптація: ≤ 960px — по 2 слайди */
@media (min-width: 992px) {
    .short_description_slide { width: 33.1%; }
    .short_description_slider_container {
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* IE 10+ */
    }
    .short_description_slider_container::-webkit-scrollbar {
        display: none;                /* Chrome/Safari/Webkit */
    }
}

@media (max-width: 991px) {
    .expandable-content p {
        font-size: 1em;
    }
    .short_description_slide {
        min-width: 51%;
    }
    .short_description_text p {
        font-size: 1rem;
    }
    .short_description_slider_container p{
        font-size: 1rem;
    }
}
@media (max-width: 986px) {
    .short_description_slider_top {
        font-size: 1rem;
    }
    .short_description_slide {
        font-size: 1rem;
        min-width: 51%
    }
}

@media (max-width: 768px) {
    .header_menu_plusTranslation,
    .main_container_with_buttons {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .short_description_slide {
        flex: 0 0 auto;
        max-width: 100%;
        margin: 0 19px;
        min-width: 50%;
    }

    .short_description_slider_container {
        overflow-x: auto;
    }
    .short_description_text p {
        font-size: 0.8rem;
    }
    /* приховаємо стрілки, якщо вони десь ще показуються */
    .short_description_slider_nav {
        display: none !important;
    }

    /* індикатори залишаємо — вони внизу */
    .indicators {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin: 8px 0;
    }
    .indicator {
        width: 8px; height: 8px;
        background-color: rgba(255,255,255,0.3);
        border-radius: 50%;
        transition: background-color 0.3s;
    }
    .indicator.active {
        background-color: #fff;
    }

    .what_need_for_devices_page {
        padding: 1rem 0.5rem;
    }

    .table-container {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: -3.5rem;
        gap: 1rem;
    }
    .table {
        position: relative;
        display: grid;
        height: auto !important;
    }
    .expand-btn, .collapse-btn {
        height: 40px;
    }
    .table-cell {
        margin: 0.5rem 0;
    }
    h2 {
        font-size: 1.5rem;
    }

    .back-arrow {
        font-size: 3rem;
        left: 12px;
        top: -65px;
    }

    .table-header {
        font-size: 1.2rem;
    }
    /* Footer */
    #footer {
        text-align: center;
        padding: 1.5rem 0.5rem;
    }
    .footer-column {
        margin-bottom: 1rem;
    }
    .footer-column h3,
    .footer-column p {
        font-size: 0.9rem;
    }

}

/* Адаптація: ≤ 576px — по 1 слайду */
@media (max-width: 576px) {
    .short_description_slide {
        width: 100%;
        height: auto;
    }
}


/* ========== ДОПРАВКИ ДЛЯ МОБІЛЬНОЇ ВЕРСІЇ (≤992px) ========== */
/* ==========МЕНЮ ========== */
@media (max-width: 992px) {

    /* СХОВАТИ DESKTOP-БЛОКИ */
    .header_menu_plusTranslation,
    .main_container_with_buttons {
        display: none !important;
    }

    /* HEADER */
    .egps-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background-color: #ffffff;
        padding: 0.75rem 1rem;
        height: 56px;
    }

    .egps-logo img {
        max-height: 62px;
    }

    .egps-hamburger {
        display: flex;
        flex-direction: column;

        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto; /* перемістить гамбургер вправо */
        width: 60px;
        height: 60px;
        padding: 5px;
    }

    .egps-hamburger__bar {
        height: 4px;          /* замість 2.5px */
        margin-bottom: 10px;   /* трохи більш відступ */
        background-color: #004a5e;
    }

    .egps-hamburger__bar:last-child {
        margin-bottom: 0;
    }

    /* SLIDING MENU (СПРАВА) */
    .egps-mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #004a5e;
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .egps-mobile-menu.open {
        right: 0;
    }

    .egps-mobile-menu__close {
        align-self: flex-start;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        padding: 1rem;
        cursor: pointer;
    }

    .egps-mobile-menu__list {
        list-style: none;
        padding: 1rem;
        margin: 0;
        flex-grow: 1;
    }

    .egps-mobile-menu__item + .egps-mobile-menu__item {
        margin-top: 1.2rem;
    }

    .egps-mobile-menu__item a {
        color: #ffffff;
        font-size: 1.2rem;
        text-decoration: none;
    }

    .egps-header__inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
    }
    .language-selector {
        position: relative;
    }

    #mobileLanguageDropdown {
        display: none;
        flex-direction: column; /* важливо! */
        position: absolute;
        top: 100%;  /* випадає ПІД кнопкою */
        left: 0;
        width: max-content; /* або max-content, або 25%и якщо хочеш автоширину */
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 6px;
        z-index: 1001;
    }

    #mobileLanguageDropdown a {
        padding: 10px 15px;
        text-decoration: none;
        color: #004a5e;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s ease;
    }

    #mobileLanguageDropdown a:hover {
        background-color: #f2f2f2;
    }

    .language-selector.open #mobileLanguageDropdown {
        display: flex;
    }

    /**/

    /* ДЛЯ ВЕЛИКИХ ЕКРАНІВ (від 993px) */
    @media (min-width: 993px) {
        .egps-header,
        .egps-mobile-menu
    }}


@media (min-width: 993px) {
    .egps-header,
    .egps-mobile-menu,
    .egps-header__inner {
        display: none !important;
    }
}



