/* звезды */
.review_stars_wrap{
  /* контейнер просто оборачивает звезды */
}
.star-2.star-3 #review_stars .fas.fa-star{
    font-size: 18px !important;
}



#review_stars {
  /* даём звёздам нормальную высоту и не обрезаем их */
  overflow: visible;
  position: relative;
  float: left;
}
#review_stars input {
  opacity: 0;
  position: absolute;
  top: 0;
  z-index: 0;
}
#review_stars input ~ label i{
  color:#ccc;
}
#review_stars input:checked ~ label i{
  color: #ffcc00;
}
#review_stars label {
  float: right;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
#review_stars label:hover i, #review_stars label:hover ~ label i{
  color: #ffcc00;
}
/* размер и вид иконки звезды (Font Awesome) */
#review_stars .fa.fa-star,
#review_stars .fas.fa-star{
    font-size: 22px !important;
    line-height: 1;
}
/* звезды */
/* Стили для отображения текущего языка с флагом в круге и текстом */
.current-language-display {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: row;
    position: relative;
    cursor: pointer;


    transition: all 0.3s ease;
}
.modul_2{
    background: #78a769;
}

.current-language-display:hover {
   
}


.current-language-display:focus-visible {
    
}
.otziv{
    background: #90c48d;
}
.current-language-display:focus:not(:focus-visible) {
    outline: none;
}

/* Порядок (RTL): стрелка, код языка, флаг */
.lang-arrow {
    order: 1;
}

.lang-name-hebrew {
    order: 2;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    text-transform: lowercase;
}

.lang-flag-circle {
    order: 3;
}

.lang-flag-circle {

}

.current-language-display:hover .lang-flag-circle {
  
}

.current-lang-flag {

}

/* Стрелка для dropdown */
.lang-arrow {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    width: 10px;
    flex-shrink: 0;
}

.lang-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}
.nav-wrap .smenu-container {
    width: 529px;
}
.current-lang-flag{
    position: relative;
    top: -0.5px;
    width: 16px;
    height: auto;
}

.custom-lang-switcher {
    position: relative;
}

/* Закрыто: явно скрываем (в т.ч. если подключён старый CSS с #lang-dropdown без совпадения с разметкой) */
.custom-lang-switcher ul.lang-list:not(.show),
.custom-lang-switcher .lang-list:not(.show) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Выпадающий список: вниз, в один ряд (флаги из Polylang) */
.custom-lang-switcher .lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    margin-left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 4px 6px;
    min-width: auto;
    z-index: 1000;
    list-style: none;
}

html[dir="rtl"] .custom-lang-switcher .lang-list {
    left: auto;
    right: 0;
}

.custom-lang-switcher .lang-list.show {
    display: flex !important;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    visibility: visible !important;
    pointer-events: auto !important;
}

.custom-lang-switcher.desc-il .lang-list.show {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.custom-lang-switcher .lang-list .lang-item {
    padding: 2px;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}

.custom-lang-switcher .lang-list .lang-item-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    line-height: normal;
}

.custom-lang-switcher .lang-list .lang-item-label {
    font-size: 14px;
}

.custom-lang-switcher .lang-list .lang-dropdown-flag {
    width: auto;
    height: auto;
    display: block;
    border-radius: 2px;
    vertical-align: middle;
}

.custom-lang-switcher .lang-list .lang-fallback-slug {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 5px;
}

.custom-lang-switcher .lang-list .lang-item:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

.custom-lang-switcher .lang-list .lang-item.active-lang {
    background: #e8f4f8;
    border-radius: 4px;
    font-weight: bold;
}

/* Бургер-меню */
.into-header .hamburger-menu {
    display: flex;
    align-items: center;
    display: none;
}

.hamburger-btn {
    display: flex;
    flex-direction: column !important;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;

}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #192D37;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Мобильное меню - показывать бургер только на 1141px и меньше */
@media (max-width: 1141px) {
    .into-header .hamburger-menu {
        display: flex !important;
    }
}

/* Десктоп - скрыть бургер, показать обычное меню */
@media (min-width: 1142px) {
    .into-header .hamburger-menu {
        display: none !important;
    }
    
    .into-header nav {
        display: block !important;
    }
}

/* Мобильное полноэкранное меню */
@media (max-width: 1141px) {
    .into-header nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #eaeaea;
        z-index: 9999;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px;
        overflow-y: auto;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .into-header nav.menu-open {
        display: flex !important;
        opacity: 1;
        visibility: visible;
    }
    
    /* Крестик закрытия */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        padding: 0;
    }
    
    .close-line {
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: #000;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .close-line:first-child {
        transform: rotate(45deg);
    }
    
    .close-line:last-child {
        transform: rotate(-45deg);
    }
    
    .mobile-menu-close:hover .close-line {
        background-color: #ccc;
    }
    
    /* Меню внутри навигации */
    .into-header nav #main-menu {
        width: 100%;
        margin-top: 0px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .into-header nav #main-menu li {
        width: 100%;
    }
    
    .into-header nav #main-menu a {
color: #000;
        font-size: 20px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 5px;
        width: 100%;
        text-decoration: none
    }
    
    .into-header nav #main-menu .menu-item-text {
        color: #000;
    }
    
    .into-header nav #main-menu .menu-item-thumbnail {
        order: -1;
    }
}

/* Форма отзывов + список отзывов (WT Reviews) */
.reviews_form {
    margin-top: 0px;
    padding: 22px 0 60px;

}

.reviews_form .otziv-9 {
    max-width: 1060px;
    margin: 0 auto;
    padding-top: 2px;
    padding-bottom: 20px;
    border-radius: 20px;
}

/* Сетка: слева аватар, справа форма */
.reviews_form .z-z-z {
display: grid;
    grid-template-columns: 245px 1fr;
    gap: 0px;
    align-items: flex-start;
    margin-top: 28px;
    /* padding-bottom: 53px; */
    padding: 0 85px 9px;
}

.reviews_form .z-image {
    display: flex;
    justify-content: center;
}

.reviews_form .nikolaev {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 24px 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}
.foto-otzv{
    width: 52px !important; height: 52px !important; border-radius: 20%; object-fit: cover; display: block;
}

.reviews_form .f471 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.reviews_form .filesupload {
    width: 160px;
    height: 160px;
    border-radius: 25px;
    overflow: hidden;
    border: 3px solid #F3D17B;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.reviews_form .filesupload img.d44 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviews_form .open-cropper-modal-btn {
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(254.44deg, #F3D17B 10.01%, #FFECB4 47.46%, #F3D17B 87.94%);
    color: #695729;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    border: 1px solid #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(243, 209, 123, 0.55);
}

.reviews_form .open-cropper-modal-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(254.44deg, #E5C469 10.01%, #F0D99F 47.46%, #E5C469 87.94%);
    color: #006892;
}

.reviews_form .open-cropper-modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(243, 209, 123, 0.45);
}

/* Форма */
.reviews_form .z-form {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 32px 32px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.reviews_form .my-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.reviews_form .my-form input.title,
.reviews_form .my-form input.ss,
.reviews_form .my-form textarea.textaraa {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid #E1E5EB;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    background: #FDFDFE;
}

.reviews_form .my-form textarea.textaraa {
    min-height: 130px;
    resize: vertical;
}

.reviews_form .my-form input.title:focus,
.reviews_form .my-form input.ss:focus,
.reviews_form .my-form textarea.textaraa:focus {
    outline: none;
    border-color: #FFECB4 47.46%;
    box-shadow: 0 0 0 1px rgba(0,104,146,0.14);
    background: #ffffff;
}

.reviews_form .my-form .submit {
    align-self: flex-start;
    padding: 14px 30px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(254.44deg, #F3D17B 10.01%, #FFECB4 47.46%, #F3D17B 87.94%);
    color: #000;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.reviews_form .my-form .submit:hover {
      background: linear-gradient(254.44deg, #F3D17B 10.01%, #FFECB4 47.46%, #F3D17B 87.94%);
    box-shadow: 0 8px 18px #FFECB4 47.46%;
    transform: translateY(-1px);
}

.reviews_form .my-form .submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px #FFECB4 47.46%;
}

/* Карточки отзывов */
.reviews_form .otziv {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background: #327a1ca8;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.reviews_form .img-otziv {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.reviews_form .img-otziv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reviews_form .text-otziv h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.reviews_form .text-otziv .review-language {
    font-size: 12px;
    font-weight: 500;
    color: #cfd8e3;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews_form .text-otziv .review-rating-display {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.reviews_form .text-otziv .review-rating-display .star {
    font-size: 27px;
    line-height: 1;
    display: inline-block;
}

.reviews_form .text-otziv .review-rating-display .star.star-filled {
    color: #ec9801;
}

.reviews_form .text-otziv .review-rating-display .star.star-empty {
    color: #ccc;
}

.reviews_form .text-otziv .mytext {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.reviews_form .text-otziv .mylink {
    margin-top: 6px;
}

.reviews_form .text-otziv .mylink a {
    font-size: 13px;
    color: #006892;
    text-decoration: underline;
}

.reviews_form .text-otziv .mylink a:hover {
    color: #0084b6;
}

/* Адаптив */
@media (max-width: 960px) {
    .reviews_form .z-z-z {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .reviews_form .z-form {
        padding: 22px 20px 26px;
    }
}

@media (max-width: 600px) {
    .reviews_form {
        padding: 30px 0 40px;
    }

    .reviews_form .otziv-9 {
        padding: 0 16px;
    }

    .reviews_form .otziv {
        padding: 14px 14px 16px;
    }
}

/* Модальное окно для обрезки */
#cropper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow: auto;
}

.cropper-modal-hidden {
    display: none !important;
}

#cropper-modal:not(.cropper-modal-hidden) {
    display: block !important;
}

.cropper-modal-content {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.cancel-crop-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #000;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-crop-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.cancel-crop-btn .close-icon {
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    color: #000;
}

.cropper-file-select {
    margin-bottom: 20px;
    text-align: center;
}

.file-select-label {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.file-select-label:hover {
    background: #555;
}

.file-input-hidden {
    display: none;
}

.cropper-image-container {
    margin-bottom: 20px;
    max-height: 70vh;
    overflow: auto;
    text-align: center;
    position: relative;
    min-height: 300px;
}

.cropper-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
}

.cropper-actions {
    text-align: center;
}

.crop-upload-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    display: none;
    transition: background 0.3s ease;
}

.crop-upload-btn:hover {
    background: #555;
}

.crop-upload-btn.show {
    display: inline-block !important;
}

#cancel-crop-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #000;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cancel-crop-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

#cancel-crop-btn .close-icon {
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    color: #000;
}

#file-input-in-modal {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Красивая кнопка выбора файла в цветах сайта (желтый градиент) */
.custom-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(254.44deg, #F3D17B 10.01%, #FFECB4 47.46%, #F3D17B 87.94%);
    color: #695729;
    border: 1px solid white;
    border-radius: 57px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 209, 123, 0.4);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.custom-file-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-file-button:hover::before {
    width: 300px;
    height: 300px;
}

.custom-file-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(243, 209, 123, 0.5), 0 2px 8px rgba(243, 209, 123, 0.3);
    background: linear-gradient(254.44deg, #E5C469 10.01%, #F0D99F 47.46%, #E5C469 87.94%);
    color: #006892;
}

.custom-file-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(243, 209, 123, 0.4);
}

/* Альтернативный вариант с зеленым градиентом при активном состоянии */
.custom-file-button:focus {
    outline: 2px solid #006892;
    outline-offset: 2px;
}

.file-button-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-button-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: #695729;
}

.custom-file-button:hover .file-button-icon svg {
    fill: #006892;
    transition: fill 0.3s ease;
}

.file-button-text {
    line-height: 1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .custom-file-button {
        min-width: 180px;
        padding: 12px 24px;
        font-size: 14px;
        /* Увеличиваем область касания для мобильных */
        min-height: 44px; /* Минимальный размер для удобного касания */
    }
    
    .file-button-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .custom-file-button {
        min-width: 160px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

#cropper-image {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Cropper.js контейнер */
#cropper-modal .cropper-container {
    direction: ltr;
}

#cropper-modal .cropper-wrap-box {
    position: relative;
    font-size: 0;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

#cropper-modal .cropper-canvas {
    max-width: 100%;
    max-height: 70vh;
}

#crop-upload-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Heebo', sans-serif;
    display: none;
    margin-top: 20px;
}

#crop-upload-btn.show {
    display: inline-block;
}

#crop-upload-btn:hover {
    background: #555;
}

/* Canvas для обрезки */
#cropper-canvas {
    display: none;
}

/* Стили для капчи */
.reviews_form .my-form .captcha-wrapper {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.reviews_form .my-form .captcha-wrapper label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.reviews_form .my-form .captcha-wrapper input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #333;
}

.reviews_form .my-form .captcha-wrapper input[type="checkbox"]:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.reviews_form .my-form .captcha-wrapper span {
    line-height: 1.5;
}

/* ============================
   Video reviews popup (by click)
   ============================ */
.video-review-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.video-review-popup {
    position: relative;
    width: min(960px, 100%);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.video-review-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    font-size: 26px;
    line-height: 38px;
    z-index: 2;
}

.video-review-popup-frame {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.video-review-popup-message {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
}

/* ============================
   Stationary video frames
   ============================ */
.video-stationary-panels {
    margin-top: 20px;
}

.video-stationary-panel {
    display: none;
}

.video-stationary-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
    background: #000;
}

.video-stationary-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-stationary-empty {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 18px;
}