.nivelz-tabs {
    --nivelz-yellow: #ffd400;
    --nivelz-black: #050505;
    --nivelz-white: #ffffff;
    display: flex;
    gap: 18px;
    width: 100%;
    min-height: 330px;
}

.nivelz-tab {
    position: relative;
    flex: 0.72;
    min-height: 330px;
    border-radius: 30px;
    overflow: hidden;
    background-image: var(--nivelz-tab-bg);
    background-size: cover;
    background-position: center;
    isolation: isolate;
    transition: flex 0.45s ease, min-height 0.45s ease, transform 0.25s ease;
    cursor: pointer;
}

.nivelz-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
    z-index: -1;
}

.nivelz-tab.is-active {
    flex: 2.35;
    cursor: default;
}

.nivelz-tab__button {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    text-align: left;
}

.nivelz-tab.is-active .nivelz-tab__button {
    pointer-events: none;
}

.nivelz-tab__title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 170px;
    max-width: calc(100% - 45px);
    background: var(--nivelz-white);
    color: #1f1f1f;
    border-radius: 999px;
    padding: 24px 15px;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 16px 35px rgba(0,0,0,0.08);
    transition: all 0.45s ease;
    white-space: nowrap;
}

.nivelz-tab.is-active .nivelz-tab__title {
    left: 28px;
    top: 28px;
    transform: none;
}

.nivelz-tab__link {
    position: absolute;
    right: 28px;
    top: 28px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #171717;
    color: var(--nivelz-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 46px;
    line-height: 1;
    font-weight: 900;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.94);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s ease;
}

.nivelz-tab.is-active .nivelz-tab__link {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nivelz-tab__link:hover,
.nivelz-tab__link:focus {
    background: #000;
    color: var(--nivelz-yellow);
}

.nivelz-tab__description {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    background: var(--nivelz-black);
    color: var(--nivelz-yellow);
    border-radius: 16px;
    padding: 17px 22px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    z-index: 3;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nivelz-tab.is-active .nivelz-tab__description {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nivelz-tabs {
        flex-direction: column;
        min-height: 0;
    }

    .nivelz-tab,
    .nivelz-tab.is-active {
        flex: none;
        min-height: 160px;
    }

    .nivelz-tab.is-active {
        min-height: 390px;
    }

    .nivelz-tab__title {
        padding: 21px 30px;
    }
}

@media (max-width: 640px) {
    .nivelz-tabs {
        gap: 14px;
    }

    .nivelz-tab,
    .nivelz-tab.is-active {
        border-radius: 24px;
    }

    .nivelz-tab.is-active {
        min-height: 420px;
    }

    .nivelz-tab__title {
        min-width: 145px;
        padding: 18px 24px;
        font-size: 14px;
        max-width: calc(100% - 35px);
    }

    .nivelz-tab.is-active .nivelz-tab__title {
        left: 18px;
        top: 18px;
    }

    .nivelz-tab__link {
        right: 18px;
        top: 18px;
        width: 58px;
        height: 58px;
        font-size: 36px;
    }

    .nivelz-tab__description {
        left: 18px;
        right: 18px;
        bottom: 18px;
        font-size: 14px;
        padding: 15px 18px;
    }
}
