.as-slider-wrapper[data-as-slider="1"] {
    width: min(100%, var(--as-slider-size, 360px)) !important;
    max-width: var(--as-slider-size, 360px) !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-self: start !important;
    justify-self: start !important;
    box-sizing: border-box !important;
    margin: 1.25rem auto !important;
}

.as-slider-wrapper[data-as-slider="1"] .as-slider {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1;
    background: #f4f7fb;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    container-type: inline-size;
}

.as-slider-wrapper[data-as-slider="1"] .as-slider__viewport {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.as-slider__track {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    transition: transform var(--as-transition-duration, 650ms) cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.as-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: clamp(12px, 3.5vw, 18px);
    padding: clamp(12px, 5cqw, 18px);
}

.as-slide__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(12px, 3vw, 18px);
    gap: clamp(12px, 4cqw, 18px);
    min-height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
}

.as-slide__meta {
    margin: 0;
    text-align: center;
}

.as-slide__counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 2cqw, 10px) clamp(12px, 4cqw, 16px);
    border-radius: 999px;
    background: #eef2f7;
    color: #526172;
    font-size: clamp(0.74rem, 2vw, 0.95rem);
    font-size: clamp(0.74rem, 4.8cqw, 0.95rem);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.as-slide__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(12px, 2.8vw, 18px);
    gap: clamp(12px, 4.4cqw, 18px);
    min-height: 0;
}

.as-slide__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    text-align: center;
    background: var(--as-step-color, #e8eef5);
    color: #102132;
    border-radius: 18px;
    padding: clamp(16px, 4vw, 24px);
    padding: clamp(16px, 6cqw, 24px);
    font-size: clamp(1rem, 4.2vw, 1.7rem);
    font-size: clamp(1rem, 9cqw, 1.7rem);
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.as-slide__text {
    margin: 0;
    color: #344054;
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    font-size: clamp(0.8rem, 5cqw, 1rem);
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .as-slider-wrapper[data-as-slider="1"] {
        width: min(100%, var(--as-slider-size, 360px)) !important;
        max-width: min(100%, var(--as-slider-size, 360px)) !important;
    }

    .as-slide {
        padding: 12px;
    }
}

@media (max-width: 260px) {
    .as-slide__counter {
        font-size: 0.72rem;
    }

    .as-slide__badge {
        font-size: 0.94rem;
        line-height: 1.08;
    }

    .as-slide__text {
        font-size: 0.74rem;
        line-height: 1.28;
    }
}

@media (prefers-reduced-motion: reduce) {
    .as-slider__track {
        transition: none;
    }
}
