.solutions-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 80px;
}

.card2 {
    width: 250px;
    height: 380px;
    border-radius: 20px;
    background: #e4b0fba8;
    position: relative;
    padding: 1.8rem;
    border: 3px solid #e8d5ff;
    transition: 0.5s ease-out;
    overflow: visible;
    background-size: cover;
    background-position: center;
}

.card2:nth-child(1) {
    background-image: url('/static/image/5045ecb1f507be144aeb4a3b6fc97863.jpg');
}

.card2:nth-child(2) {
    background-image: url('/static/image/5685a7c9c5d2f1279800be672d97e1ce.jpg');
}

.card2:nth-child(3) {
    background-image: url('/static/image/a7a2e65f1c67417deca0eb265cd3c690.jpg');
}

.card2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    z-index: 1;
}

.card-details {
    color: rgb(255, 255, 255);
    height: 100%;
    gap: .5em;
    display: grid;
    place-content: center;
    position: relative;
    z-index: 2;
}

.card-button {
    transform: translate(-50%, 125%);
    width: 60%;
    border-radius: 30px;
    border: none;
    background-color: #633e97;
    color: #ffffff;
    font-size: 18px;
    font-family: var(--font-family-text);
    padding: 12px 18px;
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0;
    transition: 0.3s ease-out;
    z-index: 2;
}

.text-title {
    font-size: 44px;
    font-family: var(--font-family-text);
    font-weight: 700;
}

.card2:hover {
    border-color: #3a2066c4;
    box-shadow:
        0 12px 40px rgba(137, 43, 226, 0.726),
        0 0 0 1px rgba(138, 43, 226, 0.2),
        inset 0 0 20px rgba(138, 43, 226, 0.1);
    transform: translateY(-4px);

}

.card2:hover .card-button {
    transform: translate(-50%, 50%);
    opacity: 1;
    box-shadow:
        0 8px 25px rgba(138, 43, 226, 0.4),
        0 0 20px rgba(138, 43, 226, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    background: linear-gradient(135deg, #684c95 0%, #7746a5 100%);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}



.popup {
    padding: 40px;
    border-radius: 18px;
    width: 100%;
    max-height: 90vh;
    height: auto;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.741);
    transition: 0.3s ease-out;
    scrollbar-width: thin;
    scrollbar-color: #967dae rgba(255, 255, 255, 0);
}


.popup-content {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}


.popup--content {
    max-width: 800px;
    padding: 40px 50px;
    text-align: left;
}




.popup-title {
    font-family: var(--font-family-text);
    font-size: 34px;
    font-weight: 700;
    color: #331654;
    margin-bottom: 5px;
    text-align: center;
}

.section-title {
    font-family: var(--font-family-text);
    font-size: 20px;
    font-weight: 700;
    color: #4d0878;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fancy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.fancy-list li {
    font-family: var(--font-family-text);
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
    font-size: 20px;
    color: #2b1d40;
    background: rgba(151, 95, 210, 0.06);
    border-radius: 12px;
    padding: 12px 16px 12px 40px;
    transition: background .2s ease;
}

.fancy-list li:hover {
    background: rgba(132, 95, 210, 0.15);
}

.fancy-list li::before {
    content: "◆";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a2464;
    font-size: 14px;
}



.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.popup-content {
    margin-top: 20px;
}

.contact-blob2 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientFlow {
    0% {
        background-position: 50% 50%;
    }

    50% {
        background-position: 60% 40%;
    }

    100% {
        background-position: 50% 50%;
    }
}


.popup--split {
    max-width: 1100px;
}

.popup-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}


.popup-menu {
    align-self: start;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border: 1px solid #e6ddff;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 72vh;
    overflow: auto;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #faf7ff;
    font-family: var(--font-family-text);
    font-size: 16px;
    font-weight: 600;
    color: #2a1240;
    cursor: pointer;
    transition: .2s ease;
}


.menu-item:hover {
    background: #f1eaff;
}

.menu-item.active {
    background: linear-gradient(135deg, #6f4db3, #845fd2);
    color: #fff;
    border-color: #6f4db3;
    box-shadow: 0 6px 18px rgba(111, 77, 179, .25);
}

.popup-body {
    min-width: 0;
    max-height: 72vh;
    overflow: auto;
}


.pane {
    display: none;
    animation: fade .18s ease;
}

.pane.show {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}









@media (max-width: 767px) {
    .solutions-wrapper {
        overflow: visible;
        padding: 40px 12px 30px;
    }

    .card-container {
        gap: 20px;
        justify-content: stretch;
        max-width: 90%;
    }

    .card2 {
        width: 100%;
        max-width: 560px;
        height: 300px;
        border-radius: 16px;
        padding: 16px;
    }

    .text-title {
        font-size: 29px;
        line-height: 1.1;
    }

    .card-button {
        left: 50%;
        bottom: 16px;
        transform: translate(-50%, 0);
        opacity: 1;
        font-size: 16px;
        padding: 12px 16px;
    }

    .popup--content {
        max-width: 95vw;
        padding: 36px 16px 16px 16px;
    }

    .popup--split {
        max-width: 90vw;
        padding: 16px;
    }

    .popup-split {
        display: grid;
        grid-template-columns: 1fr;

        gap: unset;
    }

    #popup_1 .popup-title {
        display: none;
    }

    .popup-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 18px;
    }

    .fancy-list li {
        font-size: 17px;
    }

    .popup-menu {
        flex-direction: row;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        gap: 8px;
        position: relative;
        margin: 0 20px;
    }

    .menu-item {
        display: inline-block;
        width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }

    .popup-body {
        max-height: 60vh;
        overflow: auto;
    }
}





@media (min-width: 768px) and (max-width: 1194px) {
    .solutions-wrapper {
        padding: 50px 24px 60px;
        overflow: visible;
    }

    .card-container {
        gap: 32px;
        justify-content: center;
    }

    .card2 {
        flex: 1 1 calc(50% - 40px);
        max-width: 360px;
        height: 340px;
        border-radius: 18px;
        padding: 18px;
    }

    .text-title {
        font-size: 34px;
        line-height: 1.2;
    }

    .card-button {
        font-size: 17px;
        padding: 12px 20px;
        bottom: 20px;
        transform: translate(-50%, 0);
        opacity: 1;
    }


    .popup--content {
        max-width: 90vw;
        padding: 36px 24px;
    }

    .popup--split {
        max-width: 95vw;
        padding: 25 10px 10px 10px;
    }

    .popup-split {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }

    .popup-menu {
        max-height: 65vh;
        padding: 12px;
        gap: 10px;
    }

    .menu-item {
        font-size: 15px;
        padding: 10px 12px;
    }

    .popup-body {
        max-height: 65vh;
        overflow: auto;
    }

    .popup-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 19px;
    }

    .fancy-list li {
        font-size: 18px;
    }
}