/* Карточки цен */
.modern_price_card {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card_header {
    background: #f4f4f6;
    border-radius: 18px;
    padding: 24px 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.card_header.gradient_bg {
    background: linear-gradient(135deg, #fde7e7 0%, #f3e7fa 50%, #e3ecff 100%);
}

.card_tag {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 12px;
    display: block;
}


.card_price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.card_price .price_num {
    font-size: 42px;
    font-weight: 800;
    color: #111111;
    line-height: 1;
    letter-spacing: -1px;
}

.card_price .price_currency {
    font-size: 16px;
    font-weight: 600;
    color: #555555;
}

.card_desc {
    font-size: 13px;
    line-height: 1.5;
    color: #444444;
    margin-bottom: 20px;
}

.card_desc strong {
    color: #111111;
}

/* .modern_price_card .cp_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    background-color: #111111;
    color: #ffffff !important;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
    margin-top: auto;
}

.modern_price_card .cp_button:hover {
    background-color: #333333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.card_body {
    padding: 0 8px 12px;
    flex-grow: 1;
}

.checked_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checked_list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

.checked_list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #111111;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: 10px;
}
.checked_list li.non_prepayment::before{
    border: 1.5px solid #4b3cdb;
}
.checked_list li.non_prepayment {
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.checked_list li.non_prepayment::before {
    background-color: #4b3cdb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

@media (max-width: 576px) {
    .modern_price_card {
        padding: 12px;
        border-radius: 20px;
    }
    
    .card_header {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .card_price .price_num {
        font-size: 34px;
    }
}
/* Hero блок услуга: мед лицензия */
.btn-primary-md {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4b3cdb 0%, #783cdb 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 14px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(75, 60, 219, 0.35);
}

.btn-primary-md:hover {
    background: linear-gradient(135deg, #3d2ec7 0%, #682ec7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 60, 219, 0.45);
}

.hero_docthea_style {
    background: radial-gradient(circle at 80% 20%, #f3eeff 0%, #f7f6fd 50%, #ffffff 100%);
    overflow: hidden;
}

.hero_pill_tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #4b3cdb;
    box-shadow: 0 4px 15px rgba(75, 60, 219, 0.08);
    border: 1px solid rgba(75, 60, 219, 0.12);
}

.hero_main_heading {
    font-size: 44px;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.18;
    letter-spacing: -0.5px;
}

.hero_subtext {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    max-width: 520px;
}

.hero_image_container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hero_bg_blob {
    position: absolute;
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, #d8ccff 0%, #eedbff 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(30px);
    opacity: 0.8;
}

.hero_doctor_img {
    position: relative;
    z-index: 2;
    max-height: 440px;
    width: auto;
    object-fit: contain;
}

.bento_mini_card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(75, 60, 219, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 165px;
}


.card_head_arrow {
    position: absolute;
    top: 18px;
    right: 18px;
}

.arrow_icon {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #4b3cdb;
}

.bento_badge_text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
}

.bento_card_title {
    font-size: 17px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.bento_card_desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.bento_mini_card.gradient_purple_soft {
    background: linear-gradient(135deg, #f3ebff 0%, #e9ddff 100%);
    border: 1px solid rgba(120, 60, 219, 0.15);
}

.text_purple_dark {
    color: #3b1874 !important;
}

.text_purple_sub {
    color: #5c389e !important;
}

.arrow_icon.color_purple {
    background: #ffffff;
    color: #783cdb;
}

.bento_price_val {
    font-size: 24px;
    font-weight: 800;
    color: #4b3cdb;
    margin-top: 4px;
}

.bento_btn_sm {
    display: inline-block;
    background: #4b3cdb;
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 6px;
    transition: background 0.2s;
}

.bento_btn_sm:hover {
    background: #3a2bc0;
}

.bento_mini_card.bg_brand_card {
    background: linear-gradient(135deg, #2a1f8d 0%, #1e145e 100%);
    border: none;
}

.arrow_icon.light_arrow {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.m-problev {font-size:14px; width: 100%; height: 300px; margin: 20px 0; display: flex; align-items: center; justify-content: space-between; background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; }

/* Основные стили секции process */
.process_section {
    background: #fcfbfe;
    position: relative;
}

.process_badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(75, 60, 219, 0.08);
    color: #4b3cdb;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process_main_title {
    font-size: 36px;
    font-weight: 800;
    color: #1e1b4b;
}

/* Обвертка таймлайна */
.timeline_wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 20px 0;
}

/* Базовая линия и линия заполнения */
.timeline_line_bg,
.timeline_line_progress {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    border-radius: 4px;
}

.timeline_line_bg {
    background: #e2e8f0;
    z-index: 1;
}

.timeline_line_progress {
    background: linear-gradient(180deg, #4b3cdb 0%, #783cdb 100%);
    z-index: 2;
    height: 0%; /* Контролируется скриптом */
    transition: height 0.1s linear;
}

/* Элемент шага */
.timeline_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
    position: relative;
    z-index: 3;
}

.timeline_card, 
.timeline_empty_space {
    width: 44%;
}

/* Карточки */
.timeline_card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(75, 60, 219, 0.04);
    transition: all 0.4s ease;
    opacity: 0.4;
    transform: translateY(20px);
}

/* Активное состояние карточки при скролле */
.timeline_item.active .timeline_card {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 15px 35px rgba(75, 60, 219, 0.1);
}

.step_num_badge {
    font-size: 12px;
    font-weight: 800;
    color: #4b3cdb;
    background: #f1ecfe;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.step_num_badge.light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.step_title {
    font-size: 19px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 8px;
}

.step_desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Акцентная карточка (Шаг 6) */
.timeline_card.gradient_card {
    background: linear-gradient(135deg, #4b3cdb 0%, #783cdb 100%);
    border: none;
}

/* Кружочки на линии */
.timeline_node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
}

.timeline_item.active .timeline_node {
    border-color: #783cdb;
    background: #4b3cdb;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(120, 60, 219, 0.2);
}

/* АДАПТИВ (Мобильные устройства и планшеты < 768px) */
@media (max-width: 767px) {
    .timeline_line_bg,
    .timeline_line_progress {
        left: 20px;
    }

    .timeline_item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 55px;
        margin-bottom: 25px; /* Уменьшенный отступ для мобилок */
    }

    .timeline_card {
        width: 100%;
        padding: 20px;
    }

    .timeline_empty_space {
        display: none;
    }

    .timeline_node {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* --- Новое модальное окно (V2) --- */
.lo-v2-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
 
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lo-v2-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.lo-v2-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.lo-v2-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.lo-v2-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lo-v2-modal__close:hover {
    background: #ffffff;
    color: #101828;
}

.lo-v2-modal__image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.lo-v2-modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lo-v2-modal__content {
    padding: 24px;
}

.lo-v2-modal__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #101828;
    margin: 0 0 8px 0;
}

.lo-v2-accent {
    color: #0284c7;
}

.lo-v2-modal__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #475467;
    margin: 0 0 20px 0;
}

@media (max-width: 576px) {
    .lo-v2-modal {
        width: calc(100% - 32px);
    }
    .lo-v2-modal__image-wrapper {
        height: 140px;
    }
    .lo-v2-modal__content {
        padding: 16px;
    }
}





@media (max-width: 991px) {
    .hero_main_heading {
        font-size: 32px;
    }
    .hero_docthea_style {
        padding-top: 70px !important;
    }
    .hero_pill_tag {
        font-size: 14px;
        text-align: center;
        line-height: 1.2;
    }
    .hero_bg_blob {
        z-index: -1;
    }
    .bento_col {
        margin-bottom: 13px;
    }
    .hero_doctor_img {
        max-height: 300px;
    }
    .checked_list li::before{
        top: 10px;
    }
    .p-samost span, .withlico span, .p-withlico .left { font-size: 14px; }

}