/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here... */




/* =========================================================
   🌐 GLOBAL
   ========================================================= */

.contact-ico {
    margin-right: 10px;
}

.logo-img{
    z-index: 10;
}

/* =========================
   🔘 BUTTONS
   ========================= */

.btn-call,
.cf7-btn {
    font-size: 22px;
    font-weight: 400;
    /* fixed typo */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    text-decoration: none !important;

    padding: 23px 65px;
    border-radius: 6px;

    color: #fff !important;
    border: none;
    cursor: pointer;

    background: linear-gradient(90deg,
            #41537A 0%,
            #50648E 50%,
            #41537A 100%);

    transition: all 0.3s ease;
}

/* hover */
.btn-call:hover,
.cf7-btn:hover {
    background: linear-gradient(90deg,
            #63749A 0%,
            #7687AF 50%,
            #63749A 100%);
}

/* active */
.btn-call:active,
.cf7-btn:active {
    background: linear-gradient(90deg,
            #3A496B 0%,
            #4C5F87 50%,
            #3A496B 100%);

    transform: scale(0.98);
}

/* =========================================================
   📞 CONTACT FORM WRAPPER (CF7)
   ========================================================= */

.cf-call {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.cf-phone {
    max-width: 380px;
}

/* spinner CF7 */
.cf7-btn+.wpcf7-spinner {
    margin-left: 10px;
}

/* =========================================================
   📋 MENUS
   ========================================================= */

.header-menu,
.footer-menu,
.mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;

    list-style: none;
    padding: 0;
    margin: 0;
}

.header-menu li,
.footer-menu li,
.mobile-menu li {
    list-style: none;
}

.header-menu a,
.footer-menu a,
.mobile-menu a {
    text-decoration: none;
    display: block;

    font-size: 18px;
    font-weight: 500;
}

.header-menu a {
    color: #31111D;
}

.footer-menu a,
.mobile-menu a {
    color: #191919;
}

@media (max-width: 992px) {

    .footer-menu,
    .mobile-menu {
        flex-direction: column;
        gap: 24px;
    }

    .mobile-menu {
        gap: 12px;
    }
}

/* offcanvas fix */
.uabb-offcanvas-content {
    padding: 0 !important;
}


/*  */
/* Слайдер До-После */
/*  */

/* =========================================================
   ⭐ BEFORE / AFTER (SWIPER)
   ========================================================= */

.before-after-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   📸 SLIDE (aspect ratio)
   ========================================================= */

.before-after-slide {
    aspect-ratio: 12 / 7;
    overflow: hidden;
    border-radius: 6px;
}

.before-after-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   🎛 CONTROLS WRAPPER
   ========================================================= */

.before-after-controls {
    position: relative;
    margin-top: 20px;
    height: 36px;
}

/* =========================================================
   🔘 PAGINATION (CENTER)
   ========================================================= */

.before-after-section .swiper-pagination {
    position: absolute;
    left: 50%;
    top: 10px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* bullets */
.before-after-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    background: #AEB3C0;
    opacity: 1;

    border-radius: 50%;
    transition: 0.2s;
}

.before-after-section .swiper-pagination-bullet-active {
    background: #41537A;
    transform: scale(1.2);

    width: 30px;
    border-radius: 15px;
}

/* =========================================================
   ⬅️➡️ ARROWS (RIGHT SIDE)
   ========================================================= */

.before-after-section .before-after-arrows {
    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    gap: 10px;
    z-index: 10;
}

@media (max-width: 767px) {
    .before-after-section .before-after-arrows {
        display: none !important;
    }
}

/* buttons */
.before-after-section .swiper-button-prev,
.before-after-section .swiper-button-next {
    width: 36px;
    height: 36px;

    border: 1px solid #ccc;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: static !important;
}

/* icons */
.before-after-section .swiper-button-prev:after,
.before-after-section .swiper-button-next:after {
    font-size: 14px;
}



/*  */
/* Таблица сравнения */
/*  */

:root {
    --bg-blue: #41537A; /* Основний синій для + */
    --bg-red: #633B48;  /* Основний винний для - */
    --border-color: #B0ACC0; /* Дуже світлі лінії, як на фото */
    --text-color: #191919;
}

.dental-comparison {
    display: flex;
    /* max-width: 1200px; */
    margin: 0 auto;
    border-collapse: collapse;
    color: var(--text-color);
}

/* Спільні стилі для колонок на десктопі */
.comparison-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Стилізація заголовків (Вініри, Композит...) */
.col-title {
    font-size: 32px;

    font-weight: bold;
    padding: 20px 10px 40px 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Колонка тільки з назвами параметрів (ліва) */
.param-labels {
    flex: 0 0 250px; /* Фіксована ширина для назв */
}

.param-cell {
    height: 80px; /* Фіксована висота, щоб співпадала з даними */
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 24px;
    padding-left: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Стилізація комірок з даними */
.data-item {
    height: 80px; /* Співпадає з param-cell */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-bottom: 1px solid var(--border-color);
}
.data-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}

/* Заголовки параметрів всередині мобільного виду (сховані на ПК) */
.mobile-label {
    display: none;
}

/* Кружечки з + та - */
.status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}
.pos .status-icon { background-color: var(--bg-blue); }
.neg .status-icon { background-color: var(--bg-red); }


/* ========================================================= */
/* --- АДАПТАЦІЯ ПІД МОБІЛЬНИЙ (ПОВНА ВІДПОВІДНІСТЬ ФОТО 2) --- */
/* ========================================================= */

@media (max-width: 900px) {
    .dental-comparison {
        flex-direction: column; /* Колонки стають одна під одною */
        gap: 32px; /* Розрив між блоками Вініри/Композит */
    }

    /* Ховаємо окрему десктопну колонку параметрів */
    .param-labels {
        display: none;
    }

    .param-labels .col-title {
    color: transparent; /* Ховаємо слово "Параметр" як на десктопі */
}

    /* Блоки Вініри, Композит, Коронки */
    .data-group {
        width: 100%;
        border: none;
    }

    .col-title {
        font-size: 22px;
        padding: 10px 0 15px 0;
        border-bottom: 2px solid var(--border-color);
        color: #000;
    }

    .data-item {
        height: auto; /* Висота підлаштовується під текст */
        display: block; /* Елементи стають вертикальними */
        padding: 12px 0;
        border-bottom: none;
    }

    /* Показуємо назву параметра перед іконкою */
    .mobile-label {
        display: block;
        font-weight: 600;
        font-size: 20px;
        margin-bottom: 10px;
        color: #000;
    }

    /* Іконка і текст тепер в один рядок */
    .status-icon {
        display: inline-flex;
        vertical-align: middle;
        margin-right: 8px;
    }

    .data-item p {
        display: inline;
        vertical-align: middle;
        font-size: 16px;
    }
}





/*  */
/* Процесс устанвки виниров */
/*  */

.vinir-block{
    overflow: hidden;
}

/*  */
/* Доктор инфо блок */
/*  */

/* =========================================================
   LAYOUT
   ========================================================= */

.doctor-grid {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 20px;
}

/* =========================================================
   LEFT CARD
   ========================================================= */

.doctor-card {
    position: relative;
    height: 640px;
    border-radius: 6px;
    overflow: hidden;
}

.doctor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay */
.doctor-card__overlay {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    
    padding: 30px;
    color: #633B48;

    text-align: center;
    font-size: 22px;
    font-weight: 600;

    /* 🔥 glass effect */
    background: rgba(233, 233, 236, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   RIGHT GRID
   ========================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

/* =========================================================
   CARDS
   ========================================================= */

.feature-card {
    border-radius: 6px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* variants */
.feature-card--accent {
    background: #6c3d47;
    color: #fff;
}

.feature-card--light {
    background: #f1f2f5;
}

/* content */
.feature-card__icon {
    margin-bottom: 15px;
}

.feature-card__title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.feature-card__text {
    font-size: 16px;
    line-height: 1.4;
}

/* wide */
.feature-card--wide {
    grid-column: span 2;

    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* .feature-card__list {
    padding-left: 16px;
    font-size: 14px;
} */

/* =========================================================
   📱 TABLET
   ========================================================= */

@media (max-width: 991px) {

    .doctor-grid {
        grid-template-columns: 1fr; /* вместо 520px + 1fr */
        justify-items: center; /* чтобы по центру стояло */
    }

    .doctor-card {
        width: 100%;
        max-width: 520px; /* чтобы не растягивалось */
        
    }

    .features-grid {
        width: 100%;
        /* max-width: 520px; */
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .doctor-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .doctor-card {
        /* width: 356px;
        height: 440px; */
    }


    .features-grid {
        display: flex;
        flex-direction: column;
        /* width: 356px; */
        gap: 20px;
    }

    .feature-card,
    .feature-card--wide {
        width: 100%;
        flex-direction: column;
    }
}



/* =========================================================
   ⭐ REVIEWS (SWIPER)
   ========================================================= */

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

/* =========================================================
   🧾 CARD
   ========================================================= */

.review-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;

    padding: 30px 20px;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 15px;
}

.review-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    font-weight: 300;
    color: #191919;
}

.review-source {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.review-source img {
    width: 40px;
    height: 40px;
}

.review-rating {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
}

.review-text {
    font-size: 16px;
    line-height: 24px;
    color: #191919;
}

/* =========================================================
   🎛 CONTROLS WRAPPER
   ========================================================= */

.reviews-controls {
    position: relative;
    margin-top: 20px;
    height: 36px;
}

/* =========================================================
   🔘 PAGINATION (CENTER)
   ========================================================= */

.reviews-section .swiper-pagination {
    position: absolute;
    left: 50%;
    top: 10px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* bullets */
.reviews-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    background: #AEB3C0;
    opacity: 1;

    border-radius: 50%;
    transition: 0.2s;
}

.reviews-section .swiper-pagination-bullet-active {
    background: #41537A;
    transform: scale(1.2);

    width: 30px;
    border-radius: 15px;
}

/* =========================================================
   ⬅️➡️ ARROWS (RIGHT SIDE)
   ========================================================= */

.reviews-section .reviews-arrows {
    position: absolute;
    right: 0;
    top: 50%;

    transform: translateY(-50%);

    display: flex;
    gap: 10px;
    z-index: 10;
}

@media (max-width: 767px) {
    .reviews-section .reviews-arrows {
        display: none !important;
    }
}

/* buttons */
.reviews-section .swiper-button-prev,
.reviews-section .swiper-button-next {
    width: 36px;
    height: 36px;

    border: 1px solid #ccc;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: static !important;
}

/* icons */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 14px;
}

/* иконки */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 14px;
}

/* контейнер стрелок */
.reviews-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================
   ❓ FAQ
   ========================================================= */

.faq {
    width: 100%;
}

.faq__item {
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
}

/* question */
.faq__question {
    width: 100%;
    text-align: left;

    padding: 24px 32px;

    background: #fff;
    border: 1px solid #AEB3C0;
    border-radius: 6px;

    font-size: 20px;
    font-weight: 600;
    color: #191919 !important;

    cursor: pointer;

    position: relative;
    transition: background .2s ease, border .2s ease;
}

.faq__question:hover[aria-expanded="false"] {
    background: #F5F6FA;
}

.faq__question[aria-expanded="true"] {
    background: #F5F6FA;
    border-color: #F5F6FA;

    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* arrow */
.faq__question:after {
    content: "";

    position: absolute;
    right: 30px;
    top: 50%;

    width: 16px;
    height: 16px;

    background: url("/wp-content/uploads/2026/04/arrow-up.svg") center/contain no-repeat;

    transform: translateY(-50%) rotate(180deg);
    transition: transform .25s ease;
}

.faq__question[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(0deg);
}

/* answer */
.faq__answer {
    background: #F5F6FA;
    overflow: hidden;

    max-height: 0;
    transition: max-height .3s ease;
}

.faq__answer-inner {
    padding: 0 32px 24px 32px;

    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

.faq__question[aria-expanded="true"]+.faq__answer {
    border: 1px solid #F5F6FA;
    border-top: none;
}

/* =========================================================
   🖼 GALLERY (SWIPER + GRID)
   ========================================================= */

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* desktop grid */
@media (min-width: 768px) {

    .js-gallery-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;

        transform: none !important;
        height: auto !important;
    }

    .js-gallery-swiper .swiper-slide {
        width: auto !important;
        height: auto !important;
    }

    .js-gallery-swiper .swiper-pagination {
        display: none !important;
    }
}

/* mobile swiper */
@media (max-width: 767px) {

    .js-gallery-swiper {
        position: relative;
        padding-bottom: 28px;
    }

    .js-gallery-swiper .swiper-wrapper {
        display: flex !important;
    }

    .js-gallery-swiper .swiper-pagination {
        position: absolute !important;
        bottom: 0;

        left: 0;
        right: 0;

        display: flex;
        justify-content: center;
        align-items: center;

        gap: 6px;
        height: 10px;
    }

    .js-gallery-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;

        background: #AEB3C0;
        opacity: 1;

        border-radius: 50%;
        transition: 0.2s;
    }

    .js-gallery-swiper .swiper-pagination-bullet-active {
        background: #41537A;
        transform: scale(1.2);

        width: 30px;
        border-radius: 15px;
    }
}


/* убираем дефолтные стрелки */
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 14px;
    font-weight: 600;
}

/* базовые кнопки */
.reviews-section .swiper-button-prev,
.reviews-section .swiper-button-next,
.before-after-section .swiper-button-prev,
.before-after-section .swiper-button-next {
    width: 40px;
    height: 40px;

    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

/* =========================
   BASE (обе кнопки одинаковые)
   ========================= */

.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid #41537A;
    background: #41537A;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

/* стрелка */
.swiper-button-prev:after,
.swiper-button-next:after {
    color: #fff;
    transition: color 0.2s ease;
}

/* =========================
   HOVER (единая логика)
   ========================= */

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #41537A;
}

.swiper-button-prev:hover:after,
.swiper-button-next:hover:after {
    color: #fff;
}

/* =========================
   DISABLED (если Swiper добавит)
   ========================= */

.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    background: #fff;

}

.swiper-button-disabled:after{
    color: #41537A;
}