@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* ── Breadcrumb [sst_breadcrumb] ─────────────────────────────────── */
.sst-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #888;
}

.sst-breadcrumb__link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.sst-breadcrumb__link:hover {
    color: #0d99ff;
    text-decoration: none;
}

.sst-breadcrumb__sep {
    color: #bbb;
    font-size: 13px;
    line-height: 1;
    user-select: none;
}

/* ── Секция ──────────────────────────────────────────────────────── */
.sst-section {
    width: 100%;
    background: #f3f4f6;
    padding: 5px 32px 40px;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
    color: #252c32;
    overflow: visible;
}

/* ════════════════════════════════════════════════════════════════════
   DESKTOP: навигация вкладок
   ════════════════════════════════════════════════════════════════════ */
/* Стрелки абсолютно вынесены за пределы — viewport занимает 100% ширины */
.sst-nav-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 35px;
    position: relative;
}

/* Окно просмотра — показывает ровно 3 вкладки */
.sst-tabs-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    min-width: 0;
    /* clip-path: жёсткий обрез, игнорирует clip-path дочерних элементов */
    clip-path: inset(0);
}

/* Внутренняя полоса вкладок — сдвигается transform'ом */
.sst-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* ── Вкладка: бордер по всем сторонам через фон + ::before ──────────
   border на clip-path элементе обрезается по углам, поэтому:
   • Сам .sst-tab — фон = цвет бордера (#DDE2E4)
   • ::before — чуть меньший ромб сверху = заливка белым
   Это даёт видимую "рамку" по всему контуру ромба.           ──── */
.sst-tab {
    flex: 0 0 auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: none;
    background: #DDE2E4;
    color: #1d4ed8 !important;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    clip-path: polygon(
        16px 0,
        calc(100% - 16px) 0,
        100% 50%,
        calc(100% - 16px) 100%,
        16px 100%,
        0 50%
    );
    box-sizing: border-box;
    position: relative;
}

/* Внутренняя белая заливка — создаёт эффект бордера по всему контуру */
.sst-tab::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #ffffff;
    clip-path: polygon(
        16px 0,
        calc(100% - 16px) 0,
        100% 50%,
        calc(100% - 16px) 100%,
        16px 100%,
        0 50%
    );
    z-index: 0;
    transition: background 0.2s;
}

/* Контент поверх ::before */
.sst-tab > * {
    position: relative;
    z-index: 1;
}

.sst-tab:hover:not(.sst-tab--active) {
    transform: translateY(-1px);
}

.sst-tab:hover:not(.sst-tab--active)::before {
    background: #eaf4ff;
}

/* Активная вкладка: фон синий, ::before убираем */
.sst-tab--active {
    background: #0D99FF !important;
    background-image: none !important;
    color: #ffffff !important;
}

.sst-tab--active::before {
    display: none;
}

/* ── Изображение в вкладке ───────────────────────────────────────── */
.sst-tab__img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: filter 0.2s ease;
}

/* Неактивная вкладка: иконка #1d4ed8 через filter */
.sst-tab:not(.sst-tab--active) .sst-tab__img {
    filter: brightness(0) saturate(100%)
            invert(24%) sepia(74%) saturate(1600%)
            hue-rotate(213deg) brightness(92%) contrast(101%);
}

/* Активная вкладка: иконка белая */
.sst-tab--active .sst-tab__img {
    filter: brightness(0) invert(1);
}

.sst-tab__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Стрелки: абсолютно позиционированы вне строки вкладок ──────────
   Вынесены за края .sst-nav-wrap, вписываются в 32px паддинг секции. */
.sst-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 1.5px solid #1d4ed8;
    background: #ffffff;
    color: #1d4ed8;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    padding-bottom: 1px;
    transition: background 0.15s, color 0.15s;
    z-index: 5;
}

.sst-arrow--prev {
    left: -30px;
}

.sst-arrow--next {
    right: -30px;
    padding-left: 3px;
}

.sst-arrow:hover:not(:disabled) {
    background: #1d4ed8;
    color: #fff;
}

.sst-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ════════════════════════════════════════════════════════════════════
   Панели контента (desktop)
   ════════════════════════════════════════════════════════════════════ */
.sst-content-wrap { position: relative; }

.sst-panel {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.sst-panel--active { display: flex; }

/* ── Левая колонка ───────────────────────────────────────────────── */
.sst-info {
    max-width: 475px;
    width: 100%;
    flex-shrink: 0;
}

.sst-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
    color: #0d99ff;
}

.sst-description {
    font-size: 16px;
    line-height: 1.6;
    color: #252c32;
    margin: 0 0 24px;
}

.sst-description p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.sst-description p:last-child { margin-bottom: 0; }

.sst-description strong,
.sst-description b { font-weight: 700; color: #011530; }

.sst-description ul,
.sst-description ol { margin: 8px 0 12px 20px; padding: 0; }

.sst-description li { font-size: 16px; line-height: 1.6; margin-bottom: 4px; }

/* ── Кнопка ──────────────────────────────────────────────────────── */
.sst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 155px;
    height: 50px;
    background: #0d99ff;
    color: #ffffff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(13,153,255,0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sst-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(13,153,255,0.35);
    color: #fff;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════
   Hex-сетка  1/4/5/4/1
   W=80  H=92  gap=16  margin-top=-17 (honeycomb overlap)
   Ряды center-выровнены → автоматический сдвиг (W+gap)/2 = 48px
   ════════════════════════════════════════════════════════════════════ */
.sst-hex-area {
    width: 100%;
    max-width: 464px;      /* 5×80 + 4×16 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.sst-hex-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Все ряды кроме первого — отрицательный отступ для соты */
.sst-hex-row:not(:first-child) {
    margin-top: -17px;
}

/* Пути для скруглённых гексагонов устанавливаются через JS */
:root {
    --sst-hex-path:       polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    --sst-hex-path-inner: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.sst-hex {
    width: 80px;
    height: 92px;
    flex: 0 0 80px;
    clip-path: var(--sst-hex-path);
    background: #DDE2E4;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

.sst-hex::before {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: var(--sst-hex-path-inner);
    z-index: 0;
}

.sst-hex--ghost { pointer-events: none; }
.sst-hex--ghost::before { background: #ffffff; }

.sst-hex--active {
    background: #0d99ff;
    cursor: pointer;
}
.sst-hex--active::before { background: #0d99ff; }

a.sst-hex--active:hover {
    transform: scale(1.07);
    filter: brightness(1.12) drop-shadow(0 4px 12px rgba(25,119,240,.45));
}

.sst-hex__label {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 0 6px;
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE (≤ 768px) — аккордион
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .sst-section,
    .elementor .e-con-boxed .sst-section {
        padding-left:   0;
        padding-right:  0;
        padding-top:    0;
        padding-bottom: 0;
    }

    /* Активная панель: прозрачный фон */
    .sst-tabs-viewport .sst-tabs .sst-panel--active {
        background-color: transparent;
    }

    /* Скрываем стрелки */
    .sst-arrow { display: none !important; }

    /* Секция: убираем отступы */
    .sst-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Табы — колонка, на всю ширину */
    .sst-nav-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .sst-tabs-viewport {
        overflow: visible;
        width: 100%;
        max-width: none;
    }

    .sst-tabs {
        flex-direction: column;
        gap: 0;
        transform: none !important;
        width: 100%;
    }

    /* Вкладка — полная ширина, прямоугольная */
    .sst-tab {
        flex: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 52px;
        clip-path: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #DDE2E4;
        padding: 0 20px;
        justify-content: flex-start;
        font-size: 14px;
        background: transparent;
    }

    /* Убираем ::before на мобайле (нет ромба — нет нужды в слоях) */
    .sst-tab::before { display: none; }

    .sst-tab > * { position: static; z-index: auto; }

    .sst-tab:first-child { border-top: 1px solid #DDE2E4; }

    .sst-tab--active {
        background-color: #0d99ff !important;
        background-image: none !important;
        border-color: transparent;
    }

    /* Стрелка-индикатор аккордиона */
    .sst-tab::after {
        content: "›";
        margin-left: auto;
        font-size: 18px;
        transition: transform 0.25s ease;
        color: inherit;
        flex-shrink: 0;
    }

    .sst-tab--active::after {
        transform: rotate(90deg);
    }

    /* Скрываем общий контент-враппер — панели вставляются в DOM после вкладки */
    .sst-content-wrap { display: none; }

    /* Панель внутри аккордиона */
    .sst-panel {
        display: none;
        flex-direction: column;
        padding: 24px 16px;
        background: transparent;
        border-bottom: 1px solid #DDE2E4;
        gap: 24px;
    }

    .sst-panel--active { display: flex; }

    .sst-info { max-width: 100%; }

    .sst-title { font-size: 22px; }

    .sst-description { font-size: 15px; }

    /* Hex-сетка на мобайле — уменьшенная */
    .sst-hex-area {
        align-self: center;
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -60px;
    }
}

/* ── 479px и меньше ──────────────────────────────────────────────── */
@media (max-width: 479px) {

    .sst-section,
    .elementor .e-con-boxed .sst-section {
        width: 100%;
    }

    .sst-nav-wrap,
    .elementor .e-con-boxed .sst-nav-wrap {
        width: 100%;
    }

    .sst-section .sst-nav-wrap .sst-tabs-viewport {
        width: 100%;
    }

    .sst-nav-wrap .sst-tabs-viewport .sst-tabs {
        width: 100%;
    }

    .sst-tabs-viewport .sst-tabs .sst-tab {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        background-color: transparent !important;
    }

    .sst-tabs-viewport .sst-tabs .sst-tab--active {
        background-image: none !important;
        background-color: #0d99ff !important;
    }

    /* Elementor: шорткод на всю ширину */
    .elementor .e-con-boxed .e-con-inner .elementor-widget-shortcode,
    .elementor .e-con-boxed .e-con-inner .elementor-widget-shortcode .elementor-shortcode {
        width: 100% !important;
    }
}

/* ── 420px и меньше ──────────────────────────────────────────────── */
@media (max-width: 420px) {
    .sst-hex-area {
        transform: scale(0.65);
        margin-bottom: -105px;
    }
}
