.top-vuz{
    --ei-accent:#2f6bff;
    --ei-ink:#0f1729;
    --ei-muted:#6b7688;
    --ei-line:#e6eaf1;
    --ei-bg:#ffffff;
    --ei-soft:#f6f8fc;
    --ei-gold:#f5a524;
    box-sizing:border-box;
    width:100%;
    max-width:272px;
    padding:12px;
    font-family:inherit;
    color:var(--ei-ink);
    background:var(--ei-bg);
    border:1px solid var(--ei-line);
    border-radius:14px;
    margin-bottom: 24px;
}
.top-vuz *,
.top-vuz *::before,
.top-vuz *::after{box-sizing:border-box}

/* ── Шапка ── */
.top-vuz__head{margin-bottom:10px}
.top-vuz__title{
    margin:0;
    font-size:14px;
    line-height:1.25;
    font-weight:700;
    letter-spacing:-.01em;
}
.top-vuz__sub{
    margin:3px 0 0;
    font-size:11px;
    line-height:1.35;
    color:var(--ei-muted);
}
.top-vuz__all{
    display:inline-block;
    margin-top:6px;
    font-size:11.5px;
    font-weight:600;
    color:var(--ei-accent);
    text-decoration:none;
}
.top-vuz__all:hover{text-decoration:underline}

/* ── Список ── */
.top-vuz__list{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.top-vuz__item{
    position:relative;
    display:grid;
    grid-template-columns:20px minmax(0,1fr);
    align-items:start;
    gap:2px 8px;
    padding:8px;
    border:1px solid transparent;
    border-radius:10px;
    transition:background .16s ease, border-color .16s ease;
}
.top-vuz__item:hover,
.top-vuz__item:focus-within{
    background:var(--ei-soft);
    border-color:var(--ei-line);
}
.top-vuz__item:focus-within{outline:2px solid var(--ei-accent);outline-offset:2px}
.top-vuz__item--1{
    background:linear-gradient(90deg,rgba(245,165,36,.12),rgba(245,165,36,0) 78%);
}
.top-vuz__item--1:hover,
.top-vuz__item--1:focus-within{
    background:linear-gradient(90deg,rgba(245,165,36,.18),rgba(245,165,36,0) 88%);
}

/* ── Место ── */
.top-vuz__rank{
    display:flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    margin-top:3px;
    border-radius:50%;
    font-size:11px;
    font-weight:700;
    font-variant-numeric:tabular-nums;
    color:var(--ei-muted);
    background:var(--ei-soft);
}
.top-vuz__item--1 .top-vuz__rank{
    color:#fff;
    background:linear-gradient(135deg,#ffc14d,#e8871e);
    box-shadow:0 2px 6px rgba(232,135,30,.35);
}
.top-vuz__item--2 .top-vuz__rank{
    color:#4a5568;
    background:linear-gradient(135deg,#eef1f6,#cfd6e2);
}
.top-vuz__item--3 .top-vuz__rank{
    color:#8a4b23;
    background:linear-gradient(135deg,#f6d9bf,#e0ab7f);
}

/* ── Вуз (растянутая ссылка на всю строку) ── */
.top-vuz__link{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    color:inherit;
    text-decoration:none;
}
.top-vuz__link::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
}
.top-vuz__logo{
    flex:0 0 auto;
    width:26px;
    height:26px;
    padding:2px;
    border:1px solid var(--ei-line);
    border-radius:7px;
    background:#fff;
}
.top-vuz__logo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}
.top-vuz__name{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-width:0;
    font-size:12px;
    font-weight:600;
    line-height:1.26;
}
.top-vuz__item:hover .top-vuz__name{color:var(--ei-accent)}

/* ── Оценка (вторая строка, по границе названия) ── */
.top-vuz__score{
    grid-column:2;
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:4px;
    min-width:0;
}
.top-vuz__rating{
    font-size:11.5px;
    font-weight:700;
    font-variant-numeric:tabular-nums;
}
.top-vuz__stars{
    position:relative;
    display:inline-block;
    font-size:9px;
    line-height:1;
    letter-spacing:.5px;
    color:#dfe3ea;
}
.top-vuz__stars::before{content:"★★★★★"}
.top-vuz__stars::after{
    content:"★★★★★";
    position:absolute;
    inset:0 auto 0 0;
    width:calc(var(--r, 0) / 5 * 100%);
    overflow:hidden;
    white-space:nowrap;
    color:var(--ei-gold);
}
.top-vuz__reviews{
    margin-left:auto;
    font-size:10.5px;
    line-height:1.2;
    color:var(--ei-muted);
    white-space:nowrap;
}

/* ── Подвал ── */
.top-vuz__foot{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid var(--ei-line);
}
.top-vuz__cta{
    display:block;
    width:100%;
    padding:9px 10px;
    border-radius:9px;
    background:var(--ei-accent);
    color:#fff;
    font-size:12px;
    font-weight:600;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    transition:filter .16s ease;
}
.top-vuz__cta:hover{filter:brightness(.94);color: var(--white)}

/* ── Адаптив: уже 900px — на всю ширину ── */
@media (max-width:900px){
    .top-vuz{max-width:none;width:100%}
    .top-vuz__title{font-size:15px}
    .top-vuz__item{padding:10px 8px}
    .top-vuz__name{font-size:12.5px}
}

@media (prefers-reduced-motion:reduce){
    .top-vuz *{transition:none !important}
}