html {
    scroll-behavior: smooth;
}

.mobile-menu {
    animation: slideIn 0.3s ease-out;
}

.accordion-minus {
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
}

.accordion-btn.active .accordion-plus {
    opacity: 0;
    transform: scale(0.8) rotate(90deg);
}

.accordion-btn.active .accordion-minus {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.accordion-btn.active .accordion-title {
    transform: translateX(8px);
}
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    left: 0;
    top: 0;
    z-index: 1;
}

.custom-checkbox .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(233, 233, 233, 0.28); /* #E9E9E947 в RGBA */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    box-sizing: border-box;
}

.custom-checkbox:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.7);
}

.custom-checkbox input:focus + .checkmark {
    box-shadow: 0 0 0 4px #B4A3FF;
    outline: none;
}

/* Для браузеров, которые не поддерживают :focus-visible */
.custom-checkbox input:focus:not(:focus-visible) + .checkmark {
    box-shadow: none;
}

.custom-checkbox input:focus-visible + .checkmark {
    box-shadow: 0 0 0 4px #B4A3FF;
}

.custom-checkbox input:checked + .checkmark {
    background-color: rgba(233, 233, 233, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
}

.custom-checkbox .checkmark svg {
    width: 16px;
    height: 16px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    fill: currentColor; /* Для лучшего отображения SVG */
}

.custom-checkbox input:checked + .checkmark svg {
    opacity: 1;
}

/* Поддержка для старых браузеров */
.custom-checkbox input:indeterminate + .checkmark {
    background-color: rgba(233, 233, 233, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Адаптация для мобильных устройств */
@media (max-width: 640px) {
    .custom-checkbox {
        width: 20px;
        height: 20px;
    }

    .custom-checkbox .checkmark svg {
        width: 14px;
        height: 14px;
    }
}

/* Поддержка для высококонтрастного режима */
@media (prefers-contrast: high) {
    .custom-checkbox .checkmark {
        border-color: #ffffff;
    }

    .custom-checkbox:hover .checkmark {
        border-color: #ffffff;
    }

    .custom-checkbox input:checked + .checkmark {
        border-color: #ffffff;
    }
}

/* Поддержка для режима уменьшения движения */
@media (prefers-reduced-motion: reduce) {
    .custom-checkbox .checkmark,
    .custom-checkbox .checkmark svg {
        transition: none;
        -webkit-transition: none;
        -moz-transition: none;
    }
}

/* Анимации открытия аккордеона */
.accordion-content {
    transform: scaleY(0);
    transform-origin: top;
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content:not(.hidden) {
    transform: scaleY(1);
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem !important;
}

/* Появление элементов списка с задержкой */
.accordion-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.accordion-content:not(.hidden) .accordion-item {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content:not(.hidden) .accordion-item:nth-child(1) { transition-delay: 0.1s; }
.accordion-content:not(.hidden) .accordion-item:nth-child(2) { transition-delay: 0.2s; }
.accordion-content:not(.hidden) .accordion-item:nth-child(3) { transition-delay: 0.3s; }
.accordion-content:not(.hidden) .accordion-item:nth-child(4) { transition-delay: 0.4s; }
.accordion-content:not(.hidden) .accordion-item:nth-child(5) { transition-delay: 0.5s; }


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.node-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Адаптивные позиции для узлов */
.node-top-left {
    left: 30%;
    top: 24%;
}

.node-top-right {
    left: 70%;
    top: 24%;
}

.node-bottom-left {
    left: 30%;
    top: 72%;
}

.node-bottom-right {
    left: 70%;
    top: 72%;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 1024px) {
    .node-top-left {
        left: 25%;
        top: 24%;
    }

    .node-top-right {
        left: 75%;
        top: 24%;
    }

    .node-bottom-left {
        left: 25%;
        top: 72%;
    }

    .node-bottom-right {
        left: 75%;
        top: 72%;
    }
}

@media (max-width: 768px) {
    .node-top-left {
        left: 20%;
        top: 24%;
    }

    .node-top-right {
        left: 80%;
        top: 24%;
    }

    .node-bottom-left {
        left: 20%;
        top: 72%;
    }

    .node-bottom-right {
        left: 80%;
        top: 72%;
    }
}

@media (max-width: 640px) {
    .node-container {
        position: static;
        margin-bottom: 2rem;
    }

    .nodes-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


.svg-wrapper {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.responsive-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.reviews-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 400px; /* или нужная высота */
}

.reviews-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.reviews-slide {
    position: absolute;
    width: 60%; /* 60% ширины для каждого слайда */
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Левый слайд */
.reviews-slide:nth-child(1) {
    left: 20%;
    transform: translateX(-50%) scale(0.85);
    opacity: 0.7;
    z-index: 10;
    background: #374151;
}

/* Центральный слайд (активный) */
.reviews-slide:nth-child(2) {
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 20;
    background: linear-gradient(135deg, #7c3aed, #1f2937);
}

/* Правый слайд */
.reviews-slide:nth-child(3) {
    left: 80%;
    transform: translateX(-50%) scale(0.85);
    opacity: 0.7;
    z-index: 10;
    background: #374151;
}

/* Активный класс для JS управления */
.reviews-slide.active {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateZ(50%);
    z-index: 20;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .reviews-slide {
        width: 70%;
        height: 75%;
    }

    .reviews-slide:nth-child(1) {
        left: 15%;
    }

    .reviews-slide:nth-child(3) {
        left: 85%;
    }
}

@media (max-width: 768px) {
    .reviews-wrapper {
        height: 350px;
    }

    .reviews-slide {
        width: 80%;
        height: 70%;
    }

    .reviews-slide:nth-child(1) {
        left: 10%;
        transform: translateX(-50%) scale(0.8);
    }

    .reviews-slide:nth-child(2) {
        transform: translateX(-50%) scale(1);
    }

    .reviews-slide:nth-child(3) {
        left: 90%;
        transform: translateX(-50%) scale(0.8);
    }
}

@media (max-width: 640px) {
    .reviews-wrapper {
        height: 300px;
    }

    .reviews-slide {
        width: 90%;
        height: 65%;
        border-radius: 15px;
    }
}

/* Стрелки */
.slider-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 30;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Для мобильных - уменьшаем стрелки */
@media (max-width: 768px) {
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
}


#consultationModal {
    background-color: rgba(0, 0, 0, 0.6);
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate._animated {
    opacity: 1;
    transform: translateY(0);
}

button {
    border: 1px solid transparent;
}

button {
    transition: all .3s;
    outline: none;
}

button:hover {
    cursor: pointer;
}



/* Убедись что стрелки поверх всего */
.helpers-swiper-prev,
.helpers-swiper-next {
    z-index: 40 !important;
}

/* Делаем контейнер видимым для стрелок */
.helpers-swiper {
    overflow: visible !important;
}

/* Стили для кнопок */
.helpers-swiper-prev:hover,
.helpers-swiper-next:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4) !important;
}

.swiper-button-lock {
    display: block;!important;
}

.helpers-swiper {
    overflow: hidden !important;
}

.swiper-wrapper {
    -webkit-overflow-scrolling: touch;
}

/* Полное отключение скролла */
.swiper-container {
    overflow: hidden !important;
}

.swiper-slide {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
