
.magsu-ref-wrap{
    padding:80px 20px;
    background:linear-gradient(180deg,#f8fafc 0%, #eef2f7 100%);
}
.magsu-ref-container{max-width:1280px;margin:0 auto}
.magsu-ref-head{text-align:center;max-width:760px;margin:0 auto 38px}
.magsu-ref-badge{
    display:inline-block;padding:8px 14px;border-radius:999px;
    background:#111827;color:#fff;font-size:12px;font-weight:700;letter-spacing:.14em;
}
.magsu-ref-head h2{
    margin:16px 0 10px;font-size:clamp(32px,4.5vw,52px);line-height:1.05;
    color:#111827;font-weight:800;
}
.magsu-ref-head p{
    margin:0;color:#475569;font-size:18px;line-height:1.8;
}
.magsu-ref-grid{
    display:grid;
    grid-template-columns:repeat(var(--magsu-cols), minmax(0,1fr));
    gap:22px;
}
.magsu-ref-card{
    position:relative;
    min-height:220px;
    background:rgba(255,255,255,.9);
    border:1px solid rgba(15,23,42,.08);
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.magsu-ref-card:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 50px rgba(15,23,42,.14);
    border-color:rgba(245,158,11,.35);
}
.magsu-ref-logo{
    width:100%;
    height:100%;
    min-height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
    background:linear-gradient(145deg,#ffffff,#f8fafc);
}
.magsu-ref-logo img{
    max-width:70%;
    max-height:90px;
    width:auto;height:auto;
    object-fit:contain;
    filter:grayscale(100%);
    opacity:.9;
    transition:transform .35s ease, filter .35s ease, opacity .35s ease;
}
.magsu-ref-card:hover .magsu-ref-logo img{
    filter:grayscale(0%);
    opacity:1;
    transform:scale(1.05);
}
.magsu-ref-placeholder{
    width:84px;height:84px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    background:#f59e0b;color:#111827;font-size:34px;font-weight:800;
}
.magsu-ref-overlay{
    position:absolute;inset:0;
    background:linear-gradient(to top, rgba(17,24,39,.95), rgba(17,24,39,.35));
    color:#fff;
    padding:26px 22px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    opacity:0;
    transform:translateY(12px);
    transition:opacity .3s ease, transform .3s ease;
}
.magsu-ref-card:hover .magsu-ref-overlay{
    opacity:1;
    transform:translateY(0);
}
.magsu-ref-overlay h3{
    margin:0 0 8px;
    font-size:22px;
    line-height:1.2;
    font-weight:800;
}
.magsu-ref-overlay p{
    margin:0 0 12px;
    color:rgba(255,255,255,.82);
    line-height:1.7;
    font-size:14px;
}
.magsu-ref-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:700;
    color:#fbbf24;
}
.magsu-ref-empty{
    grid-column:1/-1;
    background:#fff;
    border-radius:20px;
    padding:28px;
    text-align:center;
    color:#64748b;
    border:1px dashed #cbd5e1;
}
@media (max-width: 1100px){
    .magsu-ref-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width: 768px){
    .magsu-ref-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .magsu-ref-overlay{opacity:1;transform:none;background:linear-gradient(to top, rgba(17,24,39,.92), rgba(17,24,39,.18))}
}
@media (max-width: 520px){
    .magsu-ref-grid{grid-template-columns:1fr}
}
