/* ============== SOLUTIONS SECTION ============== */

.solutions-section {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafaf8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.solutions-section.active {
    opacity: 1;
    pointer-events: auto;
}

.solutions-logo {
    position: fixed;
    top: 24px;
    left: 40px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
    z-index: 20;
}

.solutions-logo a {
    text-decoration: none;
    color: #10131a;
}

.solutions-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 40px 24px;
}

.solutions-heading {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 650;
    color: #10131a;
    margin-bottom: 32px;
    text-align: center;
    flex-shrink: 0;
}

/* ============== CAROUSEL ============== */

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.solution-card {
    position: absolute;
    width: 85%;
    max-width: 650px;
    height: 90%;
    padding: 40px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.solution-card.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 3;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.solution-card.prev {
    transform: translateX(-35%) scale(0.85);
    opacity: 0.4;
    filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

.solution-card.next {
    transform: translateX(35%) scale(0.85);
    opacity: 0.4;
    filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

.solution-card.hidden {
    transform: translateX(0) scale(0.7);
    opacity: 0;
    filter: blur(8px);
    z-index: 1;
    pointer-events: none;
}

.solution-card-icon {
    margin-bottom: 24px;
    flex-shrink: 0;
}

.solution-card-title {
    font-size: 28px;
    font-weight: 650;
    color: #10131a;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.solution-card-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 20px;
    flex: 1;
}

.solution-card-desc p {
    margin-bottom: 10px;
}

.solution-card-desc p:last-child {
    margin-bottom: 0;
}

.solution-card-desc strong {
    color: #10131a;
    font-weight: 600;
}

.solution-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2456e8;
    text-decoration: none;
    flex-shrink: 0;
}

.solution-card-link:hover {
    opacity: 0.7;
}

.solution-card-link svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.solution-card-link:hover svg {
    transform: translateX(4px);
}

.solution-card-desc ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
}

.solution-card-desc ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: inherit;
    line-height: 1.5;
    color: #4b5563;
}

.solution-card-desc ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2456e8;
}

.solution-card-desc strong {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #10131a;
    font-weight: 600;
}

.solution-card-desc strong:first-child {
    margin-top: 0;
}

/* ============== CAROUSEL BUTTONS ============== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #10131a;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* ============== DOTS ============== */

.carousel-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-shrink: 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #10131a;
    width: 24px;
    border-radius: 4px;
}

/* ============== MODAL ============== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10131a;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Кнопка отчёта в карточке */
.solution-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    margin-top: auto;
}

.solution-card-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.solution-card-report-btn:hover {
    background: #e5e7eb;
    color: #10131a;
}

/* ============== MOBILE ============== */

@media (max-width: 768px) {
    .solutions-logo {
        top: 16px;
        left: 20px;
        font-size: 18px;
    }

    .solutions-content {
        padding: 56px 12px 16px;
    }

    .solutions-heading {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .carousel-wrapper {
        max-width: 100%;
    }

    .solution-card {
        width: 92%;
        max-height: calc(90vh - 160px);
        height: auto;
        padding: 24px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .solution-card.prev {
        transform: translateX(-30%) scale(0.88);
    }

    .solution-card.next {
        transform: translateX(30%) scale(0.88);
    }

    .solution-card-icon {
        margin-bottom: 16px;
    }

    .solution-card-icon svg {
        width: 28px;
        height: 28px;
    }

    .solution-card-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .solution-card-desc {
        font-size: 13px;
        line-height: 1.45;
    }

    .solution-card-desc p {
        margin-bottom: 8px;
    }

    .solution-card-link {
        font-size: 13px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-prev {
        left: -2px;
    }

    .carousel-next {
        right: -2px;
    }

    .carousel-dots {
        margin-top: 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .solutions-logo {
        font-size: 16px;
    }

    .solutions-content {
        padding: 48px 8px 12px;
    }

    .solutions-heading {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .solution-card {
        width: 96%;
        max-height: calc(90vh - 140px);
        height: auto;
        padding: 20px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .solution-card.prev,
    .solution-card.next {
        transform: translateX(0) scale(0.9);
        opacity: 0.15;
        pointer-events: none;
    }

    .solution-card-title {
        font-size: 18px;
    }

    .solution-card-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .solution-card-desc p {
        margin-bottom: 6px;
    }

    .solution-card-link {
        font-size: 12px;
    }

    .carousel-btn {
        width: 28px;
        height: 28px;
    }

    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 18px;
    }
}