/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
/* SOCIAL BLOCK */
.contact-city {
    font-size: 22px;
    position: relative;
    padding-left: 25px; /* отступ для иконки */
    align-items: center;
}
.contact-city::before {
    content: "" !important;
    position: absolute;
    background-image: url(https://doctor-savelyev.ru/wp-content/uploads/2025/12/Location.svg);
    background-size: contain;
    background-repeat: no-repeat;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}
.contact-number {
    font-size: 42px;
}
.contact-info {
    font-size: 18px;
    opacity: 0.6;
}
.contact-social {
    display: flex;
    gap: 30px;
}
.contact-social a{
    font-size: 24px;
    position: relative;
    padding-right: 25px; /* отступ справа для иконки */
    min-height: 20px;
    display: inline-flex;
    align-items: center;
}
.contact-social a::after {
    content: "" !important;
    position: absolute;
    background-image: url(https://doctor-savelyev.ru/wp-content/uploads/2025/12/Arrow-bl.svg);
    background-size: contain;
    background-repeat: no-repeat;
    right: 0;
    
    width: 18px;
    height: 18px;
}
@media (max-width: 768px) {
    .contact-city {
        font-size: 18px;
    }
    .contact-city::before {
        width: 14px;
        height: 14px;
    }
    .contact-number {
        font-size: 28px;
    }
    .contact-info {
        font-size: 14px;
    }
    .contact-social a{
        font-size: 18px;
    }
}

.icon-wrapper svg circle {
    stroke: white;
    fill: transparent;
    transition: all 0.3s ease;
}

.icon-wrapper svg path {
    fill: white;
    transition: all 0.3s ease;
}
.icon-wrapper:hover svg circle {
    stroke: white;
    fill: white;
}

.icon-wrapper:hover svg path {
    fill: black;
}
.icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}
.wd-header-divider:before {
    height: 45px !important;
}



.custom-accordion {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    
}
.accordion-title {
    width: 70%;
    font-size: 20px;
    margin: 0;
}

.accordion-price {
    margin: 0;
    font-size: 24px;
}

.accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    font-size: 14px;
    padding: 0 20px;
    padding-left: 40px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    padding-left: 40px;
    max-height: 1000px;
}

/* Анимированная стрелка через псевдоэлемент */
.accordion-header:hover .accordion-title::after {
    content: "→";
    
    transform: translateY(-50%);
    color: #007cba;
    font-weight: bold;
    font-size: 18px;
    opacity: 1;
}

.accordion-title::after {
    content: "→";
    
    transform: translateY(-50%);
    color: #007cba;
    font-weight: bold;
    font-size: 18px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}





/* Блок отзывов */
.reviews-section {
    margin: 0 auto;
}

.reviews-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.reviews-tab {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid rgba(7, 29, 66, 0.2);
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    letter-spacing: 0.02;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
}

.reviews-tab:hover {
    background: #e0e0e0;
}

.reviews-tab.active {
    border: 1px solid rgba(7, 29, 66);
    
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.review-card {
    
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    
}


.review-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.review-card-content {
    padding: 15px;
    position: absolute;
    bottom: 0px;
    opacity: 0;
    transition: 0.4s;
}
.review-card:hover .review-card-content {
    opacity: 1;
}

.review-card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #FFF;
}

.review-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.review-card-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

/* Боковой попап */
/* Боковой попап */
.review-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.review-popup-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 600px;
    height: 100vh;
    background: white;
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.review-popup-content.active {
    right: 0;
}

.review-popup-close {
    position: absolute;
    top: 40px;
    left: 36px;
    background: none;
    border: 1px solid #172B4E;
    cursor: pointer;
    z-index: 10002;
    color: #172B4E;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 0;
}
.review-popup-close svg {
    width: 15px;
    height: 15px;
    display: block;
    transition: opacity 0.3s ease;
}
.review-popup-close {
    pointer-events: auto; /* Убедитесь что стоит auto, а не none */
}

.review-popup-close svg {
    pointer-events: none; /* Это заставит клики проходить через SVG к кнопке */
}

.review-popup-close:hover {
    background: rgba(0,0,0,0.1);
}

.review-popup-body {
    padding: 120px 40px 40px;
    height: 100%;
    overflow-y: auto;
}

.review-popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.review-popup-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.review-popup-meta {
}

.review-popup-meta div {
    margin-bottom: 8px;
    font-size: 15px;
}

.review-popup-meta div:last-child {
    margin-bottom: 0;
}

.review-popup-content-text {
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
    font-size: 16px;
}

.review-videos {
    display: flex;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}
div.wp-video {
    width: 100% !important;
}

.video-container {
    margin-bottom: 0;
}

.video-label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: #2c3e50;
    font-size: 16px;
}

.video-wrapper {
    margin-top: 0;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .review-popup-content {
        width: 100%;
        max-width: 100%;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .review-popup-body {
        padding: 90px 20px 20px;
    }
    
    .review-popup-close {
        top: 15px;
        left: 20px;
        font-size: 24px;
    }
    
    .video-wrapper iframe {
        height: 250px;
    }
    
    .review-popup-title {
        font-size: 20px;
    }
}

/* Плавная анимация появления */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.review-popup-content.active {
    animation: slideInRight 0.3s ease-out;
}
.wd-nav-arrows.wd-pos-together {
    top: unset !important;
    bottom: 42px;
}

.wd-btn-arrow {
    border-radius: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(18px);
    height: 48px;
    width: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.wd-arrow-inner {
    width: 100% !important;
    height: 100% !important;
}
.wd-nav-arrows.wd-pos-together {
    gap: 16px !important;
    inset-inline-end: 20px !important;
}
.wd-prev .wd-arrow-inner:after,
.wd-next .wd-arrow-inner:after {
    content: "" !important;
    position: absolute;
    background-image: url(https://doctor-savelyev.ru/wp-content/uploads/2025/11/Arrow-Surgery.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
}
.wd-next .wd-arrow-inner:after {
    transform: rotate(180deg);
}
.promo-banner .content-banner {
    width: 70% !important;
}

/* Универсальный попап - БОКОВОЙ */
.universal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.universal-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.universal-popup-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 600px;
    height: 100vh;
    background: white;
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.universal-popup-content.active {
    right: 0;
}

.universal-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10002;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.universal-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.universal-popup-body {
    padding: 60px 40px 40px;
    height: 100%;
    overflow-y: auto;
}

/* Контент попапа */
.popup-content-inner h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.popup-content-inner p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .universal-popup-content {
        width: 100%;
        max-width: 100%;
    }
    
    .universal-popup-body {
        padding: 50px 20px 20px;
    }
}

/* CONTACT FORM */
.wpcf7-form p{
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.wpcf7-form .policy-warning p {
    display: block;
    text-align: right;
    width: 280px;
}
.wpcf7-form-control-wrap {
    min-width: 25%;
}
input[type='text'],
    input[type='tel'],
    :root select,
    div.wpcf7 input[type="submit"] {
    border-radius: 20px !important;
}
    input[type='text'],
    input[type='tel'],
    :root select,
    div.wpcf7 input[type="submit"] {
        height: 60px;
    }
div.wpcf7 input[type="submit"] {
    min-width: 15%;
    font-size: 14px;
    text-transform: none !important;
    font-weight: 500 !important;
    background-color: #071D42 !important;
}
.policy-warning {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    opacity: 0.6;
    margin-right: 12px;
}
.wpcf7-form-control::placeholder {
    
    transition: all 0.2s;
    
    font-weight: 500;
}

.wpcf7-form-control:focus::placeholder {
    color: #999;
    transform: translateY(-20px);
    font-size: 12px;
}

.wpcf7-form-control:focus + label,
.wpcf7-form-control:not(:placeholder-shown) + label {
    transform: translateY(-20px);
    font-size: 12px;
}
input.wpcf7-form-control:focus {
    border-color: var(--wd-form-brd-width) solid #333;
}


@media (max-width: 768px) {
        .promo-banner .banner-image :is(img,picture,video) {
        height: 270px !important;
    }
    .accordion-price {
        font-size: 18px;
    }
    .wpcf7-form p {
        align-items: center;
        flex-direction: column;
    }
    .wpcf7-form-control-wrap,
    div.wpcf7 input[type="submit"] {
        width: 100%;
    }
    .policy-warning {
        justify-content: center;
    }
    .wpcf7-form .policy-warning p {
        display: block;
        text-align: center;
    }
    .wpcf7-form p {
        gap: 4px;
    }
    .open-popup-btn .wd-text-block {
        color: #242424 !important;
    }
}

/* CONTENT BAR */
        .contact-bar {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 10px;
        }
        
        .city-selector {
            position: relative;
        }
        
        .city-current {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 8px 12px;
            cursor: pointer;
        }
        
        .city-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 5px;
            min-width: 180px;
            display: none;
            z-index: 100;
        }
        
        .city-dropdown.show {
            display: block;
        }
        
        .city-option {
            padding: 8px 12px;
            cursor: pointer;
            
        }
        
        .city-option:last-child {
            border-bottom: none;
        }

        
        .social-links {
            display: flex;
            gap: 10px;
        }
        
        .social-link {
            display: inline-block;
            width: 24px;
            height: 24px;
            text-decoration: none;
            position: relative;
        }
        
        .social-link.wa::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: url(https://doctor-savelyev.ru/wp-content/uploads/2025/12/Wa.svg);
            background-size: contain;
            background-repeat: no-repeat;
            width: 20px;
            height: 20px;
        }
        
        .social-link.tg::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: url(https://doctor-savelyev.ru/wp-content/uploads/2025/12/TG.svg);
            background-size: contain;
            background-repeat: no-repeat;
            width: 20px;
            height: 20px;
        }
        
        .phone-link {
            text-decoration: none;
            font-size: 20px;
            padding: 8px 12px;
            color: #fff;
        }
.opacity-title {
    color: #B1B1B1;
}
input.wpcf7-not-valid {
    border: 1px solid #ff0000;
}
.wpcf7-not-valid-tip {
    display: none !important;
}

/* POPUP */

/* Оверлей */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный */
    z-index: 999; /* На слой ниже попапа */
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* Плавное появление */
    pointer-events: none; /* Отключаем клики в скрытом состоянии */
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: all; /* Включаем клики, когда оверлей активен */
}

/* Попап */
.popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 520px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); /* Плавный переход */
    z-index: 1000; /* На слой выше оверлея */
}
@media (max-width:768px) {
    .popup {
        width: 100%;
    }
}
.popup.show {
    transform: translateX(0);
}

.popup.hidden {
    transform: translateX(100%);
}
.popup-content {
    padding: 20vh 36px;
}
.popup-close {
    pointer-events: auto;
    position: absolute;
    top: 40px;
    left: 36px;
    background: none;
    border: 1px solid #172B4E;
    cursor: pointer;
    z-index: 10002;
    color: #172B4E;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 0;
}
.form-headline {
    margin-bottom: 36px;
    font-size: 28px;
    font-weight: 600;
}
.popup-close svg {
    pointer-events: none;
    width: 15px;
    height: 15px;
    display: block;
    transition: opacity 0.3s ease;
}
/* POPUP FORM */
.popup-content .wpcf7-form p {
    flex-direction: column;
    gap: 0px;
}
.popup-content .wpcf7-form-control-wrap {
    min-width: 100%;
}
.popup-content div.wpcf7 input[type="submit"] {
    min-width: 100%;
}
.popup-content .policy-warning{
    justify-content: center;
}
.popup-content .policy-warning p{
    text-align: center;
}