/* ================================================================
   MAGISTR.CSS — Jizzax Politexnika Instituti
   Magistratura qabul sahifalari
   bakalavr.css bilan vizual o'xshash, lekin to'liq mustaqil CSS
   ================================================================ */

:root {
    --mag-primary:   #1566B7;
    --mag-primary-d: #0d47a1;
    --mag-gold:      #FFD54F;
    --mag-gold-d:    #F9A825;
    --mag-text:      #2c3e50;
    --mag-muted:     #5f738c;
    --mag-light-bg:  #f8faff;
    --mag-border:    #e5efff;
    --mag-dark-bg:   #0e1a2b;
}

/* ══════════════════════════════════════════
   FULL HEADER (magistr-index)
══════════════════════════════════════════ */
.mag-header {
    background: linear-gradient(135deg, var(--mag-primary-d) 0%, var(--mag-primary) 100%);
    padding: 56px 0 52px;
    position: relative;
    overflow: hidden;
}
.mag-header-orb {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.mag-orb-1 { width: 420px; height: 420px; left: -130px; bottom: -130px; background: rgba(255,255,255,0.05); }
.mag-orb-2 { width: 520px; height: 520px; right: -160px; top: -160px;  background: rgba(255,255,255,0.04); }
.mag-orb-3 { width: 160px; height: 160px; right: 22%;   top: 22%;     background: rgba(255,255,255,0.03); }

.mag-header-diagonal {
    position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    background: rgba(255,255,255,0.025); pointer-events: none;
}
.mag-header-inner { position: relative; z-index: 2; }

/* Breadcrumb */
.mag-header .breadcrumb,
.mag-mini-header .breadcrumb { background: none; padding: 0; margin-bottom: 20px; }
.mag-header .breadcrumb-item,
.mag-header .breadcrumb-item a,
.mag-mini-header .breadcrumb-item,
.mag-mini-header .breadcrumb-item a {
    color: rgba(255,255,255,0.6); font-size: 13px;
    text-decoration: none; font-family: sans-serif;
}
.mag-header .breadcrumb-item a:hover,
.mag-mini-header .breadcrumb-item a:hover { color: var(--mag-gold); }
.mag-header .breadcrumb-item.active,
.mag-mini-header .breadcrumb-item.active { color: #fff; }
.mag-header .breadcrumb-item + .breadcrumb-item::before,
.mag-mini-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Tag */
.mag-header-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--mag-gold); background: rgba(255,213,79,0.12);
    border: 1px solid rgba(255,213,79,0.25);
    padding: 5px 16px; border-radius: 20px; margin-bottom: 16px;
}

/* H1 */
.mag-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.mag-header h1 em { font-style: italic; color: var(--mag-gold); }
.mag-header-sub {
    font-family: sans-serif; font-size: 15px; font-weight: 300;
    color: rgba(255,255,255,0.65); max-width: 600px;
    line-height: 1.7; margin-bottom: 28px;
}

body.dark .mag-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ══════════════════════════════════════════
   MINI HEADER (ichki sahifalar)
══════════════════════════════════════════ */
.mag-mini-header {
    background: linear-gradient(135deg, var(--mag-primary-d) 0%, var(--mag-primary) 100%);
    padding: 44px 0 36px; position: relative; overflow: hidden;
}
.mag-mini-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 40px); font-weight: 900;
    color: #fff; line-height: 1.2; margin-bottom: 8px;
}
.mag-mini-title em { font-style: italic; color: var(--mag-gold); }
.mag-mini-sub {
    font-family: sans-serif; font-size: 14px; font-weight: 300;
    color: rgba(255,255,255,0.6); max-width: 500px; line-height: 1.6;
}
body.dark .mag-mini-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ══════════════════════════════════════════
   SECTION
══════════════════════════════════════════ */
.mag-section { padding: 60px 0 88px; }
body.dark .mag-section { background: #0a1525; }

/* ══════════════════════════════════════════
   NAV GRID (magistr-index)
══════════════════════════════════════════ */
.mag-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.mag-nav-card {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: #fff; border: 1px solid var(--mag-border);
    border-radius: 16px; text-decoration: none; color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.25s;
    opacity: 0; transform: translateY(18px);
}
.mag-nav-card.mag-visible { opacity: 1; transform: translateY(0); }
.mag-nav-card:hover {
    box-shadow: 0 8px 28px rgba(21,102,183,0.12);
    border-color: rgba(21,102,183,0.3);
    transform: translateY(-3px) !important;
}
body.dark .mag-nav-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }
.mag-nav-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(21,102,183,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--mag-primary); font-size: 20px; flex-shrink: 0;
    transition: background 0.2s;
}
.mag-nav-card:hover .mag-nav-icon { background: rgba(21,102,183,0.16); }
.mag-nav-name {
    font-family: sans-serif; font-size: 14px; font-weight: 700;
    color: var(--mag-text); flex: 1;
}
body.dark .mag-nav-name { color: #e2e8f0; }
.mag-nav-arrow {
    color: var(--mag-border); font-size: 13px; flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.mag-nav-card:hover .mag-nav-arrow { color: var(--mag-primary); transform: translateX(4px); }
.mag-nav-card:nth-child(1) { transition-delay: 0.05s; }
.mag-nav-card:nth-child(2) { transition-delay: 0.10s; }
.mag-nav-card:nth-child(3) { transition-delay: 0.15s; }
.mag-nav-card:nth-child(4) { transition-delay: 0.20s; }
.mag-nav-card:nth-child(5) { transition-delay: 0.25s; }
.mag-nav-card:nth-child(6) { transition-delay: 0.30s; }

/* ══════════════════════════════════════════
   INNER LAYOUT (ichki sahifalar)
══════════════════════════════════════════ */
.mag-inner-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px; align-items: start;
}

/* Sidebar */
.mag-sidebar { position: sticky; top: 90px; }
.mag-sidebar-title {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--mag-muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.mag-sidenav { display: flex; flex-direction: column; gap: 3px; }
.mag-sidelink {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 11px;
    font-family: sans-serif; font-size: 13px; font-weight: 500;
    color: var(--mag-muted); text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mag-sidelink i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.mag-sidelink:hover { background: var(--mag-light-bg); color: var(--mag-primary); border-color: var(--mag-border); }
.mag-sidelink.active {
    background: rgba(21,102,183,0.08); color: var(--mag-primary);
    border-color: rgba(21,102,183,0.2); font-weight: 600;
}
body.dark .mag-sidelink { color: #94a3b8; }
body.dark .mag-sidelink:hover  { background: rgba(255,255,255,0.05); color: #e2e8f0; }
body.dark .mag-sidelink.active { background: rgba(21,102,183,0.2); color: #90caf9; }

/* Content card */
.mag-content-card {
    background: #fff; border: 1px solid var(--mag-border);
    border-radius: 20px; padding: 32px 32px 28px;
}
body.dark .mag-content-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }
.mag-content-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.8px; text-transform: uppercase;
    color: var(--mag-primary); background: rgba(21,102,183,0.08);
    border: 1px solid rgba(21,102,183,0.15);
    padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.mag-content-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 700; color: var(--mag-dark-bg);
    line-height: 1.4; margin-bottom: 24px;
}
body.dark .mag-content-title { color: #e2e8f0; }

/* ══════════════════════════════════════════
   ALERT
══════════════════════════════════════════ */
.mag-alert {
    display: flex; align-items: flex-start; gap: 12px;
    background: rgba(21,102,183,0.05);
    border: 1px solid rgba(21,102,183,0.15);
    border-left: 4px solid var(--mag-primary);
    border-radius: 12px; padding: 14px 16px; margin-bottom: 24px;
}
.mag-alert i { color: var(--mag-primary); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.mag-alert p { font-family: sans-serif; font-size: 14px; color: var(--mag-text); margin: 0; line-height: 1.6; font-weight: 500; }
body.dark .mag-alert { background: rgba(21,102,183,0.1); border-color: rgba(21,102,183,0.3); }
body.dark .mag-alert p { color: #cbd5e1; }

/* ══════════════════════════════════════════
   INFO BLOCKS (eslatma)
══════════════════════════════════════════ */
.mag-info-blocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.mag-info-block {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 16px 18px; border-radius: 14px; border: 1px solid;
}
.mag-ib-blue { background: rgba(21,102,183,0.04); border-color: rgba(21,102,183,0.15); }
.mag-ib-gold { background: rgba(255,213,79,0.06); border-color: rgba(255,213,79,0.3); }
body.dark .mag-ib-blue { background: rgba(21,102,183,0.1);  border-color: rgba(21,102,183,0.25); }
body.dark .mag-ib-gold { background: rgba(255,213,79,0.05); border-color: rgba(255,213,79,0.2); }
.mag-ib-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mag-ib-blue .mag-ib-icon { background: rgba(21,102,183,0.1); color: var(--mag-primary); }
.mag-ib-gold .mag-ib-icon { background: rgba(255,213,79,0.2); color: var(--mag-gold-d); }
.mag-ib-title {
    font-family: sans-serif; font-size: 13px; font-weight: 700;
    color: var(--mag-text); margin-bottom: 4px;
}
.mag-ib-text {
    font-family: sans-serif; font-size: 13px; color: var(--mag-muted);
    line-height: 1.6; margin: 0;
}
body.dark .mag-ib-title { color: #e2e8f0; }

/* ══════════════════════════════════════════
   RULES LIST (bosqichlar)
══════════════════════════════════════════ */
.mag-rules-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mag-rule-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px; border-radius: 12px;
    background: var(--mag-light-bg); border: 1px solid var(--mag-border);
}
body.dark .mag-rule-item { background: #111e33; border-color: rgba(255,255,255,0.07); }
.mag-rule-icon {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.mag-rule-ok { background: rgba(21,102,183,0.1); color: var(--mag-primary); }
.mag-rule-text {
    font-family: sans-serif; font-size: 13px; color: var(--mag-text);
    line-height: 1.6; margin: 0;
}
body.dark .mag-rule-text { color: #cbd5e1; }

/* ══════════════════════════════════════════
   LAW LIST (nizomlar)
══════════════════════════════════════════ */
.mag-law-list { display: flex; flex-direction: column; gap: 10px; }
.mag-law-item {
    padding: 16px 18px;
    background: var(--mag-light-bg); border: 1px solid var(--mag-border);
    border-radius: 14px; transition: box-shadow 0.2s, border-color 0.2s;
}
.mag-law-item:hover {
    box-shadow: 0 4px 16px rgba(21,102,183,0.09);
    border-color: rgba(21,102,183,0.22);
}
body.dark .mag-law-item { background: #111e33; border-color: rgba(255,255,255,0.07); }
.mag-law-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mag-law-code {
    font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 700;
    color: var(--mag-primary); background: rgba(21,102,183,0.08);
    border: 1px solid rgba(21,102,183,0.18);
    padding: 2px 10px; border-radius: 6px;
}
.mag-law-date { font-family: sans-serif; font-size: 11px; color: var(--mag-muted); }
.mag-law-title {
    font-family: sans-serif; font-size: 13px; color: var(--mag-text);
    line-height: 1.6; margin: 0 0 10px;
}
body.dark .mag-law-title { color: #cbd5e1; }
.mag-law-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mag-law-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: sans-serif; font-size: 12px; font-weight: 600;
    color: var(--mag-primary); text-decoration: none;
    background: rgba(21,102,183,0.07); border: 1px solid rgba(21,102,183,0.18);
    padding: 5px 14px; border-radius: 8px; transition: background 0.2s;
}
.mag-law-link:hover { background: rgba(21,102,183,0.15); color: var(--mag-primary); }

/* ══════════════════════════════════════════
   PDF VIEWER (kvota)
══════════════════════════════════════════ */
.mag-pdf-wrap {
    border: 1px solid var(--mag-border); border-radius: 14px;
    overflow: hidden; margin-bottom: 24px;
}
body.dark .mag-pdf-wrap { border-color: rgba(255,255,255,0.08); }
.mag-pdf-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: var(--mag-light-bg); border-bottom: 1px solid var(--mag-border);
    font-family: sans-serif; font-size: 13px; font-weight: 600; color: var(--mag-text);
}
body.dark .mag-pdf-header { background: #111e33; border-color: rgba(255,255,255,0.07); color: #e2e8f0; }
.mag-pdf-header i { color: #e53935; font-size: 16px; }
.mag-pdf-download {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-family: sans-serif; font-size: 12px; font-weight: 600;
    color: var(--mag-primary); text-decoration: none;
    background: rgba(21,102,183,0.08); border: 1px solid rgba(21,102,183,0.15);
    padding: 5px 12px; border-radius: 8px; transition: background 0.2s;
}
.mag-pdf-download:hover { background: rgba(21,102,183,0.16); color: var(--mag-primary); }
.mag-pdf-iframe { width: 100%; height: 800px; display: block; border: none; }

/* ══════════════════════════════════════════
   TABLE (kvota, natijalari)
══════════════════════════════════════════ */
.mag-table-wrap {
    border: 1px solid var(--mag-border); border-radius: 14px;
    overflow: hidden; overflow-x: auto;
}
body.dark .mag-table-wrap { border-color: rgba(255,255,255,0.08); }
.mag-table {
    width: 100%; border-collapse: collapse;
    font-family: sans-serif; font-size: 13px;
}
.mag-table thead tr { background: var(--mag-primary); color: #fff; }
.mag-table th { padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mag-table td {
    padding: 10px 14px; color: var(--mag-text);
    border-bottom: 1px solid var(--mag-border); vertical-align: middle;
}
body.dark .mag-table td { color: #cbd5e1; border-color: rgba(255,255,255,0.06); }
.mag-table tbody tr:last-child td { border-bottom: none; }
.mag-table tbody tr:hover td { background: var(--mag-light-bg); }
body.dark .mag-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.mag-table tfoot tr { background: rgba(21,102,183,0.06); font-weight: 700; }
.mag-table tfoot td { border-bottom: none; }
.mag-grant-num {
    font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 900;
    color: var(--mag-primary);
}
body.dark .mag-grant-num { color: #90caf9; }

/* ══════════════════════════════════════════
   ACCORDION (komissiya)
══════════════════════════════════════════ */
.mag-accordion { display: flex; flex-direction: column; gap: 8px; }
.mag-acc-item { border: 1px solid var(--mag-border); border-radius: 16px; overflow: hidden; }
body.dark .mag-acc-item { border-color: rgba(255,255,255,0.08); }
.mag-acc-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: #fff; border: none; cursor: pointer;
    text-align: left; transition: background 0.2s;
}
body.dark .mag-acc-btn { background: #1a2740; }
.mag-acc-btn:hover { background: var(--mag-light-bg); }
body.dark .mag-acc-btn:hover { background: rgba(255,255,255,0.04); }
.mag-acc-btn.mag-acc-active { background: rgba(21,102,183,0.06); }
body.dark .mag-acc-btn.mag-acc-active { background: rgba(21,102,183,0.15); }
.mag-acc-btn-left { display: flex; align-items: center; gap: 14px; }
.mag-acc-num {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: rgba(21,102,183,0.1); color: var(--mag-primary);
    font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.mag-acc-btn.mag-acc-active .mag-acc-num { background: var(--mag-primary); color: #fff; }
.mag-acc-label {
    font-family: sans-serif; font-size: 14px; font-weight: 600; color: var(--mag-text);
}
body.dark .mag-acc-label { color: #e2e8f0; }
.mag-acc-arrow {
    color: var(--mag-muted); font-size: 12px; flex-shrink: 0; transition: transform 0.3s;
}
.mag-acc-btn.mag-acc-active .mag-acc-arrow { transform: rotate(180deg); color: var(--mag-primary); }
.mag-acc-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.2s;
    padding: 0 20px; background: #fff; border-top: 0px solid var(--mag-border);
}
body.dark .mag-acc-body { background: #1a2740; border-color: rgba(255,255,255,0.07); }
.mag-acc-body.mag-acc-open {
    max-height: 2000px; padding: 16px 20px 20px; border-top-width: 1px;
}
.mag-kom-subtitle {
    font-family: sans-serif; font-size: 13px; font-weight: 600;
    color: var(--mag-primary); margin-bottom: 14px; line-height: 1.5;
}
.mag-kom-table-wrap {
    overflow-x: auto; border-radius: 12px; border: 1px solid var(--mag-border);
}
body.dark .mag-kom-table-wrap { border-color: rgba(255,255,255,0.07); }
.mag-kom-table {
    width: 100%; border-collapse: collapse; font-family: sans-serif; font-size: 13px;
}
.mag-kom-table thead tr { background: var(--mag-primary); color: #fff; }
.mag-kom-table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; }
.mag-kom-table td {
    padding: 10px 14px; color: var(--mag-text);
    border-bottom: 1px solid var(--mag-border);
    vertical-align: middle; line-height: 1.5;
}
body.dark .mag-kom-table td { color: #cbd5e1; border-color: rgba(255,255,255,0.06); }
.mag-kom-table tbody tr:last-child td { border-bottom: none; }
.mag-kom-table tbody tr:hover td { background: var(--mag-light-bg); }
body.dark .mag-kom-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.mag-kom-role {
    display: inline-block; padding: 2px 10px; border-radius: 6px;
    font-family: sans-serif; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.mag-role-rais   { background: rgba(21,102,183,0.12); color: var(--mag-primary); }
.mag-role-muovin { background: rgba(13,71,161,0.1);   color: var(--mag-primary-d); }
.mag-role-kotib  { background: rgba(255,213,79,0.2);  color: var(--mag-gold-d); }
.mag-role-azo    { background: rgba(95,115,140,0.1);  color: var(--mag-muted); }

/* ══════════════════════════════════════════
   CONTACT GRID (bog'lanish)
══════════════════════════════════════════ */
.mag-contact-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin-bottom: 28px;
}
.mag-contact-card {
    background: var(--mag-light-bg); border: 1px solid var(--mag-border);
    border-radius: 16px; padding: 20px 18px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.mag-contact-card:hover {
    box-shadow: 0 6px 20px rgba(21,102,183,0.1); border-color: rgba(21,102,183,0.25);
}
body.dark .mag-contact-card { background: #111e33; border-color: rgba(255,255,255,0.07); }
.mag-contact-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(21,102,183,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--mag-primary); font-size: 18px; margin-bottom: 12px;
}
.mag-contact-icon-gold { background: rgba(255,213,79,0.15); color: var(--mag-gold-d); }
.mag-contact-label {
    font-family: sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--mag-muted); margin-bottom: 6px;
}
.mag-contact-val {
    font-family: sans-serif; font-size: 13px; font-weight: 600;
    color: var(--mag-text); display: block; margin-bottom: 3px; line-height: 1.5;
}
.mag-contact-sub { font-family: sans-serif; font-size: 12px; color: var(--mag-muted); margin-top: 4px; }
.mag-contact-link { text-decoration: none; transition: color 0.2s; }
.mag-contact-link:hover { color: var(--mag-primary); }
.mag-contact-gold { color: var(--mag-gold-d) !important; }
body.dark .mag-contact-val { color: #e2e8f0; }

/* Mas'ul xodim kartasi */
.mag-responsible {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: 16px;
    background: rgba(21,102,183,0.04); border: 1px solid rgba(21,102,183,0.12);
    margin-bottom: 20px;
}
body.dark .mag-responsible { background: rgba(21,102,183,0.1); border-color: rgba(21,102,183,0.25); }
.mag-responsible-avatar {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--mag-primary), var(--mag-primary-d));
    color: #fff; font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.mag-responsible-name {
    font-family: sans-serif; font-size: 15px; font-weight: 700;
    color: var(--mag-text); margin-bottom: 3px;
}
body.dark .mag-responsible-name { color: #e2e8f0; }
.mag-responsible-pos {
    font-family: sans-serif; font-size: 12px; color: var(--mag-muted); margin-bottom: 8px;
}
.mag-responsible-phones { display: flex; gap: 8px; flex-wrap: wrap; }
.mag-phone-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: sans-serif; font-size: 12px; font-weight: 600;
    color: var(--mag-primary); text-decoration: none;
    background: rgba(21,102,183,0.07); border: 1px solid rgba(21,102,183,0.15);
    padding: 4px 14px; border-radius: 7px; transition: background 0.2s;
}
.mag-phone-link:hover { background: rgba(21,102,183,0.14); color: var(--mag-primary); }
body.dark .mag-phone-link { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: #90caf9; }

/* Map */
.mag-map-wrap { border: 1px solid var(--mag-border); border-radius: 16px; overflow: hidden; }
body.dark .mag-map-wrap { border-color: rgba(255,255,255,0.08); }
.mag-map-label {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--mag-light-bg); border-bottom: 1px solid var(--mag-border);
    font-family: sans-serif; font-size: 13px; font-weight: 600; color: var(--mag-text);
}
body.dark .mag-map-label { background: #111e33; border-color: rgba(255,255,255,0.07); color: #e2e8f0; }
.mag-map-label i { color: var(--mag-primary); }
.mag-map-iframe { width: 100%; height: 400px; display: block; border: none; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 992px) {
    .mag-inner-layout { grid-template-columns: 1fr; }
    .mag-sidebar { position: static; }
    .mag-sidenav { flex-direction: row; flex-wrap: wrap; }
    .mag-sidelink { flex: 1; min-width: 140px; }
    .mag-nav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mag-section { padding: 40px 0 64px; }
    .mag-contact-grid { grid-template-columns: 1fr; }
    .mag-content-card { padding: 22px 18px; }
    .mag-pdf-iframe { height: 380px; }
}
@media (max-width: 480px) {
    .mag-header h1, .mag-mini-title { font-size: 28px; }
}