::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #b6b6b6;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:   #b6b6b6;
    opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #b6b6b6;
    opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color:    #b6b6b6;
}
::-ms-input-placeholder { /* Microsoft Edge */
    color:    #b6b6b6;
}
::placeholder { /* Most modern browsers support this now. */
    color: #b6b6b6;
}

#modal-experts {
    z-index: 501;
}

#modal-experts .modal-content {
    width: 90%;
}

#modal-qa-expert .modal-content {
    width: 85%;
}

#allExperts {
    position: relative;
    clear: both;
}
#allExperts .carusel__prev {
    position: absolute;
    top: calc(50% - 10px);
    left: 5px;
    z-index: 3;
}
#allExperts .carusel__next {
    position: absolute;
    top: calc(50% - 10px);
    right: 5px;
    z-index: 3;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.card {
    margin: 0.8%; /* Отступы между карточками */
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-content {
    display: flex;
    flex-flow: column-reverse;
}

.text-content {
    padding: 15px;
    flex: 1;
}

.text-content .expert-info {
    height: 180px;
    overflow-y: auto;
    padding: 5px;
}

.card-image {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5px;
}
.card-image a {
    width: 120px;
    padding: 5px;
    text-decoration: none;
    text-align: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    margin: 0;
}

.card-image .expert-action {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    padding: 5px;
}
.card-image .expert-action .btn-question {
    width: 108px;
    padding: 5px;
    text-align: center;
}

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

.card-description {
    font-size: 16px;
    margin: 0 0 15px;
    text-align: justify;
}

.rating {
    font-size: 18px;
    margin: 10px 0;
    color: #999;
}
.rating .fa-star {
    color: gold;
}
.rating .fa-comment {
    margin: 0 3px 0 10px;
}

.btn-question, .popup-callme-block #submit-button, #modal-callme #myBtn1, .btn-showmore, .btn-call-experts {
    padding: 10px 15px;
    background-color: #3594bd;
    color: white !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-question:hover, .popup-callme-block #submit-button:hover, #modal-callme #myBtn1:hover, .btn-showmore:hover, .btn-call-experts:hover {
    background-color: #0056b3;
    transition: ease-in-out 0.5s;
    cursor: pointer;
}

.popup-callme-block button:disabled {
    opacity: 0.5;
}

.btn-question-1 {
    margin: 0px 10px 0px 0px;
}

/* */
.expert_title {
    font-weight: bold;
    color: #3594bd;
    text-align: center;
    padding: 5px 0;
    border: 1px solid #3594bd;
    border-radius: 8px;
    width: 90%;
}
.expert_title_all {
    padding: 11px 0px;
    width: 90%;
}
.hidden-xs {
    display: none !important;
}

.hidden-sm {
    display: none !important;
}

/* Start modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    margin: 0;
    -webkit-overflow-scrolling: touch;
}
.modal-content {
    top: 50%;
    left: 50%;
    position: fixed;
    width: 100%;
    max-width: 265px;
    transform: translate(-50%, -50%);
    display: block;
    background-color: #fefefe;
    padding: 10px;
    border: 2px solid #1ea3d2;
    z-index: 1001;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, .7);
    box-shadow: 0 3px 7px rgba(0, 0, 0, .7);
    -webkit-border-radius: 0 0 2px 2px;
    border-radius: 8px;
}
.modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.modal-content .modal-header h5 {
    font-size: 20px;
    margin: 0;
}
.modal-content .modal-header .close {
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}
.modal-content .modal-header .close:hover {
    color: #555;
}
.modal-content .modal-header .close:hover {
    color: #555;
}
.modal-content .modal-body {
    margin: 20px 0 0 0;
}
.modal-content .modal-body .form-group {
    margin-bottom: 15px;
}
.modal-content .modal-body label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

#modal-expert-review .modal-content .modal-body .review {
    display: flex;
    align-items: center;
}
#modal-expert-review .modal-content .modal-body .review > div {
    display: flex; gap: 2px;
}
#modal-expert-review .modal-content .modal-body .review label {
    font-weight: unset;
    font-size: 18px;
    margin: 0 10px 0 0;
}
#modal-expert-review .modal-content .modal-body .review .star {
    transition: color 0.3s ease;
    color: #ffcc00;
    font-size: 30px;
    cursor: pointer;
}
#modal-expert-review .modal-content .modal-body textarea.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}
#modal-expert-review .modal-content .modal-body [type="submit"] {
    width: 100%;
    background-color: #13bfff;
    font-size: 18px;
}
/* End modal */

#modal-qa-expert {
    z-index: 999;
}

#modal-qa-expert .form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#modal-qa-expert .form-control {
    display: block;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#modal-qa-expert .form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#modal-qa-expert .mb-3 {
    margin-bottom: 1rem;
}

#modal-qa-expert .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

#modal-qa-expert .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

#modal-qa-expert .form-check-label {
    margin-bottom: 0;
}
#modal-qa-expert .btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #3594bd;
    border-color: #3594bd;
}
#modal-qa-expert .btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#modal-qa-expert .btn:focus, #modal-qa-expert .btn:active {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.5);
}
#modal-qa-expert .error {
    color: red;
}
.close {
    position: absolute;
    right: 7px;
    top: 0;
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* отзывы на странице товара */
.seocmspro_author a {
    color: #000;
    font-weight: bold;
}
.RatingHistogram-Stars.Rating {
    margin-bottom: 5px;
    padding: 0;
    text-align: start;
    color: #fc0;

}
/* на странице товаров */
#modal-callme {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#modal-callme .btn-call-experts {
    max-width: 200px;
}
#modal-callme-form {
    width: 100%;
}

.nav-tabs {
    display: flex;
    flex-wrap: var(--nav-tabs-flex-wrap, nowrap);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    border-radius: 12px;
    background: #f2f2f2;
    white-space: nowrap;
}

.nav-tabs li {
    display: flex;
    align-items: center;
    height: 48px;
    margin: 0;
    padding: 0 15px;
}

.nav > li {
    display: block;
}

.nav-tabs li a.active,
.nav-tabs li a.active:focus,
.nav-tabs li a.active:hover {
    color: #3594bd;
}

.nav-tabs li a {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #3594bd;
    height: 100%;
    position: relative; /* Добавлено для правильного позиционирования псевдоэлемента */
    text-decoration: none; /* Отключение подчеркивания */
}

.nav-tabs li a:after {
    position: absolute;
    left: 0;
    width: 0;
    bottom: 10px;
    content: '';
    transition: all ease-in-out .15s;
    border-bottom: solid 2px transparent; /* Изменено на transparent по умолчанию */
}

.nav-tabs li a.active:after,
.nav-tabs li a:hover:after {
    width: 100%;
    border-bottom: solid 2px #3594bd; /* Установлено цвет нижней границы */
}

.nav-tabs li a.active:hover {
    color: #3594bd;
}


.tab-content {
    margin-top: 18px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    display: flex; /* Размещаем аватар и контент рядом */
    align-items: flex-start; /* Выравниваем по верхнему краю */
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-avatar-container {
    flex-shrink: 0; /* Запрещаем сжатие аватара */
    margin-right: 15px; /* Отступ между аватаром и контентом */
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex-grow: 1; /* Контент занимает оставшееся пространство */
}
.review-content-qa {
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
}

.review-date svg {
    margin-right: 5px;
    width: 14px;
    height: 14px;
    fill: #aaa;
}

.review-rating {
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.review-comment {
    font-size: 18px; /* Увеличиваем размер шрифта для отзыва */
    line-height: 1.6;
    color: #555;
}
/* Общий контейнер для карточки товара */
.product-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
}

/* Эффект при наведении */
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Изображение товара */
.product-item .image {
    position: relative;
    padding-top: 100%; /* Сохраняет пропорции 1:1 */
    overflow: hidden;
}

.product-item .image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.product-item:hover .image img {
    transform: translate(-50%, -50%) scale(1.1); /* Легкий эффект увеличения */
}

/* Название товара */
.product-item .name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 15px 10px 10px;
    height: 72px; /* Ограничиваем высоту для длинных названий */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-item .name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-item .name a:hover {
    color: #007bff; /* Цвет ссылки при наведении */
}

/* Общий контейнер для строк */
.additional-description .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px; /* Отрицательный отступ для компенсации padding */
    margin-right: -10px;
}

/* Базовый стиль для колонок */
.additional-description .col-md-3, .additional-description .col-xs-6 {
    box-sizing: border-box;
    padding-left: 10px; /* Отступы между колонками */
    padding-right: 10px;
    margin-bottom: 20px; /* Расстояние между рядами */
}

/* Адаптивность */

@media (max-width: 1297px) {
    .hidden-xs {
        display: block !important;
    }
}

@media (min-width: 1298px) {
    .hidden-sm {
        display: block !important;
    }
}

@media (max-width: 767px) {
    .product-page-tabs {
        position: sticky;
        top: 0;
        z-index: 3;
    }
}

@media (max-width: 767px) {
    .nav-tabs {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
    }
}

@media (min-width: 992px) {
    .nav-tabs {
        scrollbar-width: thin;
    }
}

@media (max-width: 767px) {
    .nav-tabs li {
        padding-right: 5px;
    }
}
@media (max-width: 767px) {
    .review-avatar-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-item {
        margin-bottom: 15px;
    }

    .product-item .name {
        font-size: 14px;
    }

    .product-item .price {
        font-size: 16px;
    }

    .product-item .cart-button button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (min-width: 425px) {
    .modal-content {
        max-width: 360px;
        padding: 20px 10px;
    }
}

@media (max-width: 424px) {
    .modal-content h2 {
        font-size: 16px;
    }
    .modal-content .contact-row {
        flex-flow: column;
    }
}

/* Средние экраны (≥768px) */
@media (min-width: 768px) {
    .additional-description .col-md-3 {
        width: 25%; /* 3 из 12 колонок (100% / 4 = 25%) */
    }
}

/* Маленькие экраны (<768px) */
.review-answer {
    font-size: 18px; /* Увеличиваем размер шрифта для отзыва */
    line-height: 1.6;
    color: #555;
    padding-left:20px;
    font-style: italic;
    background: #e8e8e8;
}

/* Специальные стили для мобильных устройств */
@media (max-width: 767px) {
    .additional-description .col-xs-6 {
        width: 50%; /* 6 из 12 колонок (100% / 2 = 50%) */
    }

    .modal {
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        max-width: 95%;
        width: 100%;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    #modal-qa-expert {
        visibility: visible !important;
    }
    
    /*#modal-qa-expert .modal-content {*/
    /*    max-width: 95% !important;*/
    /*    width: 95% !important;*/
    /*    margin: 20px auto;*/
    /*    position: relative;*/
    /*    top: 50%;*/
    /*    transform: translateY(-50%);*/
    /*    max-height: 90vh;*/
    /*    overflow-y: auto;*/
    /*    display: block !important;*/
    /*    visibility: visible !important;*/
    /*    opacity: 1 !important;*/
    /*    background-color: #fff !important;*/
    /*    border: 2px solid #1ea3d2 !important;*/
    /*    border-radius: 8px !important;*/
    /*    padding: 20px !important;*/
    /*}*/
    
    #modal-qa-expert h2 {
        display: block !important;
        visibility: visible !important;
        color: #000 !important;
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    #modal-qa-expert form {
        display: block !important;
        visibility: visible !important;
    }
    
    #modal-qa-expert input,
    #modal-qa-expert textarea {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        padding: 8px !important;
        border: 1px solid #ccc !important;
        border-radius: 4px !important;
    }
    
    #modal-qa-expert button {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        padding: 10px !important;
        background-color: #3594bd !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }
    
    .btn-question {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .btn-question:active {
        background-color: #0056b3 !important;
    }
}