    /* ══════════════════════════════════════════════════
       HEADER
    ══════════════════════════════════════════════════ */
.xf-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1566B7 55%, #2979c8 100%);
    padding: 64px 0 52px; position: relative; overflow: hidden;
}
.xf-header::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.xf-header-inner { position: relative; z-index: 1; }
.xf-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.xf-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.xf-breadcrumb a:hover { color: #fff; }
.xf-header-tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,213,79,0.18); border: 1px solid rgba(255,213,79,0.35);
    color: #FFD54F; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 30px; margin-bottom: 16px;
}
.xf-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 44px); font-weight: 900;
    color: #fff; margin: 0 0 14px; line-height: 1.15;
}
.xf-header h1 em { font-style: italic; color: #FFD54F; }
.xf-header-sub { font-size: 15px; color: rgba(255,255,255,0.72); max-width: 540px; line-height: 1.65; margin: 0 0 28px; }
.xf-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.xf-stat { display: flex; flex-direction: column; gap: 3px; }
.xf-stat-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: #FFD54F; line-height: 1; }
.xf-stat-lbl { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.3px; }

/* Action buttons */
.xf-action-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.xf-action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.6px;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.2s; font-family: sans-serif; white-space: nowrap;
}
.xf-btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.30); }
.xf-btn-outline:hover { background: rgba(255,255,255,0.22); color: #fff; text-decoration: none; transform: translateY(-1px); }
.xf-btn-primary { background: #FFD54F; color: #0d2b5e; }
.xf-btn-primary:hover { background: #ffe082; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,213,79,0.35); }

/* ══════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════ */
.xf-section { padding: 48px 0 72px; background: #f4f7fc; }
.xf-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
@media (max-width: 991px) { .xf-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.xf-sidebar {
    position: sticky; top: 80px; background: #fff; border-radius: 20px;
    padding: 20px 14px; border: 1px solid #e4ecf7;
    box-shadow: 0 4px 20px rgba(21,102,183,0.07);
}
.xf-nav-title { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #94a3b8; padding: 0 10px; margin-bottom: 10px; }
.xf-nav { display: flex; flex-direction: column; gap: 4px; }
.xf-nav-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    border: none; background: transparent;
    text-align: left; cursor: pointer; width: 100%;
    font-size: 13.5px; font-weight: 500; color: #374151; transition: all 0.2s;
}
.xf-nav-btn .xf-nav-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; background: #f0f6ff; color: #1566B7;
}
.xf-nav-badge { margin-left: auto; font-size: 10px; font-weight: 700; background: #e8f0fb; color: #1566B7; padding: 2px 7px; border-radius: 20px; }
.xf-nav-btn .xf-arrow { margin-left: auto; font-size: 10px; color: #cbd5e1; transition: transform 0.2s; }
.xf-nav-btn:hover { background: #f0f6ff; color: #1566B7; }
.xf-nav-btn.active { background: #1566B7; color: #fff; box-shadow: 0 4px 16px rgba(21,102,183,0.28); }
.xf-nav-btn.active .xf-nav-icon { background: rgba(255,255,255,0.2); color: #fff; }
.xf-nav-btn.active .xf-nav-badge { background: rgba(255,255,255,0.2); color: #fff; }
.xf-nav-btn.active .xf-arrow { transform: translateX(2px); color: #fff; }

.xf-sidebar-info { margin-top: 14px; padding: 16px; background: linear-gradient(135deg, #0d47a1, #1566B7); border-radius: 14px; color: #fff; }
.xf-sidebar-info h5 { font-family: 'Playfair Display', serif; font-size: 14px; margin: 0 0 8px; }
.xf-sidebar-info p { font-size: 12px; color: rgba(255,255,255,0.78); line-height: 1.6; margin: 0 0 12px; }
.xf-sidebar-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.xf-sidebar-tag { font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 20px; }

/* Panels */
.xf-content { min-width: 0; }
.xf-panel { display: none; animation: xfIn 0.28s ease; }
.xf-panel.active { display: block; }
@keyframes xfIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.xf-panel-header {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff; border-radius: 20px; padding: 24px 28px; margin-bottom: 20px;
    border: 1px solid #e4ecf7; box-shadow: 0 4px 20px rgba(21,102,183,0.07);
}
.xf-panel-icon { width: 50px; height: 50px; border-radius: 14px; background: #e8f0fb; color: #1566B7; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.xf-panel-header h2 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: #1a2535; margin: 0 0 4px; }
.xf-panel-header p { font-size: 13px; color: #6b7d99; margin: 0; }

/* Doc list */
.xf-doc-list { display: flex; flex-direction: column; gap: 8px; }
.xf-doc-item {
    display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 12px;
    padding: 14px 18px; border: 1px solid #e4ecf7; text-decoration: none; color: #1a2535;
    font-size: 14px; font-weight: 500; line-height: 1.5; transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04); opacity: 0; transform: translateY(6px);
}
.xf-doc-item.visible { opacity: 1; transform: translateY(0); transition: opacity 0.3s ease, transform 0.3s ease; }
.xf-doc-item:hover { border-color: rgba(21,102,183,0.3); background: #f0f6ff; box-shadow: 0 4px 16px rgba(21,102,183,0.10); transform: translateX(4px); color: #0d47a1; text-decoration: none; }
.xf-doc-num { width: 30px; height: 30px; border-radius: 8px; background: #e8f0fb; color: #1566B7; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.xf-doc-item:hover .xf-doc-num { background: #1566B7; color: #fff; }
.xf-doc-text { flex: 1; }
.xf-doc-arr { font-size: 11px; color: #cbd5e1; flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
.xf-doc-item:hover .xf-doc-arr { transform: translateX(3px); color: #1566B7; }

/* Empty */
.xf-empty { text-align: center; padding: 48px 24px; background: #fff; border-radius: 16px; border: 1px dashed #c7dcf8; color: #94a3b8; font-size: 14px; }
.xf-empty i { font-size: 32px; margin-bottom: 12px; display: block; color: #c7dcf8; }

/* Stat cards */
.xf-stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.xf-stat-card { background: #fff; border-radius: 14px; padding: 18px 16px; text-align: center; border: 1px solid #e4ecf7; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.xf-stat-card .num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #1566B7; line-height: 1; display: block; }
.xf-stat-card .lbl { font-size: 12px; color: #6b7d99; margin-top: 5px; line-height: 1.4; }

/* Text block */
.xf-text-block { background: #fff; border-radius: 18px; padding: 28px 32px; margin-bottom: 20px; border: 1px solid #e4ecf7; box-shadow: 0 4px 20px rgba(21,102,183,0.07); }
.xf-text-block p { font-size: 15px; line-height: 1.8; color: #374151; margin: 0 0 14px; }
.xf-text-block p:last-child { margin: 0; }

/* Video */
.xf-video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 4px; }
.xf-video-box { flex: 1 1 calc(50% - 16px); max-width: 560px; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.xf-video-box:nth-child(3) { flex: 1 1 100%; max-width: 600px; }
.xf-video-box iframe { width: 100%; height: 100%; border: none; }

/* Responsive */
@media (max-width: 991px) { .xf-sidebar { position: static; } .xf-nav { flex-direction: row; flex-wrap: wrap; } .xf-nav-btn { flex: 1 1 calc(50% - 4px); } .xf-sidebar-info { display: none; } .xf-action-btns { flex-direction: column; } .xf-action-btn { justify-content: center; } }
@media (max-width: 768px) { .xf-video-box, .xf-video-box:nth-child(3) { flex: 1 1 100%; max-width: 100%; } }
@media (max-width: 480px) { .xf-nav-btn { flex: 1 1 100%; } .xf-panel-header { flex-direction: column; gap: 12px; } }

/* Dark mode */
body.dark .xf-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }
body.dark .xf-section { background: #0a1525; }
body.dark .xf-sidebar { background: #0f1e30; border-color: rgba(255,255,255,0.07); }
body.dark .xf-nav-btn { color: #c8d8ec; }
body.dark .xf-nav-btn:hover { background: rgba(255,255,255,0.06); color: #90caf9; }
body.dark .xf-nav-btn.active { background: #1566B7; color: #fff; }
body.dark .xf-panel-header { background: #0f1e30; border-color: rgba(255,255,255,0.07); }
body.dark .xf-panel-header h2 { color: #c8d8ec; }
body.dark .xf-doc-item { background: #132033; border-color: rgba(255,255,255,0.07); color: #c8d8ec; }
body.dark .xf-doc-item:hover { background: #192d45; border-color: rgba(21,102,183,0.4); color: #90caf9; }
body.dark .xf-stat-card { background: #132033; border-color: rgba(255,255,255,0.07); }
body.dark .xf-stat-card .lbl { color: #94a3b8; }
body.dark .xf-text-block { background: #0f1e30; border-color: rgba(255,255,255,0.07); }
body.dark .xf-text-block p { color: #c8d8ec; }
body.dark .xf-nav-title { color: #4a6080; }
body.dark .xf-empty { background: #0f1e30; border-color: rgba(255,255,255,0.07); }

/* ══════════════════════════════════════════════════
   CONTACT BOTTOM SHEET
══════════════════════════════════════════════════ */
.xf-contact-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(10,20,40,0.55); backdrop-filter: blur(4px);
    z-index: 1200; opacity: 0; transition: opacity 0.3s;
}
.xf-contact-overlay.open { display: block; opacity: 1; }

.xf-contact-drawer {
    position: fixed; left: 0; right: 0; bottom: 0;
    width: 100%; max-height: 90vh; min-height: 65vh;
    background: #fff; z-index: 1300;
    display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(10,20,40,0.22);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
    border-radius: 24px 24px 0 0; overflow: hidden;
}
.xf-contact-drawer.open { transform: translateY(0); }

.xf-contact-handle {
    display: block; width: 44px; height: 5px;
    background: #cbd5e1; border-radius: 3px;
    margin: 14px auto 0; flex-shrink: 0; cursor: grab;
}

/* Wrapper: header + 2-col body */
.xf-contact-inner {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden;
}

/* Header */
.xf-contact-header {
    display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    padding: 16px 28px 14px;
    border-bottom: 1px solid #e4ecf7; flex-shrink: 0;
}
.xf-contact-header-text { display: flex; flex-direction: column; gap: 2px; }
.xf-contact-dept { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: #0d47a1; line-height: 1.3; }
.xf-contact-subtitle { font-size: 11px; color: #94a3b8; }
.xf-contact-close { width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e4ecf7; background: #f8faff; color: #64748b; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.2s, color 0.2s; }
.xf-contact-close:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

/* 2 ustunli body */
.xf-contact-body {
    flex: 1; min-height: 0;
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
}

/* ── CHAP: Boshliq panel ── */
.xf-chief-panel {
    border-right: 1px solid #e4ecf7;
    overflow-y: auto;
    padding: 22px 20px 28px;
    display: flex; flex-direction: column; gap: 14px;
    background: linear-gradient(180deg, #f6faff 0%, #fff 100%);
}
.xf-chief-panel::-webkit-scrollbar { width: 4px; }
.xf-chief-panel::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Boshliq karta */
.xf-chief-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; text-align: center;
}
.xf-chief-img-wrap { position: relative; }
.xf-chief-img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 14px; display: block;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(21,102,183,0.18);
}
.xf-chief-badge {
    position: absolute; bottom: -9px; left: 50%;
    transform: translateX(-50%);
    background: #1566B7; color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; padding: 3px 10px;
    border-radius: 20px; white-space: nowrap;
}
.xf-chief-rank { font-size: 10px; font-weight: 700; color: #1566B7; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 6px; }
.xf-chief-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: #0d2b5e; line-height: 1.3; }
.xf-chief-post { font-size: 11px; color: #5a7299; line-height: 1.5; }

/* Boshliq contact rows */
.xf-chief-rows { display: flex; flex-direction: column; gap: 8px; }
.xf-chief-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #e4ecf7;
    border-radius: 10px; padding: 10px 12px;
    transition: border-color 0.2s, background 0.2s;
}
.xf-chief-row:hover { border-color: #c7dcf8; background: #f0f6ff; }
.xf-chief-row-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.xf-icon-clock { background: #fff7e6; color: #f59e0b; }
.xf-icon-phone { background: #e8f5e9; color: #43a047; }
.xf-icon-email { background: #e8f0fb; color: #1566B7; }
.xf-chief-row-body { flex: 1; min-width: 0; }
.xf-chief-row-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 2px; }
.xf-chief-row-val { font-size: 12px; font-weight: 500; color: #1a2535; word-break: break-word; }
.xf-contact-link { color: #1566B7; text-decoration: none; }
.xf-contact-link:hover { text-decoration: underline; }

/* Bio */
.xf-chief-bio {
    background: #f0f6ff; border: 1px solid #dbeafe;
    border-left: 3px solid #1566B7;
    border-radius: 10px; padding: 12px 14px;
}
.xf-chief-bio-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #1566B7; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px; }
.xf-chief-bio-text { font-size: 14px; line-height: 1.7; color: #374151; white-space: pre-line; }

/* ── O'NG: Umumiy + Xodimlar ── */
.xf-right-panel {
    overflow-y: auto;
    padding: 22px 24px 28px;
    display: flex; flex-direction: column; gap: 20px;
}
.xf-right-panel::-webkit-scrollbar { width: 4px; }
.xf-right-panel::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Section sarlavhasi */
.xf-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; color: #1566B7;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding-bottom: 10px; border-bottom: 1px solid #e4ecf7;
    margin-bottom: 2px;
}
.xf-section-title i { font-size: 12px; }

/* Contact rows (o'ng tomonda ham) */
.xf-right-rows { display: flex; flex-direction: column; gap: 8px; }
.xf-right-row {
    display: flex; align-items: center; gap: 12px;
    background: #f8faff; border: 1px solid #e4ecf7;
    border-radius: 10px; padding: 12px 14px;
}
.xf-right-row-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.xf-right-row-body { flex: 1; min-width: 0; }
.xf-right-row-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 2px; }
.xf-right-row-val { font-size: 13px; font-weight: 500; color: #1a2535; word-break: break-word; }

/* Xodimlar grid */
.xf-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.xf-staff-card {
    width: 300px;
    background: #f8faff; border: 1px solid #e4ecf7;
    border-radius: 12px; padding: 14px 12px;
    display: flex; flex-direction: column;
    align-items: center; gap: 8px; text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.xf-staff-card:hover { border-color: #c7dcf8; box-shadow: 0 2px 12px rgba(21,102,183,0.1); }
.xf-staff-img {
    width: 280px;  object-fit: cover;
    border-radius: 10px; border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.xf-staff-name { font-size: 14px; font-weight: 600; color: #0d2b5e; line-height: 1.3; }
.xf-staff-post { font-size: 12px; color: #5a7299; line-height: 1.4; }
.xf-staff-contacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.xf-staff-contact-btn {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; color: #1566B7;
    background: #e8f0fb; border-radius: 6px;
    padding: 3px 8px; text-decoration: none;
    transition: background 0.2s;
}
.xf-staff-contact-btn:hover { background: #c7dcf8; }
.xf-staff-empty { text-align: center; padding: 24px; color: #94a3b8; font-size: 13px; }

/* ── DARK MODE ── */
body.dark .xf-contact-drawer { background: #0d1b2e; }
body.dark .xf-contact-header { border-color: rgba(255,255,255,0.08); background: #0d1b2e; }
body.dark .xf-contact-dept { color: #90caf9; }
body.dark .xf-contact-close { background: #1a2d42; border-color: rgba(255,255,255,0.08); color: #94a3b8; }
body.dark .xf-contact-close:hover { background: #3d1515; color: #f87171; }
body.dark .xf-contact-handle { background: #2a3f58; }
body.dark .xf-chief-panel { background: linear-gradient(180deg, #0a1728 0%, #0d1b2e 100%); border-color: rgba(255,255,255,0.07); }
body.dark .xf-chief-card {}
body.dark .xf-chief-name { color: #c8d8ec; }
body.dark .xf-chief-post { color: #6b88a8; }
body.dark .xf-chief-row { background: #132033; border-color: rgba(255,255,255,0.07); }
body.dark .xf-chief-row:hover { background: #1a2d42; }
body.dark .xf-chief-row-val { color: #c8d8ec; }
body.dark .xf-chief-bio { background: #0f1e30; border-color: rgba(255,255,255,0.07); }
body.dark .xf-chief-bio-text { color: #94a3b8; }
body.dark .xf-right-panel { background: #0d1b2e; }
body.dark .xf-section-title { color: #90caf9; border-color: rgba(255,255,255,0.07); }
body.dark .xf-right-row { background: #132033; border-color: rgba(255,255,255,0.07); }
body.dark .xf-right-row-val { color: #c8d8ec; }
body.dark .xf-staff-card { background: #132033; border-color: rgba(255,255,255,0.07); }
body.dark .xf-staff-card:hover { border-color: rgba(21,102,183,0.4); }
body.dark .xf-staff-name { color: #c8d8ec; }
body.dark .xf-staff-post { color: #6b88a8; }
body.dark .xf-staff-contact-btn { background: #1a2d42; color: #90caf9; }

/* ── MOBIL ── */
@media (max-width: 768px) {
    .xf-contact-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .xf-chief-panel { border-right: none; border-bottom: 1px solid #e4ecf7; padding: 16px; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .xf-chief-card { flex-direction: row; text-align: left; flex: 0 0 auto; }
    .xf-chief-img { width: 70px; height: 86px; }
    .xf-chief-rows { flex: 1; min-width: 200px; }
    .xf-chief-bio { width: 100%; }
    .xf-contact-header { padding: 14px 16px 12px; }
    .xf-right-panel { padding: 16px 16px 24px; }
}