.tobor-wbox {
    background-color: #ffffff;
    padding: 64px 96px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tobor-wbox__title {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #171717;
}

.tobor-wbox__cards,
.tobor-wbox__tables {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
}

.tobor-wbox__cards {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.tobor-wbox__card {
    flex: 1;
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: #f8fafc;
    border-radius: 16px;
}

.tobor-wbox__card--wide {
    flex: 0 0 49%;
}

.tobor-wbox__card-caption {
    width: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #171717;
    text-align: center;
}

.tobor-wbox__card-img {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tobor-wbox__card-img img {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
    display: block;
}

.tobor-wbox__tables {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.tobor-wbox__table {
    flex: 1;
    min-width: 0;
}

/* Layout 2 — Figma node 2163:25178.
   Existing blocks remain on Layout 1 unless this variant is selected. */
.tobor-wbox--layout_2 .tobor-wbox__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 222px);
    grid-auto-flow: row;
    align-items: stretch;
}

.tobor-wbox--layout_2 .tobor-wbox__card {
    min-height: 0;
    gap: 8px;
}

.tobor-wbox--layout_2 .tobor-wbox__card--wide {
    grid-row: span 2;
    width: auto;
    min-height: 476px;
    gap: 32px;
}

.tobor-wbox--layout_2 .tobor-wbox__card-img img {
    width: 100%;
    height: 125px;
    max-height: 125px;
}

.tobor-wbox--layout_2 .tobor-wbox__card--wide .tobor-wbox__card-img img {
    height: 100%;
    max-height: 323px;
}

.tobor-wbox--layout_2 .tobor-wbox__tables {
    flex-direction: column;
    gap: 16px;
}

.tobor-wbox--layout_2 .tobor-wbox__table {
    width: 100%;
}

/* Carousel indicator — only shown while the layout 2 slider is active. */
.tobor-wbox__dots {
    display: none;
}

.tobor-wbox__dots:empty {
    display: none;
}

.tobor-wbox__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.tobor-wbox__dot.is-active {
    background-color: #506ccd;
}

.tobor-stable {
    background-color: #ffffff;
    width: 100%;
}

.tobor-stable__header {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    background-color: #eff6ff;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
}

.tobor-stable__header.is-open {
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e8e8e8;
}

.tobor-stable__title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #171717;
}

.tobor-stable__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.tobor-stable__icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.tobor-stable__header.is-open .tobor-stable__icon {
    transform: rotate(180deg);
}

.tobor-stable__body {
    width: 100%;
}

.tobor-stable__body.is-collapsed {
    display: none;
}

.tobor-stable__row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.tobor-stable__cell {
    border-bottom: 1px solid #e8e8e8;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #525252;
}

.tobor-stable__cell--label {
    flex: 0 0 170px;
    width: 170px;
    font-weight: 500;
    color: #171717;
}

.tobor-stable__cell--value {
    flex: 1;
    min-width: 0;
}

@media (max-width: 767px) {
    .tobor-stable__cell--label {
        flex: 0 0 120px;
        width: 120px;
    }
}


@media (max-width: 1024px) {
    .tobor-wbox {
        padding: 64px 32px;
    }

    .tobor-wbox__cards,
    .tobor-wbox__tables {
        flex-direction: column;
    }

    .tobor-wbox__card,
    .tobor-wbox__card--wide,
    .tobor-wbox__table {
        width: 100%;
        flex: 1 1 auto;
    }

    .tobor-wbox--layout_2 .tobor-wbox__cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__card--wide {
        min-height: 472px;
    }
}

@media (max-width: 767px) {
    .tobor-wbox {
        padding: 32px 16px;
    }

    .tobor-wbox__title {
        font-size: 28px;
        line-height: 32px;
    }

    .tobor-wbox__cards {
        gap: 16px;
    }

    .tobor-wbox__card {
        gap: 24px;
        padding: 24px 16px;
        min-height: 0;
    }

    /* Layout 2 responsive — Figma node 2870:52115.
       Cards turn into a horizontal snap slider: two rows of cards flowing into
       columns, each column one slide. A wide card spans both rows. */
    .tobor-wbox--layout_2 .tobor-wbox__cards {
        position: relative;
        grid-template-columns: none;
        grid-template-rows: repeat(2, 214px);
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tobor-wbox--layout_2 .tobor-wbox__cards::-webkit-scrollbar {
        display: none;
    }

    .tobor-wbox--layout_2 .tobor-wbox__card {
        grid-row: auto;
        min-height: 0;
        gap: 8px;
        padding: 24px 16px;
        scroll-snap-align: start;
    }

    .tobor-wbox--layout_2 .tobor-wbox__card--wide {
        grid-row: span 2;
        min-height: 0;
        gap: 24px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__card-img img {
        height: 125px;
        max-height: 125px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__card--wide .tobor-wbox__card-img img {
        height: 100%;
        max-height: 323px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__dots {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 8px 16px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__dots:empty {
        display: none;
    }

    /* Figma stacks cards / dots / tables 16px apart, but keeps 32px under the
       heading, so the cards row carries the extra half itself. */
    .tobor-wbox--layout_2 {
        gap: 16px;
    }

    .tobor-wbox--layout_2 .tobor-wbox__cards {
        margin-top: 16px;
    }

    .tobor-stable__cell {
        padding-left: 16px;
        padding-right: 16px;
    }
}
