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

.kdbag-section {
    --kdbag-accent: #5b8fe0;
    --kdbag-accent-2: #a56bf2;
    --kdbag-gap: 28px;
    --kdbag-cols: 3;
    --kdbag-tablet-cols: 2;
    --kdbag-mobile-cols: 1;
    --kdbag-button-bg: #5b8fe0;
    --kdbag-button-bg-2: #a56bf2;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #fff;
    padding: 80px 20px;
    font-family: Poppins, Inter, Arial, sans-serif;
    isolation: isolate;
}

.kdbag-section::before,
.kdbag-section::after {
    content: "";
    position: absolute;
    z-index: -2;
    pointer-events: none;
    border-radius: 999px;
}

.kdbag-section::before {
    width: 460px;
    height: 460px;
    left: -190px;
    top: 140px;
    background: linear-gradient(135deg, rgba(91,143,224,.13), rgba(165,107,242,.06));
}

.kdbag-section::after {
    width: 540px;
    height: 540px;
    right: -240px;
    bottom: -220px;
    background: linear-gradient(135deg, rgba(165,107,242,.13), rgba(91,143,224,.06));
}

.kdbag-decoration,
.kdbag-dot-grid {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.kdbag-dot-grid {
    top: 42px;
    left: 44px;
    width: 190px;
    height: 120px;
    opacity: .34;
    background-image: radial-gradient(#c9d5eb 2.2px, transparent 2.2px);
    background-size: 30px 30px;
}

.kdbag-decoration-left {
    left: -8%;
    bottom: -160px;
    width: 42%;
    height: 260px;
    border-radius: 50% 50% 0 0;
    background: rgba(91,143,224,.06);
    transform: rotate(6deg);
}

.kdbag-decoration-right {
    right: -9%;
    top: -150px;
    width: 35%;
    height: 260px;
    border-radius: 0 0 50% 50%;
    background: rgba(165,107,242,.06);
    transform: rotate(-7deg);
}

.kdbag-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.kdbag-header {
    text-align: center;
    margin: 0 auto 46px;
}

.kdbag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 22px;
    border-radius: 999px;
    border: 1px solid rgba(91,143,224,.32);
    background: rgba(255,255,255,.78);
    color: var(--kdbag-accent);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(35,78,142,.08);
    backdrop-filter: blur(10px);
}

.kdbag-badge::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kdbag-accent), var(--kdbag-accent-2));
    box-shadow: 0 0 0 6px rgba(91,143,224,.11);
}

.kdbag-title {
    margin: 18px auto 0 !important;
    max-width: 980px;
    color: #08142f;
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.kdbag-title span {
    display: inline;
}

.kdbag-gradient {
    background: linear-gradient(100deg, var(--kdbag-accent), var(--kdbag-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--kdbag-accent);
}

.kdbag-description {
    max-width: 760px;
    margin: 22px auto 0 !important;
    color: #5a6684;
    font-size: clamp(16px, 1.8vw, 21px);
    line-height: 1.75;
    font-weight: 400;
}

.kdbag-grid {
    display: grid;
    grid-template-columns: repeat(var(--kdbag-cols), minmax(0, 1fr));
    gap: var(--kdbag-gap);
    width: 100%;
    align-items: stretch;
}

.kdbag-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e7eefb;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(16, 44, 93, .08);
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.kdbag-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 64px rgba(16, 44, 93, .13);
    border-color: rgba(91,143,224,.34);
}

.kdbag-ba {
    position: relative;
    height: 420px;
    min-height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    border-radius: 21px;
    touch-action: pan-y;
    user-select: none;
}

.kdbag-ba-img,
.kdbag-mask {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.kdbag-ba-img {
    display: block;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    user-select: none;
    pointer-events: none;
}

.kdbag-base-img {
    z-index: 1;
}

.kdbag-mask {
    z-index: 2;
    overflow: hidden;
    clip-path: inset(var(--pos, 50%) 0 0 0);
    will-change: clip-path;
}

.kdbag-divider {
    position: absolute;
    z-index: 3;
    top: var(--pos, 50%);
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-1px);
    background: rgba(255,255,255,.96);
    box-shadow: 0 0 0 1px rgba(91,143,224,.12), 0 0 28px rgba(10,24,55,.16);
    pointer-events: auto;
    cursor: ns-resize;
    touch-action: none;
}

.kdbag-section button.kdbag-handle,
.kdbag-section .kdbag-handle {
    all: unset;
    position: absolute !important;
    z-index: 5 !important;
    top: var(--pos, 50%) !important;
    left: 50% !important;
    width: 62px !important;
    height: 62px !important;
    transform: translate(-50%, -50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--kdbag-accent) !important;
    box-shadow: 0 12px 35px rgba(18, 52, 104, .24) !important;
    cursor: ns-resize !important;
    touch-action: none !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.kdbag-section button.kdbag-handle:focus-visible {
    outline: 3px solid rgba(91,143,224,.38) !important;
    outline-offset: 4px !important;
}

.kdbag-handle-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.kdbag-labels {
    position: absolute;
    z-index: 4;
    inset: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    pointer-events: none;
}

.kdbag-labels .kdbag-label:last-child {
    align-self: flex-end;
}

.kdbag-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(11, 26, 56, .19);
}

.kdbag-label-before {
    background: rgba(43,51,71,.9);
}

.kdbag-label-after {
    background: linear-gradient(135deg, var(--kdbag-accent), var(--kdbag-accent-2));
}

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

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

.kdbag-section a.kdbag-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(91,143,224,.32) !important;
}

.kdbag-main-btn i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--kdbag-button-bg);
    font-style: normal;
    font-size: 26px;
    line-height: 1;
}

@media (max-width: 1024px) {
    .kdbag-grid {
        grid-template-columns: repeat(var(--kdbag-tablet-cols), minmax(0, 1fr));
    }

    .kdbag-section {
        padding: 68px 18px;
    }

    .kdbag-header {
        margin-bottom: 36px;
    }
}

@media (max-width: 767px) {
    .kdbag-section {
        padding: 54px 14px;
    }

    .kdbag-dot-grid,
    .kdbag-decoration {
        display: none;
    }

    .kdbag-grid {
        grid-template-columns: repeat(var(--kdbag-mobile-cols), minmax(0, 1fr));
        gap: var(--kdbag-gap);
    }

    .kdbag-title {
        font-size: clamp(32px, 11vw, 46px);
        letter-spacing: -.035em;
    }

    .kdbag-description {
        font-size: 16px;
        line-height: 1.65;
    }

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

    .kdbag-ba {
        height: 320px;
    }

    .kdbag-section button.kdbag-handle,
    .kdbag-section .kdbag-handle {
        width: 56px !important;
        height: 56px !important;
    }

    .kdbag-labels {
        inset: 14px;
    }

    .kdbag-label {
        min-width: 82px;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .kdbag-section a.kdbag-main-btn,
    .kdbag-section .kdbag-main-btn {
        width: 100% !important;
        max-width: 360px !important;
        min-height: 58px !important;
        padding-left: 24px !important;
        font-size: 16px !important;
    }
}
