/* ============================================================
   DOCTORS TEAM — Smilora (Classic)
   ============================================================ */

.doctors-team-con {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 64px 0 72px;
    background: linear-gradient(135deg, #fafbff 0%, #f1f3fe 55%, #e3e8fe 100%);
}

.doctors-team-con::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 0L60 15v22L30 52 0 37V15z' fill='none' stroke='%233a4498' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 50px 44px;
    opacity: 0.6;
    pointer-events: none;
}

.doctors-team-con *,
.doctors-team-con *::before,
.doctors-team-con *::after {
    box-sizing: border-box;
}

.doctors-team-con .main-container {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    display: flex;
    justify-content: center;
}

.doctors-team-inner {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 44px;
    align-items: center;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ── SHOWCASE (left) ── */
.doctors-team-showcase-desktop {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.doctors-team-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 460px;
    margin: 0 auto;
    overflow: visible;
}

.doctors-team-showcase .showcase-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.doctors-team-showcase .circle-1,
.doctors-team-showcase .circle-2,
.doctors-team-showcase .circle-3 {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(58, 68, 152, 0.12);
}

.doctors-team-showcase .circle-1 {
    width: 380px;
    height: 380px;
    bottom: 20px;
    left: 50%;
    transform: translateX(-55%);
    border-color: rgba(58, 68, 152, 0.14);
}

.doctors-team-showcase .circle-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-style: dashed;
    border-color: rgba(58, 68, 152, 0.16);
}

.doctors-team-showcase .circle-3 {
    width: 220px;
    height: 220px;
    bottom: 90px;
    left: 50%;
    transform: translateX(-45%);
    background: radial-gradient(circle, rgba(227, 232, 254, 0.7) 0%, transparent 70%);
    border: none;
}

.doctors-team-showcase .dot-arc {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 72px;
    height: 130px;
    border-left: 2px dotted rgba(58, 68, 152, 0.22);
    border-radius: 100% 0 0 100%;
    pointer-events: none;
}

/* Оверлеї — компактно навколо PNG лікаря */
.doctors-team-showcase .showcase-overlay {
    position: absolute;
    z-index: 5;
    min-width: 0;
    pointer-events: none;
}

.doctors-team-showcase .showcase-overlay a,
.doctors-team-showcase .showcase-overlay .doctor-card {
    pointer-events: auto;
}

.doctors-team-showcase .showcase-overlay--messengers {
    left: 10%;
    top: 4%;
    z-index: 6;
}

.doctors-team-showcase .showcase-overlay--perks {
    top: 11%;
    right: -3%;
    left: auto;
    z-index: 7;
}

.doctors-team-showcase .showcase-overlay--cta {
    bottom: 2%;
    left: 13%;
    z-index: 8;
}

.doctors-team-showcase .showcase-overlay--info {
    bottom: 0;
    left: 58%;
    right: auto;
    z-index: 7;
}

.doctors-team-showcase .messengers-arc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.doctors-team-showcase .messengers-arc a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(58, 68, 152, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary--color);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Дуга месенджерів — півмісяць навколо PNG, вигин у бік праворуч (до лікаря) */
.doctors-team-showcase .messengers-arc a:nth-child(1) { margin-left: 24px; }
.doctors-team-showcase .messengers-arc a:nth-child(2) { margin-left: 0; }
.doctors-team-showcase .messengers-arc a:nth-child(3) { margin-left: 24px; }

.doctors-team-showcase .messengers-arc a:hover { transform: scale(1.06); color: #fff; }
.doctors-team-showcase .messengers-arc a.viber:hover { background: #7360f2; }
.doctors-team-showcase .messengers-arc a.whatsapp:hover { background: #25d366; }
.doctors-team-showcase .messengers-arc a.telegram:hover { background: #0088cc; }

.doctors-team-showcase .perks-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(58, 68, 152, 0.13);
    border-radius: 14px;
    padding: 11px 13px;
    box-shadow:
        0 8px 28px rgba(58, 68, 152, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    max-width: 200px;
}

.doctors-team-showcase .perks-badge .perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black--family--color2);
    line-height: 1.3;
}

.doctors-team-showcase .perks-badge .perk-item + .perk-item { margin-top: 10px; }

.doctors-team-showcase .perks-badge .perk-item i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lavender--color2);
    color: var(--primary--color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.doctors-team-showcase .doctor-photo-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 62%;
    max-width: 300px;
    height: 92%;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.doctors-team-showcase .doctor-photo-wrap img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.doctors-team-showcase .doctor-photo-wrap img.is-switching {
    opacity: 0;
    transform: translateY(8px);
}

.doctors-team-showcase .info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(58, 68, 152, 0.13);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow:
        0 10px 32px rgba(58, 68, 152, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    max-width: 230px;
}

.doctors-team-showcase .info-card .info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.doctors-team-showcase .info-card .info-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--lavender--color2);
    flex-shrink: 0;
}

.doctors-team-showcase .info-card .info-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--black--family--color2);
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.doctors-team-showcase .info-card .info-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary--color);
    display: block;
}

.doctors-team-showcase .info-card .info-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text--color);
    margin: 0;
    word-break: break-word;
}

/* ── PERSONAL CTA ── */
.doctors-team-showcase .doctors-personal-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    position: relative;
    padding: 10px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(58, 68, 152, 0.16);
    box-shadow:
        0 8px 24px rgba(58, 68, 152, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: var(--primary--color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transform: rotate(-3deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    min-height: 44px;
    max-width: 195px;
    pointer-events: auto;
}

.doctors-team-showcase .doctors-personal-cta__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary--color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.doctors-team-showcase .doctors-personal-cta:hover {
    transform: rotate(-1deg) translateY(-2px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(58, 68, 152, 0.18);
    color: var(--primary--color);
    text-decoration: none;
}

.doctors-team-showcase .doctors-personal-cta:hover .doctors-personal-cta__icon {
    transform: scale(1.06);
}

.doctors-team-showcase .doctors-personal-cta:focus-visible {
    outline: 2px solid var(--primary--color);
    outline-offset: 3px;
}

/* ── CONTENT (right) ── */
.doctors-team-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.doctors-team-heading {
    margin-bottom: 20px;
}

.doctors-team-heading .text-size-46 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.2;
}

.doctors-team-heading .doctors-title-accent {
    color: var(--primary--color);
}

.doctors-team-content .section-desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text--color);
    margin-bottom: 22px;
    max-width: 100%;
    word-break: break-word;
}

.doctors-team-content .section-desc .desc-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.doctors-team-content .section-desc .desc-icons span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary--color);
    background: rgba(255, 255, 255, 0.75);
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--border--color);
}

.doctors-team-content .section-desc .desc-icons span i {
    color: var(--primary--color);
    font-size: 12px;
}

/* ── DOCTOR CARDS ── */
.doctors-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.doctor-card {
    background: var(--lavender--color2);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 0;
}

.doctor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 68, 152, 0.1);
}

.doctor-card.is-active {
    background: var(--primary--color);
    border-color: var(--primary--color);
    box-shadow: 0 10px 28px rgba(58, 68, 152, 0.2);
}

.doctor-card .card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.doctor-card .card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(58, 68, 152, 0.1);
}

.doctor-card.is-active .card-avatar {
    border-color: rgba(255, 255, 255, 0.45);
}

.doctor-card .card-info {
    min-width: 0;
    flex: 1;
}

.doctor-card .card-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black--family--color2);
    margin: 0 0 4px;
    line-height: 1.25;
    word-break: break-word;
}

.doctor-card.is-active .card-info h4 { color: #fff; }

.doctor-card .card-info .card-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary--color);
    display: block;
    word-break: break-word;
    line-height: 1.3;
}

.doctor-card.is-active .card-info .card-role {
    color: var(--lavender--color);
}

/* ── MOBILE CAROUSELS ── */
.doctors-cards-scroll,
.doctors-showcase-scroll { display: none; }

.doctors-cards-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding: 2px 0 6px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.doctors-cards-scroll::-webkit-scrollbar,
.doctors-showcase-scroll::-webkit-scrollbar { display: none; }

.doctors-cards-scroll .doctor-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
    min-width: 0;
}

.doctors-showcase-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
}

.doctors-showcase-scroll .showcase-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    min-width: 0;
    width: 100%;
    position: relative;
}

.doctors-showcase-scroll .showcase-slide .doctors-team-showcase {
    min-height: 492px;
    height: auto;
    max-width: 100%;
}

.doctors-showcase-scroll .showcase-slide .doctor-photo-wrap img {
    max-height: 100%;
}

.mobile-showcase-block {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {


    .doctors-team-showcase .showcase-overlay--perks {
        top: 8%;
        right: 6%;
    }
    
    
    .doctors-team-wrap,
    .doctors-team-con {
        overflow: visible;
    }

    .doctors-team-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .doctors-team-showcase-desktop { display: none; }

    .doctors-team-content { order: 1; }

    .doctors-cards-grid { display: none; }

    .doctors-cards-scroll { display: flex; order: 2; }

    .mobile-showcase-block {
        display: block;
        order: 3;
        margin-top: 4px;
        padding-bottom: 12px;
        overflow: visible;
    }

    .doctors-showcase-scroll {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Мобільний showcase — авто-висота, без внутрішнього скролу */
    .doctors-showcase-scroll .showcase-slide {
        overflow: visible;
    }

    .doctors-showcase-scroll .showcase-slide .doctors-team-showcase {
        height: auto;
        min-height: 492px;
        padding-bottom: 0;
    }

    .doctors-team-showcase .doctor-photo-wrap {
        width: 58%;
        max-width: 260px;
        height: 82%;
        bottom: 78px;
    }

    .doctors-team-showcase .showcase-overlay--cta {
        bottom: 30%;
        left: 8%;
    }

    /* Мобільний: горизонтальна плашка під лікарем */
    .doctors-team-showcase .showcase-overlay--info {
        top: auto;
        bottom: 6px;
        left: 10px;
        right: 10px;
        width: auto;
        transform: none;
    }

    .doctors-team-showcase .perks-badge {
        width: 175px;
        max-width: 175px;
        padding: 9px 11px;
    }

    .doctors-team-showcase .perks-badge .perk-item {
        font-size: 13px;
    }

    .doctors-team-showcase .perks-badge .perk-item i {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .doctors-team-showcase .info-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 11px;
        width: 100%;
        max-width: 100%;
        padding: 9px 11px;
        border-radius: 14px;
    }

    .doctors-team-showcase .info-card .info-header {
        flex: 0 0 auto;
        width: 42%;
        max-width: 142px;
        margin-bottom: 0;
        gap: 8px;
        align-items: center;
    }

    .doctors-team-showcase .info-card .info-avatar {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .doctors-team-showcase .info-card .info-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .doctors-team-showcase .info-card .info-role {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
    }

    .doctors-team-showcase .info-card .info-text {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        margin: 0;
        padding-top: 0;
        color: var(--black--family--color2);
    }

    .doctors-team-showcase .doctors-personal-cta {
        font-size: 11px;
        padding: 9px 12px;
        max-width: 175px;
        transform: rotate(-2deg);
    }

    .doctors-team-showcase .doctors-personal-cta__icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .doctors-team-showcase .messengers-arc a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .doctors-team-content .heading-title-con {
        text-align: center;
    }

    .doctors-team-heading {
        margin-bottom: 16px;
    }

    .doctors-cards-scroll .doctor-card {
        flex: 0 0 78%;
        padding: 16px 18px;
    }

    .doctors-cards-scroll .doctor-card .card-avatar {
        width: 64px;
        height: 64px;
    }

    .doctors-cards-scroll .doctor-card .card-info h4 {
        font-size: 18px;
    }

    .doctors-cards-scroll .doctor-card .card-info .card-role {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .doctors-team-heading .text-size-46 { font-size: 28px; }

    .doctors-team-content .section-desc {
        font-size: 16px;
        margin-bottom: 16px;
        padding: 0 4px;
    }

    .doctors-showcase-scroll .showcase-slide .doctors-team-showcase {
        min-height: 472px;
        padding-bottom: 0;
    }

    .doctors-team-showcase .doctor-photo-wrap {
        width: 56%;
        max-width: 240px;
        height: 80%;
        bottom: 72px;
    }

    .doctors-team-showcase .showcase-overlay--messengers {
        left: 7%;
        top: 2%;
    }

    .doctors-team-showcase .showcase-overlay--cta {
        bottom: 28%;
        left: 6%;
    }

    .doctors-team-showcase .showcase-overlay--info {
        bottom: 4px;
        left: 8px;
        right: 8px;
        transform: none;
    }

    .doctors-team-showcase .perks-badge {
        width: 165px;
        max-width: 165px;
    }

    .doctors-team-showcase .info-card .info-header {
        width: 44%;
        max-width: 132px;
    }

    .doctors-team-showcase .info-card .info-avatar {
        width: 36px;
        height: 36px;
    }

    .doctors-team-showcase .info-card .info-name {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .doctors-team-showcase .info-card .info-role {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .doctors-team-showcase .info-card .info-text {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
    }

    .doctors-team-showcase .doctors-personal-cta {
        max-width: 165px;
    }

    .doctors-team-showcase .circle-1 { width: 280px; height: 280px; }
    .doctors-team-showcase .circle-2 { width: 220px; height: 220px; }

    .doctors-team-showcase .perks-badge .perk-item {
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .doctors-team-showcase-desktop {
        display: block;
        max-width: 720px;
    }

    .doctors-team-showcase-desktop .doctors-team-showcase {
        transform: scale(1.2);
        transform-origin: center center;
    }

    .mobile-showcase-block { display: none !important; }
    .doctors-cards-scroll { display: none !important; }

    .doctors-team-showcase {
        height: 480px;
        max-width: 520px;
    }

    .doctors-team-showcase .doctor-photo-wrap {
        width: 60%;
        max-width: 320px;
    }

    /* Десктоп: месенджери зверху зліва, ближче до PNG, дугою навколо лікаря */
    .doctors-team-showcase .showcase-overlay--messengers {
        left: 10%;
        top: 3%;
    }

    /* Десктоп: кнопка запису — внизу зліва, біля підошви PNG */
    .doctors-team-showcase .showcase-overlay--cta {
        bottom: 1%;
        left: 12%;
    }

    /* Десктоп: опис лікаря — справа внизу, лише 1/4 PNG */
    .doctors-team-showcase .showcase-overlay--info {
        bottom: 0;
        left: 56%;
        right: auto;
    }

    .doctors-team-showcase .perks-badge {
        max-width: 210px;
    }

    .doctors-team-showcase .info-card {
        max-width: 220px;
    }

    .doctors-team-showcase .doctors-personal-cta {
        max-width: 205px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .doctors-team-showcase .doctors-personal-cta,
    .doctors-team-showcase .doctors-personal-cta__icon {
        transition: none;
    }

    .doctors-team-showcase .doctors-personal-cta:hover {
        transform: rotate(-3deg);
    }
}
