/* --- КАРТОЧКА (Desktop First) --- */
    .bass {
        margin: 0;

        display: flex;
        justify-content: center;
        align-items: center;
        padding: 2px;
        /* Твой градиент */

        /* Системный шрифт Apple */
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: white;
    }
    .glass-card {

        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 800px; /* Максимальная ширина на ПК */

        /* Внутренние отступы (большие для ПК) */
        padding: 60px 50px;
        box-sizing: border-box;

        /* Стеклянный стиль iOS 26 */
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(40px) saturate(80%);
        -webkit-backdrop-filter: blur(40px) saturate(180%);

        /* Скругление и границы */
        border-radius: 40px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.2);

        /* Тени */
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(255, 255, 255, 0.05);

        text-align: center;
        transition: transform 0.3s ease;
    }

    /* --- ТИПОГРАФИКА (Desktop) --- */
    .main-title {
        margin: 0 0 3px 0;
        font-size: 25px; /* Крупный заголовок */
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -1px;

        /* Линия разделителя */
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .brand-accent {
        /* Градиентный текст для бренда */
        background: linear-gradient(90deg, #ffffff, #a2c2e8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

    .subtitle {
        margin: 0 0 20px 0;
        font-size: 22px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
    }

    .description {
        margin: 0 auto; /* Центрируем текст, если он короткий */
        max-width: 90%;
        font-size: 16px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
        font-weight: 400;
    }

    /* --- АДАПТАЦИЯ ПОД ПЛАНШЕТЫ (до 1024px) --- */
    @media (max-width: 1024px) {
        .glass-card {
            padding: 40px 30px;
            border-radius: 32px;
        }
        .main-title {
            font-size: 25px;
            margin-bottom: 25px;
            padding-bottom: 25px;
        }
        .subtitle {
            font-size: 20px;
        }
    }

    /* --- АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (до 480px) --- */
    @media (max-width: 480px) {


        .glass-card {
            padding: 30px 20px; /* Компактные отступы внутри */
            border-radius: 24px; /* Чуть меньше скругление */

            /* На мобильных блюр может тормозить, можно чуть уменьшить, но оставим для красоты */
            backdrop-filter: blur(20px) saturate(80%);
        }

        .main-title {
            font-size: 26px; /* Значительно меньше шрифт */
            letter-spacing: -0.5px;
            margin-bottom: 20px;
            padding-bottom: 20px;
        }

        .subtitle {
            font-size: 18px;
            line-height: 1.3;
            margin-bottom: 15px;
        }

        .description {
            font-size: 15px; /* Текст читаемый, но компактный */
            max-width: 100%;
            line-height: 1.5;
            text-align: left; /* На мобильных длинный текст часто удобнее читать слева */
            /* Или text-align: center; если хотите оставить по центру */
            text-align: center;
        }
    }

    /* Для совсем маленьких экранов (iPhone 5/SE) */
    @media (max-width: 360px) {
        .main-title { font-size: 22px; }
        .subtitle { font-size: 16px; }
    }

/*header menu*/
 .g26-header {
        position: sticky; /* Прилипает к верху */
        top: 0;
        z-index: 90;

        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 5px 2%; /* Отступы по бокам */

        /* Эффект стекла для самой шапки */
        /*background: rgba(20, 20, 20, 0.6); /* Полупрозрачный черный */
        background: linear-gradient(to right, #41016DE6, #860300);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

        transition: all 0.3s ease;
    }

    /* Логотип */
    .g26-logo img {
        display: block;
        max-height: 40px; /* Ограничение высоты лого */
        width: auto;
        transition: transform 0.3s ease;
    }

    .g26-logo:hover img {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
    }

    /* Контейнер для кнопок */
    .g26-nav {
        display: flex;
        gap: 15px; /* Расстояние между кнопками */
    }

    /* --- СТИЛИ КНОПОК (g26-btn) --- */
    .g26-btn {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 24px; /* Чуть компактнее для шапки */

        box-sizing: border-box;
        text-decoration: none;
        outline: none;

        /* Glass Style */
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;

        box-shadow: 0 4px 15px rgba(0,0,0,0.2);

        color: white;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap; /* Текст не переносится */
    }

    .g26-btn svg {
        width: 20px;
        height: 20px;
        fill: white;
        flex-shrink: 0;
    }

    .g26-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    .g26-btn:active {
        transform: translateY(0);
    }

    /* --- АДАПТИВНОСТЬ (Mobile) --- */
    @media (max-width: 768px) {
        .g26-header {
           /* flex-direction: column; /* Элементы друг под другом */
            gap: 5px;
            padding: 10px 2px;
        }

        .g26-logo img {
            max-height: 50px; /* Чуть крупнее лого на мобильном, так как оно одно в строке */
        }

        .g26-nav {
            width: 100%;
            justify-content: center; /* Кнопки по центру */
            gap: 10px;
        }

        .g26-btn {
            width: 100%; /* Кнопки растягиваются на всю ширину (опционально) */
            justify-content: center;
            padding: 12px 15px;
            font-size: 14px;
        }
    }

    /* Для совсем маленьких экранов (iPhone SE и т.д.) */
    @media (max-width: 360px) {
        .g26-btn span {
             /* Если нужно скрыть текст и оставить только иконки, раскомментируйте: */
             /* display: none; */
        }
    }


.glass-compact-card {
    /* Фиксируем структуру */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    /* Компактные отступы */
    padding: 12px 16px;

    /* Темное стекло */
    background: rgba(30, 30, 35, 0.60);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Границы и скругление */
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 18px; /* Чуть меньше радиус для компактности */

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Ховер эффект */
.glass-compact-card:hover {
    background: rgba(45, 45, 50, 0.8);
    transform: scale(1.01);
    border-color: rgba(129, 140, 248, 0.4);
}

/* Компактная иконка */
.glass-compact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px; /* Скругленный квадрат (Squircle) как в iOS */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Цена-кнопка */
.glass-compact-price {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s;
}

.glass-compact-card:hover .glass-compact-price {
    background: #6366f1; /* Indigo при наведении */
}



        .main-title {
            font-size: 24px;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 16px;
            color: #fff;
            letter-spacing: -0.5px;
        }

        .subtitle {
            font-size: 20px;
           color: rgb(255 255 255);
            max-width: 600px;
            margin: 0 auto;
            font-weight: 400;
            line-height: 1.5;
        }

        .accent {
            color: #0A84FF;
        }

        /* Анимация появления */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .main-title, .subtitle {
            animation: fadeUp 0.8s ease-out forwards;
        }

        .subtitle {
            animation-delay: 0.1s;
            opacity: 0;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .main-title {
                font-size: 24px;
            }

            .subtitle {
                font-size: 18px;
            }
        }

        @media (max-width: 480px) {
            .main-title {
                font-size: 20px;
            }

            .subtitle {
                font-size: 16px;
            }


        }


        /* Эффект стеклянного морфизма для iOS */
        .glass-effect {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(50px);
            -webkit-backdrop-filter: blur(50px);
            border-radius: 16px;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);  /* было 5.1 — невалидный alpha */
            margin: 10px auto;
        }

  /* iOS System Font Stack */

        .hidden {
            display: none !important;
        }
        /* iOS Slider */
        input[type=range] {
            -webkit-appearance: none;
            width: 100%;
            background: transparent;
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            height: 28px;
            width: 28px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            cursor: pointer;
            margin-top: -12px;
        }
        input[type=range]::-webkit-slider-runnable-track {
            width: 100%;
            height: 4px;
            cursor: pointer;
            background: #E5E5EA;
            border-radius: 999px;
        }

        /* iOS Card & Touch Feedback */
        .ios-card {
            background-color: #FFFFFF;
            border-radius: 16px;
            transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.2s;
        }
        .ios-card:active {
            transform: scale(0.96);
            background-color: #F2F2F7;
        }

        /* ============================================================
           Segmented Control — iOS 26 "Liquid Glass" style
           - Контейнер: glass material с сильным blur+saturate
           - Кнопки: flex: 1 0 auto → распределяются равномерно когда
             помещаются, скроллятся когда нет
           - Pill: position absolute, JS считает offsetLeft/offsetWidth
             активной кнопки, transition с Apple spring easing
           - Внимание к деталям: SF Pro letter-spacing, tap-scale,
             hover на desktop, inset highlight для depth
           ============================================================ */
        .segmented-control {
            position: relative;
            display: flex;
            flex-wrap: nowrap;
            width: 100%;
            padding: 4px;
            box-sizing: border-box;

            /* Liquid Glass material */
            background: rgba(118, 118, 128, 0.24);
            backdrop-filter: blur(50px) saturate(180%);
            -webkit-backdrop-filter: blur(50px) saturate(180%);

            border-radius: 12px;
            border: 0.5px solid rgba(255, 255, 255, 0.06);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.06),
                0 1px 2px rgba(0, 0, 0, 0.04);

            /* Горизонтальный скролл при переполнении */
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;

            /* Скрываем скроллбар */
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .segmented-control::-webkit-scrollbar {
            display: none;
        }

        .segment-btn {
            position: relative;
            z-index: 2;

            /* flex-grow: 1 — занимают свободное место равномерно
               flex-shrink: 0 — НЕ сжимаются (значит при переполнении уйдут в скролл) */
            flex: 1 0 auto;
            min-width: max-content;

            padding: 8px 18px;
            box-sizing: border-box;

            /* SF Pro Text */
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
            font-size: 13px;
            font-weight: 510;             /* SF Pro Medium */
            letter-spacing: -0.08px;
            text-align: center;
            white-space: nowrap;
            line-height: 1.2;

            color: rgba(255, 255, 255, 0.6);

            border-radius: 8px;
            cursor: pointer;
            user-select: none;
            -webkit-user-select: none;
            -webkit-tap-highlight-color: transparent;

            transition:
                color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);

            scroll-snap-align: center;
        }

        @media (hover: hover) {
            .segment-btn:not(.active):hover {
                color: rgba(255, 255, 255, 0.85);
            }
        }

        .segment-btn.active {
            color: #ffffff;
            font-weight: 590;             /* heavier при активном */
            letter-spacing: -0.2px;
        }

        /* Tap feedback — iOS-style press */
        .segment-btn:active {
            transform: scale(0.96);
        }

        /* The pill */
        .segment-bg {
            position: absolute;
            z-index: 1;

            top: 4px;                     /* совпадает с padding контейнера */
            bottom: 4px;
            left: 0;
            width: 0;                     /* JS зальёт реальную ширину */

            background-color: #0A84FF;    /* системный iOS blue */
            background-image: linear-gradient(180deg,
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0) 100%);

            border-radius: 8px;

            box-shadow:
                0 0 0 0.5px rgba(0, 0, 0, 0.04),
                0 3px 10px rgba(10, 132, 255, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);

            /* Apple spring easing */
            transition:
                transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
                width 0.45s cubic-bezier(0.32, 0.72, 0, 1);

            pointer-events: none;
            will-change: transform, width;
        }


    #planModal {
 z-index: 100 !important; /* Гарантируем, что ваше окно будет выше меню */
            transition: opacity 0.3s ease, visibility 0.3s ease;

            opacity: 0;

            visibility: hidden;
 }


        #planModal.open {
            opacity: 1;
            visibility: visible;
        }
        #modalContent {
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            transform: translateY(100%);
        }
        #planModal.open #modalContent {
            transform: translateY(0);
        }

        .blur-backdrop {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background-color: rgba(255, 255, 255, 0.7);
        }

        /* Customizing Intl-Tel-Input */
        .iti { width: 100%; }
        .iti__flag-container { border-radius: 12px 0 0 12px; background: transparent; }
        .iti__selected-flag { background-color: transparent !important; padding-left: 12px; }
        .iti input {
            padding-left: 90px !important;
            background-color: #F2F2F7;
            border-radius: 12px;
            width: 100%;
            height: 56px;
            border: none;
            font-size: 17px;
            color: #000;
        }
        .iti input:focus {
            outline: 2px solid rgba(0, 122, 255, 0.5);
            background-color: #fff;
        }
        .iti__country-list {
            z-index: 100 !important;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            border: none;
            margin-top: 8px;
            overflow-x: hidden;
        }
        .iti__dial-code { color: #666; font-weight: 500; }

        /* Fade transition */
        .step-transition { transition: opacity 0.3s ease, transform 0.3s ease; }
        .step-hidden { display: none; opacity: 0; transform: translateX(20px); }
        .step-visible { display: block; opacity: 1; transform: translateX(0); }

        /* Payment Button */
        .pay-btn { transition: transform 0.1s; }
        .pay-btn:active { transform: scale(0.98); }


 .loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #555;
    font-family: Arial, sans-serif;
}

.loader {
    border: 6px solid #f3f3f3; /* Светло-серый */
    border-top: 6px solid #3498db; /* Синий */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
 .floats {
    position: fixed;
    right: 1px;
    bottom: 150px;
    transform: translate(-50%, -50%);
    background: #fff0; /*цвет кнопки*/
    border-radius: 50%;
    width: 50px; /*ширина кнопки*/
    height: 50px; /*высота кнопки*/

    text-align: center;
    line-height: 53px; /*центровка иконки в кнопке*/
    font-size: 35px; /*размер иконки*/
    z-index: 999;
}


.floats:after{
    animation-delay: .5s;
}
 .floats:before,
.floats:after {
    content: " ";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #25d366; /*цвет анимированных волн от кнопки*/
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

@keyframes animate
{
    0%
    {
        transform: scale(0.5);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: scale(1.2);
        opacity: 0;
    }
}



    .lang-select {
      margin-bottom: 20px;
      text-align: right;
    }

    select {
      padding: 6px 12px;
      font-size: 16px;
    }

    .faq-container {
      max-width: 800px;
      margin: auto;
      background: #fff;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .faq-item {
      border-bottom: 1px solid #e0e0e0;
    }

    .faq-question {
      cursor: pointer;
      padding: 16px;
      font-weight: 600;
      background: #f8f8f8;
      position: relative;
          color: #555;
    }

    .faq-question::after {
      content: '+';
      position: absolute;
      right: 20px;
      font-size: 20px;
      transition: transform 0.3s;
    }

    .faq-question.active::after {
      content: '−';
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 16px;
         background: #001965;
      transition: all 0.3s ease;
    }

    .faq-answer.open {
      max-height: 500px;
      padding-bottom: 16px;
    }
    .esim-info-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  max-width: 820px;
  margin: 20px auto;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  color: #1c1c1e;
  line-height: 1.6;
  transition: all 0.3s ease-in-out;
}

.esim-info-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 24px;
  color: #000;
}

.esim-info-container p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #444;
}

.esim-info-container ul,
.esim-info-container ol {
  margin-left: 20px;
  padding-left: 0;
}

.esim-info-container ul li,
.esim-info-container ol li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.esim-info-container ul li::marker,
.esim-info-container ol li::marker {
  color: #007aff; /* Apple blue */
}

@media (max-width: 768px) {
  .esim-info-container {
    padding: 20px;
    margin: 2px;
  }

  .esim-info-container h3 {
    font-size: 1.2rem;
  }

  .esim-info-container p,
  .esim-info-container ul li,
  .esim-info-container ol li {
    font-size: 0.95rem;
  }
}

/* ============================================================
   Fix: цена в шапке модалки не перекрывает название пакета
   Дописать в конец /esim.kz/mytests/travel ios/ios_01.css
   ============================================================ */

/* Заголовок может переноситься на несколько строк (отменяем truncate) */
#modalTitle {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
    font-size: 19px !important;
    line-height: 1.2 !important;
}

/* Шапка: выравниваем по верху, чтобы кнопка ✕ не прыгала
   при многострочном заголовке */
#planModal .blur-backdrop > .flex.justify-between {
    align-items: flex-start !important;
}

/* Цена в шапке мешает на узких экранах — там места впритык.
   На «Далее» цена и так видна большой кнопкой, так что в шапке
   её скрываем на мобильниках. */
@media (max-width: 480px) {
    #headerPriceDisplay {
        display: none !important;
    }
}

/* На широких экранах оставляем цену в шапке, но
   уменьшаем её, чтобы не прижималась вплотную к заголовку */
@media (min-width: 481px) {
    #headerPriceDisplay {
        padding: 4px 10px !important;
    }
    #headerPriceValue {
        font-size: 14px !important;
    }
}
/* ═══ Таб «Акции» ═══ */
/* Оранжевая пилюля когда активен таб акций (класс ставит wpack1.js) */
.segment-bg.pill-special {
    background-color: #FF6B35;
    background-image: linear-gradient(180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 0.5px rgba(0, 0, 0, 0.04),
        0 3px 10px rgba(255, 107, 53, 0.35);
}

/* На очень узких экранах ужимаем кнопки, чтобы 4 таба влезли без скролла */
@media (max-width: 400px) {
    .segment-btn { padding: 8px 12px; }
}