/* Импорт шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .dialog-overlay.active {
        display: flex;
    }

/* Диалог */
.dialog {
    position: relative;
    width: 700px;
    height: 673.5px;
    background: #FFFFFF;
    border: 1px solid #CBD0D4;
    border-radius: 32px;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Градиентный фон */
.dialog-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 485px;
    background: linear-gradient(180deg, rgba(205, 218, 255, 1) 2%, rgba(255, 215, 211, 0.7) 34%, rgba(255, 240, 239, 0.37) 65%, rgba(255, 255, 255, 0) 82%);
    z-index: 1;
}

/* Header */
.dialog-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    height: 67px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .close-btn:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

/* Content */
.dialog-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 0 17.5px 17.5px;
    height: 513px;
}

/* Слайды */

.slides-container {
    position: relative;
    width: 663px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

    .slide.active {
        opacity: 1;
        transform: translateX(0);
    }

    .slide.prev {
        transform: translateX(-100%);
    }

.slide-image {
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    flex: 1; /* Занимает все доступное пространство */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0; /* Важно для корректного сжатия */
}

    .slide-image svg {
        width: 100%;
        height: 100%;
    }

.slide-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    flex-shrink: 0; /* Запрещаем сжиматься */
    height: 25%; /* или 30% */
}

.slide-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.625em;
    color: #495057;
    margin-bottom: 8px;
}

.slide-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.625em;
    color: #495057;
}

.slide2_bg {
    background-image: url('../images/newbannersite/image22.png');
    background-size: cover; /* или contain, или конкретные размеры */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* или fixed для фиксированного фона */
    min-height: 290px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide3_bg {
    height: 100%;
    width: 100%;
    position: relative;
    background: url('../images/newbannersite/image39.png') calc(50% + 100px) center no-repeat;
    background-size: auto, cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.slide3_bg_row {
    display: flex;
    justify-content: flex-start;
}

.slide3_bg_button {
    cursor:pointer;
    width: 150px;
    height: 32px;
    display: inline-flex;
    padding: 4px 8px;
    align-items: center;
    border-radius: 6px;
    border: 1px solid var(--Lara-Button-buttonBorder, #0070AE);
    background: var(--Lara-Button-buttonBg, #0070AE);
    color: var(--Lara-Button-buttonTextColor, #FFF);
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}
    .slide3_bg_button:hover {
        padding: 5px 9px;
        color:silver;
    }

    .slide3_bg_svg {
        margin-top: -20px;
    }

.slide4_bg {
    display: flex;
    justify-content: space-around;
    align-items: center; /* выравнивание по центру по вертикали */
    position: relative;
    height: 100%;
    width: 100%;
}

    /* Первый элемент - опустить на 20px */
    .slide4_bg > div:nth-child(1) {
       /* align-self: flex-start;*/
        margin-top: 20px;
    }

    /* Второй элемент - оставить как есть (по центру) */
    .slide4_bg > div:nth-child(2) {
        /* оставляем по умолчанию - выровнен по центру */
    }

    /* Третий элемент - опустить вниз (выровнять по низу) */
    .slide4_bg > div:nth-child(3) {
        align-self: flex-end;
    }

    /* Четвертый элемент - поднять вверх (выровнять по верху) */
    .slide4_bg > div:nth-child(4) {
        margin-top: -150px;
    }

    /* Добавляем отступы между элементами */
    .slide4_bg > div {
        margin: 0 10px; /* горизонтальные отступы */
    }

        /* Для лучшего контроля можно задать конкретные отступы */
        .slide4_bg > div:nth-child(1) {
            margin-right: 15px;
        }

        .slide4_bg > div:nth-child(2) {
            margin: 0 15px;
        }

        .slide4_bg > div:nth-child(3) {
            margin: 0 15px;
        }

        .slide4_bg > div:nth-child(4) {
            margin-left: 15px;
        }
/* Навигация слайдов */
.slide-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 330px;
    height: 24px;
}

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

    .nav-btn:hover {
        opacity: 0.7;
    }

    .nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

/* Индикаторы слайдов */
.slide-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #D9D9D9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .indicator.active {
        background-color: #0070AE;
    }

    .indicator:hover {
        background-color: #005a8b;
    }

/* Footer */
.dialog-footer {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 16px 16px;
    height: 65px;
}

.action-btn {
    background: linear-gradient(168deg, rgba(0, 104, 162, 1) 0%, rgba(16, 147, 219, 1) 100%);
    color: #FBFDFF;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    width: 207px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2102272851126534em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 104, 162, 0.3);
    }

    .action-btn:active {
        transform: translateY(0);
    }

/* Адаптивность */
/*@media (max-width: 768px) {
    .dialog {
        width: 90%;
        max-width: 500px;
        height: auto;
        min-height: 600px;
    }

    .dialog-content {
        height: auto;
        min-height: 400px;
    }

    .slides-container {
        width: 100%;
        max-width: 450px;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-description {
        font-size: 14px;
    }
}
*/
/* Анимация появления диалога */
.dialog-overlay.active .dialog {
    animation: dialogSlideIn 0.3s ease-out;
}

/* Анимация исчезновения диалога */
.dialog-overlay.closing .dialog {
    animation: dialogSlideOut 0.3s ease-in;
}

@keyframes dialogSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}
