/* ==========================================================================
   VIA Derm — додаткові елементи
   (адреса в моб. хедері, слайдери послуг/лікарів, відгуки, соцмережі)
   Бренд: gold #c6ac73, blackish #11141a
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Мобільний хедер — компактний і липкий (завжди видно при скролі)
   Адресу з шапки прибрано (є в футері та на сторінці контактів).
   -------------------------------------------------------------------------- */
.pbmit-header-address-mobile {
    display: none !important;
}

@media (max-width: 991px) {
    /* Шапка закріплена вгорі екрана */
    .site-header .pbmit-header-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001;
        background: rgba(17, 20, 26, .94);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(198, 172, 115, .18);
    }

    /* Висота — удвічі менша за десктопні 110px */
    .pbmit-header-style-1 .site-branding .site-title,
    .site-header .pbmit-header-content {
        height: 56px;
        min-height: 56px;
    }
    .site-header .pbmit-main-header-area .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .pbmit-header-style-1 .pbmit-logo-area {
        padding-right: 0;
    }

    /* Логотип менший */
    .site-header .site-branding img,
    .site-header .pbmit-main-logo {
        max-height: 34px;
        height: 34px;
        width: auto;
    }

    /* Бургер компактніший і притиснутий до правого краю */
    .site-header .nav-menu-toggle {
        padding: 0;
        line-height: 1;
    }
    .site-header .nav-menu-toggle i {
        font-size: 22px;
    }

    /* Клон липкого хедера не потрібен — основна шапка вже fixed */
    .site-header .pbmit-sticky-header {
        display: none !important;
    }

    /* Якорі не ховаються під закріпленою шапкою */
    html {
        scroll-padding-top: 68px;
    }

    /* Меню відкривається поверх закріпленої шапки */
    body.active .site-header .pbmit-header-overlay {
        background: transparent;
        border-bottom-color: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* Дуже вузькі екрани — ще трохи компактніше */
@media (max-width: 400px) {
    .site-header .site-branding img,
    .site-header .pbmit-main-logo {
        max-height: 30px;
        height: 30px;
    }
}

/* --------------------------------------------------------------------------
   2. Фільтр напрямків (ліпкі чіпи) — горизонтальний свайп-рядок на мобільному
   На десктопі лишаються як були. Картки послуг — звичайна сітка (стовпчик).
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .pbmit-service-filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        padding: 6px 2px;
        margin-left: -4px;
        margin-right: -4px;
        scroll-snap-type: x proximity;
    }
    .pbmit-service-filter::-webkit-scrollbar {
        display: none;
    }
    .pbmit-service-filter .pbmit-filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }
}

/* --------------------------------------------------------------------------
   3. Слайдери (лікарі / відгуки) — стрілки та підказка про прокрутку
   -------------------------------------------------------------------------- */
.pbmit-doctors-slider-section .swiper-slider,
.pbmit-reviews-section .swiper-slider {
    position: relative;
}

/* Робимо стрілки помітнішими, щоб було видно «є ще» */
.pbmit-doctors-slider-section .swiper-buttons,
.pbmit-reviews-section .swiper-buttons {
    pointer-events: none;
}
.pbmit-doctors-slider-section .swiper-button-next,
.pbmit-doctors-slider-section .swiper-button-prev,
.pbmit-reviews-section .swiper-button-next,
.pbmit-reviews-section .swiper-button-prev {
    pointer-events: auto;
}

/* На мобільному частина наступної картки видно завдяки data-mobile peek */
@media (max-width: 575px) {
    .pbmit-doctors-slider-section .pbmit-team-style-2,
    .pbmit-reviews-section .pbmit-review-card {
        padding-right: 4px;
    }
}

/* --------------------------------------------------------------------------
   4. Відгуки
   -------------------------------------------------------------------------- */
.pbmit-reviews-section {
    background: #0d1014;
}
.pbmit-review-card {
    height: auto;
}
.pbmit-review-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #161b22;
    border: 1px solid rgba(198, 172, 115, .18);
    border-radius: 14px;
    padding: 28px 26px;
}
.pbmit-review-stars {
    color: #c6ac73;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.pbmit-review-text {
    color: #dadada;
    font-size: 15px;
    line-height: 1.7;
    flex: 1 1 auto;
    margin-bottom: 18px;
}
.pbmit-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
}
.pbmit-review-author {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}
.pbmit-review-about {
    color: #c6ac73;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* --------------------------------------------------------------------------
   4b. Форма "Залишити відгук"
   -------------------------------------------------------------------------- */
.pbmit-review-form-section {
    background: #11141a;
}
.pbmit-review-form-box {
    max-width: 760px;
    margin: 0 auto;
    background: #161b22;
    border: 1px solid rgba(198, 172, 115, .18);
    border-radius: 16px;
    padding: 40px 34px;
}
.pbmit-review-form .row {
    margin-bottom: 6px;
}
.pbmit-review-form label {
    color: #cfcfcf;
    font-size: 13px;
    margin-bottom: 6px;
    display: inline-block;
}
.pbmit-review-form .form-control {
    margin-bottom: 14px;
}
/* Зірковий ввід оцінки */
.pbmit-star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 28px;
    line-height: 1;
}
.pbmit-star-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.pbmit-star-input label {
    color: #3a3f46;
    cursor: pointer;
    margin: 0;
    transition: color .15s ease;
}
.pbmit-star-input input:checked ~ label,
.pbmit-star-input label:hover,
.pbmit-star-input label:hover ~ label {
    color: #c6ac73;
}

/* --------------------------------------------------------------------------
   5. Соцмережі (Instagram / TikTok)
   -------------------------------------------------------------------------- */
.pbmit-social-feed-section {
    background: #11141a;
}
.pbmit-social-feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}
.pbmit-social-col {
    background: #161b22;
    border: 1px solid rgba(198, 172, 115, .18);
    border-radius: 16px;
    padding: 22px;
    min-height: 320px;
    min-width: 0;          /* щоб embed не розпирав колонку */
    display: flex;
    flex-direction: column;
}
.pbmit-social-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pbmit-social-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 17px;
}
.pbmit-social-handle:hover {
    color: #c6ac73;
}
.pbmit-social-handle svg {
    color: #c6ac73;
}
.pbmit-social-follow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid #c6ac73;
    color: #c6ac73;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.pbmit-social-follow:hover {
    background: #c6ac73;
    color: #11141a;
}
.pbmit-social-embed {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.pbmit-social-embed iframe {
    max-width: 100% !important;
}
.pbmit-social-col-tiktok .pbmit-social-embed {
    display: flex;
    justify-content: center;
}

/* Instagram — горизонтальний слайдер дописів (не рве дизайн) */
.pbmit-ig-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(198,172,115,.5) transparent;
    padding-bottom: 12px;
    width: 100%;
}
.pbmit-ig-track::-webkit-scrollbar {
    height: 6px;
}
.pbmit-ig-track::-webkit-scrollbar-thumb {
    background: rgba(198,172,115,.5);
    border-radius: 6px;
}
.pbmit-ig-slide {
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}
.pbmit-ig-slide .instagram-media {
    min-width: 300px !important;
    width: 300px !important;
}

/* Картка-заклик Instagram, коли немає вбудованих дописів */
.pbmit-instagram-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    min-height: 260px;
}
.pbmit-instagram-cta:hover {
    color: #fff;
    opacity: .94;
}
.pbmit-instagram-cta-text {
    font-size: 18px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .pbmit-social-feed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pbmit-social-col {
        min-height: 0;
    }
}
