/* Стили блока консультации */
.consultant-block-wrapper {
    margin-bottom: 40px;
}

/* Двухколоночный вариант (duo) */
.consultant-block-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.consultant-block-duo__col {
    padding: 30px;
    color: #ffffff;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #107F8C;
    min-height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.consultant-block-duo__title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 26px;
    line-height: 32px;
    letter-spacing: 0%;
}

.consultant-block-duo__action {
    flex-shrink: 0;
}

.consultant-block {
    background-color: #107F8C;
    padding: 30px;
    color: #ffffff;
    border-radius: 20px;
}

.consultant-block__title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.consultant-block__action {
    display: flex;
    justify-content: flex-end;
}

/* Стили кнопки (duo — pill-shaped) */
.consultant-btn-duo {
    background-color: #ffffff;
    color: #107F8C;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.consultant-btn:hover,
.consultant-btn-duo:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.consultant-btn--link {
    text-decoration: none;
    display: inline-block;
}

.consultant-btn {
    background-color: #ffffff;

    color: #1F1F22;

    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Стили модального окна */
.consultant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.consultant-modal__content {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.consultant-modal__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consultant-modal__header h3 {
    margin: 0;
    color: #107F8C;
    font-size: 22px;
}

.consultant-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.consultant-modal__close:hover {
    color: #107F8C;
}

.consultant-modal__body {
    padding: 20px;
}

/* Адаптивные стили */
@media (max-width: 767px) {
    .consultant-block-duo {
        grid-template-columns: 1fr;
    }

    .consultant-block-duo__col {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 25px;
        gap: 20px;
    }

    .consultant-block-duo__title {
        font-size: 18px;
    }

    .consultant-block-duo__action {
        align-self: flex-end;
    }

    .consultant-block__title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .consultant-block__action {
        justify-content: center;
    }
    
    .consultant-modal__content {
        width: 95%;
    }
} 