.kdba-section,
.kdba-section * {
    box-sizing: border-box;
}

.kdba-section button,
.kdba-section a {
    font-family: inherit;
}

.kdba-section button {
    appearance: none;
    -webkit-appearance: none;
    text-transform: none;
}

.kdba-section {
    --kdba-accent: #5b8fe0;
    --kdba-accent-2: #a56bf2;
    --kdba-gap: 26px;
    --kdba-cols: 4;
    --kdba-tablet-cols: 2;
    --kdba-mobile-slide: 88%;
    --kdba-button-bg: var(--kdba-accent);
    --kdba-button-bg-2: var(--kdba-accent-2);
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 78px 20px 70px;
    background: #ffffff;
    color: #08142f;
    font-family: "Poppins", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}

.kdba-container {
    position: relative;
    z-index: 2;
    width: min(100%, 1400px);
    margin: 0 auto;
}

.kdba-decoration {
    position: absolute;
    z-index: 0;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(91, 143, 224, 0.13), rgba(165, 107, 242, 0.08));
    filter: blur(0.2px);
}

.kdba-decoration-left {
    left: -185px;
    top: 150px;
}

.kdba-decoration-right {
    right: -190px;
    top: 92px;
}

.kdba-dot-grid {
    position: absolute;
    left: 24px;
    top: 28px;
    width: 170px;
    height: 145px;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
    background-image: radial-gradient(rgba(8, 20, 47, 0.13) 2.6px, transparent 2.8px);
    background-size: 26px 26px;
}

.kdba-header {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.kdba-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(91, 143, 224, 0.48);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--kdba-accent);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(91, 143, 224, 0.08);
}

.kdba-title {
    margin: 0;
    color: #08142f;
    font-size: clamp(38px, 4.55vw, 72px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.kdba-title span {
    display: inline-block;
}

.kdba-title .kdba-gradient {
    display: block;
    margin-top: 5px;
    background: linear-gradient(90deg, var(--kdba-accent), var(--kdba-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kdba-description {
    max-width: 680px;
    margin: 22px auto 0;
    color: #5a6684;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.55;
}

.kdba-carousel-wrap {
    position: relative;
    margin-top: 34px;
}

.kdba-carousel-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    overscroll-behavior-x: contain;
}

.kdba-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.kdba-carousel-viewport:active {
    cursor: grabbing;
}

.kdba-track {
    display: flex;
    align-items: stretch;
    gap: var(--kdba-gap);
    min-width: 100%;
}

.kdba-card {
    flex: 0 0 calc((100% - ((var(--kdba-cols) - 1) * var(--kdba-gap))) / var(--kdba-cols));
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(91, 143, 224, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(8, 20, 47, 0.09);
    transform: translateZ(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.kdba-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 143, 224, 0.26);
    box-shadow: 0 24px 58px rgba(8, 20, 47, 0.13);
}

.kdba-ba {
    position: relative;
    width: 100%;
    height: 350px;
    min-height: 180px;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    user-select: none;
    touch-action: pan-x;
}

.kdba-ba-img,
.kdba-after-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.kdba-ba-img {
    display: block;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.kdba-before-img {
    z-index: 1;
}

.kdba-after-mask {
    z-index: 2;
    overflow: hidden;
    clip-path: inset(var(--pos) 0 0 0);
    will-change: clip-path;
}

.kdba-divider {
    position: absolute;
    top: var(--pos);
    left: 0;
    right: 0;
    z-index: 3;
    height: 2px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(91, 143, 224, 0.10), 0 0 26px rgba(8, 20, 47, 0.14);
    transform: translateY(-50%);
    pointer-events: auto;
    cursor: ns-resize;
}

.kdba-handle {
    position: absolute;
    left: 50%;
    top: var(--pos);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 50px;
    height: 50px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    outline: none;
    color: var(--kdba-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(8, 20, 47, 0.18);
    transform: translate(-50%, -50%);
    cursor: ns-resize;
    touch-action: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kdba-handle:hover,
.kdba-handle:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 14px 36px rgba(8, 20, 47, 0.24);
}

.kdba-handle-icon {
    display: block;
    width: 28px;
    height: 28px;
    color: currentColor !important;
    fill: none !important;
    stroke: currentColor !important;
    pointer-events: none;
}

.kdba-handle-icon path {
    fill: none !important;
    stroke: currentColor !important;
}

.kdba-labels {
    position: absolute;
    inset: 16px 22px;
    z-index: 5;
    pointer-events: none;
}

.kdba-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 34px;
    padding: 7px 15px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(8, 20, 47, 0.18);
}

.kdba-label-before {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(43, 51, 71, 0.78);
}

.kdba-label-after {
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--kdba-accent), var(--kdba-accent-2));
}

.kdba-card-body {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 24px 24px 26px;
}

.kdba-card-body.no-logo {
    display: block;
}

.kdba-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(91, 143, 224, 0.12);
    border-radius: 50%;
    background: #f2f7ff;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.kdba-card-logo-img {
    display: block;
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.kdba-card-title {
    margin: 0 0 8px;
    color: #17254a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.kdba-card-text {
    margin: 0;
    color: #53617e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.62;
}

.kdba-nav {
    position: absolute;
    top: 47%;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(91, 143, 224, 0.18) !important;
    border-radius: 50% !important;
    color: var(--kdba-accent) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 16px 34px rgba(8, 20, 47, 0.12);
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.kdba-nav span {
    font-size: 22px;
    line-height: 1;
}

.kdba-nav-prev {
    left: -23px;
}

.kdba-nav-next {
    right: -23px;
}

.kdba-nav:hover,
.kdba-nav:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--kdba-accent), var(--kdba-accent-2)) !important;
    transform: translateY(-50%) scale(1.04);
}

.kdba-nav.is-disabled {
    opacity: 0.34;
    pointer-events: none;
}

.kdba-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 18px;
    margin-top: 0;
}

.kdba-dot {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(91, 143, 224, 0.25);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

.kdba-dot.is-active {
    width: 30px;
    background: linear-gradient(90deg, var(--kdba-accent), var(--kdba-accent-2));
}

.kdba-button-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.kdba-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 66px;
    min-width: 330px;
    padding: 18px 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--kdba-button-bg), var(--kdba-button-bg-2));
    box-shadow: 0 18px 36px rgba(91, 143, 224, 0.30);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kdba-main-btn:hover,
.kdba-main-btn:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(91, 143, 224, 0.37);
}

.kdba-main-btn i {
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-1px);
}

@media (max-width: 1280px) {
    .kdba-nav-prev {
        left: 6px;
    }

    .kdba-nav-next {
        right: 6px;
    }
}

@media (max-width: 1024px) {
    .kdba-section {
        padding-top: 64px;
        padding-bottom: 60px;
    }

    .kdba-card {
        flex-basis: calc((100% - ((var(--kdba-tablet-cols) - 1) * var(--kdba-gap))) / var(--kdba-tablet-cols));
    }

    .kdba-title {
        font-size: clamp(36px, 6.8vw, 58px);
    }

    .kdba-description {
        font-size: 17px;
    }

    .kdba-nav {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 767px) {
    .kdba-section {
        padding: 54px 0 56px;
    }

    .kdba-container {
        width: 100%;
    }

    .kdba-header {
        width: calc(100% - 32px);
        margin-bottom: 22px;
    }

    .kdba-badge {
        min-height: 34px;
        padding: 7px 17px;
        font-size: 12px;
        letter-spacing: 0.12em;
    }

    .kdba-title {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.02;
        letter-spacing: -0.04em;
    }

    .kdba-description {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.55;
    }

    .kdba-carousel-wrap {
        margin-top: 20px;
    }

    .kdba-carousel-viewport {
        padding: 8px 16px 18px;
        scroll-padding-left: 16px;
    }

    .kdba-track {
        gap: var(--kdba-gap);
    }

    .kdba-card {
        flex-basis: var(--kdba-mobile-slide);
        scroll-snap-align: center;
        border-radius: 19px;
    }

    .kdba-card:hover {
        transform: none;
    }

    .kdba-ba {
        height: 320px;
        border-radius: 19px 19px 0 0;
    }

    .kdba-handle {
        width: 46px;
        height: 46px;
    }

    .kdba-labels {
        inset: 13px 14px;
    }

    .kdba-label {
        min-width: 74px;
        min-height: 31px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .kdba-card-body {
        grid-template-columns: 58px 1fr;
        gap: 13px;
        min-height: 112px;
        padding: 19px 18px 21px;
    }

    .kdba-logo-box {
        width: 52px;
        height: 52px;
        box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.58);
    }

    .kdba-card-logo-img {
        max-width: 38px;
        max-height: 38px;
    }

    .kdba-card-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .kdba-card-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .kdba-nav {
        display: none;
    }

    .kdba-dots {
        margin-top: 2px;
    }

    .kdba-button-wrap {
        width: calc(100% - 32px);
        margin: 26px auto 0;
    }

    .kdba-main-btn {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        padding: 16px 24px;
        font-size: 16px;
    }

    .kdba-decoration-left {
        left: -275px;
        top: 160px;
    }

    .kdba-decoration-right {
        right: -280px;
        top: 60px;
    }

    .kdba-dot-grid {
        display: none;
    }
}
