:root {
    --accent:   #c9001e;
    --accent-h: #a8001a;
    --bg:       #f5f5f7;
    --card:     #ffffff;
    --brd:      #e0e0e0;
    --dark:     #1a1a2e;
    --body:     #555555;
    --r:        16px;
}

/* ── СЕКЦІЯ ── */
.vfpo-trainers-section {
    padding: 60px 0 70px;
    background: var(--bg);
}
.vfpo-trainers-header { text-align:center; margin-bottom:44px; }
.vfpo-trainers-title  { font-size:clamp(26px,4vw,40px); font-weight:700; color:var(--dark); margin:0 0 10px; }
.vfpo-trainers-subtitle { font-size:16px; color:#777; margin:0; }

/* ── WRAPPER ── */
.vfpo-carousel-wrapper { max-width:1600px; margin:0 auto; padding:0 20px; box-sizing:border-box; }

/* ── FLEXBOX РЯД: [←] [swiper] [→] ── */
.vfpo-carousel-row { display:flex; align-items:center; gap:12px; }

/* ── СТРІЛКИ ── */
.vfpo-btn-prev,
.vfpo-btn-next {
    flex: 0 0 44px;
    width:44px; height:44px;
    background:#fff; border:1px solid #ddd;
    border-radius:50%;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
    cursor:pointer; font-size:16px; font-weight:700;
    color:var(--dark);
    display:flex; align-items:center; justify-content:center;
    transition:all .2s; padding:0; line-height:1;
    position:static !important; transform:none !important;
    top:auto !important; left:auto !important; right:auto !important; margin:0 !important;
}
.vfpo-btn-prev:hover, .vfpo-btn-next:hover { background:var(--accent); border-color:var(--accent); color:#fff; }

/* ── SWIPER ── */
.vfpo-swiper-wrap { flex:1 1 0; min-width:0; overflow:hidden; }
.vfpo-swiper      { overflow:hidden !important; width:100% !important; }
.vfpo-swiper .swiper-wrapper  { align-items:stretch !important; }
.vfpo-swiper .swiper-slide    { height:auto !important; display:flex !important; box-sizing:border-box; }

/* ── КАРТКА ── */
.vfpo-trainer-card {
    background:var(--card); border:1px solid var(--brd);
    border-radius:var(--r); padding:28px 20px 22px;
    box-shadow:0 2px 16px rgba(0,0,0,.08);
    display:flex; flex-direction:column;
    width:100%; box-sizing:border-box;
    position:relative; overflow:hidden;
    transition:transform .25s, box-shadow .25s;
}
.vfpo-trainer-card::before {
    content:''; position:absolute; top:0; left:0; right:0;
    height:4px; background:var(--accent);
}
.vfpo-trainer-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0,0,0,.14); }

/* ── ВЕРХ КАРТКИ ── */
.vfpo-card-top {
    display:flex; flex-direction:column; align-items:center;
    text-align:center; gap:14px;
    padding-bottom:16px; border-bottom:1px solid #f0f0f0; margin-bottom:14px;
}
.vfpo-avatar-wrap { width:110px; height:110px; flex-shrink:0; }
.vfpo-avatar {
    width:110px; height:110px; border-radius:50%;
    object-fit:cover; object-position:center top;
    border:3px solid var(--accent);
    box-shadow:0 4px 14px rgba(201,0,30,.2); display:block;
}
.vfpo-avatar-placeholder {
    width:110px; height:110px; border-radius:50%;
    background:linear-gradient(135deg,var(--accent),#7a0010);
    display:flex; align-items:center; justify-content:center;
    border:3px solid var(--accent);
}
.vfpo-avatar-placeholder span { font-size:38px; font-weight:700; color:#fff; text-transform:uppercase; }
.vfpo-trainer-name { font-size:17px; font-weight:700; color:var(--dark); margin:0 0 5px; }
.vfpo-trainer-position { font-size:11px; font-weight:600; color:var(--accent); text-transform:uppercase; letter-spacing:.05em; line-height:1.5; margin:0; }
.vfpo-trainer-desc { font-size:14px; line-height:1.7; color:var(--body); margin:0 0 18px; flex:1; }

/* ── КНОПКА ЗВ'ЯЗАТИСЬ ── */
.vfpo-contact-btn {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--accent); color:#fff !important;
    border:none; cursor:pointer;
    font-size:14px; font-weight:600;
    padding:11px 22px; border-radius:6px;
    align-self:flex-start; margin-top:auto;
    box-shadow:0 2px 10px rgba(201,0,30,.25);
    transition:all .2s; text-decoration:none !important;
}
.vfpo-contact-btn:hover { background:var(--accent-h) !important; transform:translateY(-1px); }

/* ── ПАГІНАЦІЯ ── */
.vfpo-pagination { text-align:center; margin-top:20px; }
.vfpo-pagination .swiper-pagination-bullet { background:#bbb !important; opacity:1 !important; width:8px !important; height:8px !important; display:inline-block; border-radius:50%; transition:all .25s !important; margin:0 4px; }
.vfpo-pagination .swiper-pagination-bullet-active { background:var(--accent) !important; width:26px !important; border-radius:4px !important; }

/* ══════════════════════════════════════════════════════
   МОДАЛЬНЕ ВІКНО
══════════════════════════════════════════════════════ */
.vfpo-modal-overlay {
    position:fixed; inset:0; z-index:99999;
    background:rgba(0,0,0,.55);
    display:flex; align-items:center; justify-content:center;
    padding:20px; box-sizing:border-box;
    animation:vfpoFadeIn .2s ease;
}
@keyframes vfpoFadeIn { from{opacity:0} to{opacity:1} }

.vfpo-modal {
    background:#fff; border-radius:20px;
    padding:36px 32px 32px;
    max-width:480px; width:100%;
    position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    animation:vfpoSlideUp .25s ease;
}
@keyframes vfpoSlideUp { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.vfpo-modal-close {
    position:absolute; top:16px; right:16px;
    width:32px; height:32px; border-radius:50%;
    background:#f0f0f0; border:none; cursor:pointer;
    font-size:18px; color:#555;
    display:flex; align-items:center; justify-content:center;
    transition:all .15s; line-height:1; padding:0;
}
.vfpo-modal-close:hover { background:#e0e0e0; color:#1a1a2e; }

.vfpo-modal-header {
    display:flex; align-items:center; gap:16px;
    margin-bottom:24px; padding-bottom:20px;
    border-bottom:1px solid #f0f0f0;
}
.vfpo-modal-avatar {
    width:64px; height:64px; border-radius:50%;
    border:2px solid var(--accent); flex-shrink:0;
    overflow:hidden; background:linear-gradient(135deg,var(--accent),#7a0010);
    display:flex; align-items:center; justify-content:center;
    font-size:24px; font-weight:700; color:#fff;
}
.vfpo-modal-avatar img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.vfpo-modal-name { font-size:18px; font-weight:700; color:var(--dark); margin:0 0 4px; }
.vfpo-modal-subtitle { font-size:13px; color:#888; margin:0; }

.vfpo-modal-contacts { display:flex; flex-direction:column; gap:10px; }

.vfpo-modal-link {
    display:flex; align-items:center; gap:14px;
    padding:14px 18px; border-radius:12px;
    background:#f8f8f8; border:1px solid #ebebeb;
    text-decoration:none !important; color:var(--dark) !important;
    font-size:14px; font-weight:500;
    transition:all .18s; cursor:pointer;
}
.vfpo-modal-link:hover { background:#fff3f4; border-color:var(--accent); color:var(--accent) !important; transform:translateX(3px); }

.vfpo-modal-icon {
    width:40px; height:40px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-size:20px; flex-shrink:0;
}
.vfpo-modal-icon.email    { background:#fff0f0; }
.vfpo-modal-icon.telegram { background:#e8f4fd; }
.vfpo-modal-icon.phone    { background:#f0fff4; }
.vfpo-modal-icon.teams    { background:#f0f0ff; }

.vfpo-modal-link-info { display:flex; flex-direction:column; gap:2px; overflow:hidden; }
.vfpo-modal-link-label { font-size:11px; color:#999; text-transform:uppercase; letter-spacing:.05em; }
.vfpo-modal-link-value { font-size:14px; font-weight:600; color:var(--dark); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── АДАПТИВ ── */
@media (max-width:640px) {
    .vfpo-carousel-wrapper { padding:0 8px; }
    .vfpo-btn-prev, .vfpo-btn-next { flex:0 0 36px; width:36px; height:36px; font-size:13px; }
    .vfpo-avatar-wrap, .vfpo-avatar, .vfpo-avatar-placeholder { width:90px; height:90px; }
    .vfpo-modal { padding:28px 20px 24px; }
}
