html {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

/* subnav */
.subnav{position:sticky;top:64px;z-index:40;margin-top:22px;background:rgba(244,246,251,.92);
    backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.subnav ul{display:flex;gap:6px;list-style:none;padding:10px 0;margin:0;overflow-x:auto}
.subnav a{display:block;white-space:nowrap;font-size:14px;font-weight:600;color:var(--ink-2);
    padding:8px 14px;border-radius:10px;transition:.15s ease}
.subnav a:hover{background:#e9edf7;color:var(--brand)}
.subnav a.active{
    /*background:var(--accent-dark);*/
    background: #21355c;
    color:#fff
}

/* about */
.desc{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.desc div{border:1px solid var(--line);border-radius:14px;padding:18px;background:#fcfdff}
.desc h3{font-size:15px;font-weight:700;margin-bottom:6px}
.desc p{font-size:14.5px;color:var(--ink-2)}
.desc_text p {
    margin-bottom: 12px;
}
/* directions */
.toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.search{flex:1 1 260px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);
    border-radius:12px;padding:10px 14px;background:#fcfdff}
.search:focus-within{border-color:#9db0e6;box-shadow:0 0 0 3px rgba(30,58,138,.10)}
.search input{border:0;background:none;outline:none;font:inherit;font-size:15px;width:100%;color:var(--ink)}
.search svg{color:var(--ink-3);flex:none}
.count{font-size:13.5px;color:var(--ink-3);white-space:nowrap}
.tags{
    /*display:flex;
    flex-wrap:wrap;*/

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:9px;
    list-style:none;
    padding:0;
    margin:0
}
.tags li a, .tags li span{cursor:pointer;display:block;font-size:14px;color:var(--ink-2);background:#f2f5fc;border:1px solid #e6ebf7;
    border-radius:999px;padding:7px 14px;transition:.15s ease}
.tags li a:hover, .tags li span:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
.tags li.hide{display:none}
.empty{font-size:14.5px;color:var(--ink-3);display:none}

/* gallery */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.shot{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;
    background:#eef2fa;cursor:pointer;aspect-ratio:4/3;display:grid;place-items:center}
.shot--wide{grid-column:span 2;grid-row:span 2;aspect-ratio:auto}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot__ph{width:100%;height:100%;display:grid;place-items:center;color:#8798b8;
    background:
            repeating-linear-gradient(45deg,rgba(255,255,255,.5) 0 12px,transparent 12px 24px),
            linear-gradient(160deg,#e7edfa,#d8e2f4)}
.shot__ph svg{opacity:.75}
.shot figcaption{position:absolute;inset:auto 0 0 0;padding:22px 12px 10px;color:#fff;font-size:12.5px;
    font-weight:600;line-height:1.35;
    background:linear-gradient(to top,rgba(9,15,32,.82),rgba(9,15,32,0))}
.shot::after{content:"";position:absolute;inset:0;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(15,23,42,.04)}
.shot:hover{transform:translateY(-2px);transition:.18s ease;box-shadow:0 10px 24px -12px rgba(15,23,42,.4)}
.gal-note{font-size:13px;color:var(--ink-3);margin-top:12px}

/* lightbox */
.lb{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:24px;
    background:rgba(9,15,32,.82);backdrop-filter:blur(4px)}
.lb.on{display:grid}
.lb__box{max-width:900px;width:100%;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.6)}
.lb__media{aspect-ratio:16/9;background:linear-gradient(160deg,#e7edfa,#cfdbf1);display:grid;place-items:center;color:#8798b8}
.lb__media img{width:100%;height:100%;object-fit:cover}
.lb__cap{padding:14px 18px;font-size:14.5px;font-weight:600}
.lb__x{position:absolute;top:18px;right:20px;width:40px;height:40px;border-radius:50%;border:0;
    background:rgba(255,255,255,.15);color:#fff;cursor:pointer;display:grid;place-items:center}
.lb__x:hover{background:rgba(255,255,255,.3)}
.lb__nav{
    position:fixed; top:50%; transform:translateY(-50%);
    width:52px; height:52px; border:0; border-radius:50%; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    color:#fff; background:rgba(255, 255, 255, .15);
    transition:background .15s, opacity .15s; z-index:2;
}
.lb__nav:hover{
    background:rgba(255, 255, 255, .3);
}
.lb__nav:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.lb__nav--prev{
    left: 16px;
}
.lb__nav--next{
    right:16px;
}

.lb__count{
    position:fixed;
    /*left:0;
    right:0;*/
    right: 26px;
    bottom:14px; text-align:center;
    color:#fff; opacity:.8; font:14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
    pointer-events:none; z-index:2;
}

/* Одно фото — навигация не нужна */
.lb--single .lb__nav,
.lb--single .lb__count{ display:none; }

.lb__media img{ user-select:none; -webkit-user-drag:none; }


/* map */
.mapwrap{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
.mapbox{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#eef2fa;min-height:360px}
.mapbox iframe{display:block;width:100%;height:360px;border:0}
.addr{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.addr li{display:flex;gap:11px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fcfdff}
.addr .pin{width:30px;height:30px;flex:none;border-radius:9px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.addr b{display:block;font-size:14px;font-weight:700}
.addr span{font-size:13px;color:var(--ink-2)}
.addr .todo{color:var(--accent);font-weight:600}

/* press */
.press{
    --ok:#0f7b52;
    --ok-soft:#e8f6f0;

    list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:2px
}
.press li{border-bottom:1px solid var(--line)}
.press li:last-child{border-bottom:0}
.press a{
    display:flex;
    gap:16px;
    padding:15px 4px;
    /*align-items:flex-start;*/
    align-items:center;
    transition:.15s ease;
    color: #000;
}
.press a:hover{background:#f8faff;padding-left:12px;padding-right:12px;border-radius:12px}
.press time{
    flex:none;width:84px;font-size:12.5px;font-weight:700;
    /*color:var(--ink-3);*/
    text-transform:uppercase;letter-spacing:.04em;padding-top:2px;text-align: center;
    color: #2f4bdb;
}
.press b{display:block;font-size:15px;font-weight:700;line-height:1.4}
.press p{font-size:13.5px;color:var(--ink-2);margin-top:3px}
.press a:hover b{color:var(--brand)}
.press .badge{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;
    letter-spacing:.05em;color:var(--ok);background:var(--ok-soft);padding:2px 7px;border-radius:6px;margin-left:8px;vertical-align:2px}
.pressList__year {
    font-size: .68rem;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

/* open days */
.days{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:12px}
.days li{display:flex;gap:16px;align-items:center;border:1px solid var(--line);border-radius:14px;
    padding:14px 16px;background:#fcfdff;transition:.16s ease}
.days li:hover{border-color:#c7d0e4;box-shadow:0 8px 20px -14px rgba(15,23,42,.5)}
.date{flex:none;width:62px;text-align:center;border-radius:11px;background:var(--brand-soft);
    color:var(--brand);padding:8px 0 7px}
.date b{display:block;font-size:22px;line-height:1;font-weight:800;letter-spacing:-.03em}
.date span{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-top:3px}
.days h3{font-size:15px;font-weight:700}
.days p{font-size:13.5px;color:var(--ink-2);margin-top:2px}
.days .meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px;font-size:12.5px;color:var(--ink-3)}
.days .meta i{font-style:normal}
.days .btn{margin-left:auto;flex:none}

/* timeline */
.tl{list-style:none;padding:0;margin:0;position:relative}
.tl::before{content:"";position:absolute;left:11px;top:8px;bottom:16px;width:2px;
    background:linear-gradient(180deg,var(--brand),#cbd5e1)}
.tl li{position:relative;padding:0 0 20px 34px}
.tl li:last-child{padding-bottom:0}
.tl li::before{content:"";position:absolute;left:0;top:6px;width:20px;height:20px;border-radius:50%;
    background:#fff;border:3px solid var(--brand)}
.tl li:last-child::before{background:var(--brand)}
.tl b{display:block;font-size:15px;font-weight:800;color:var(--brand)}
.tl span{color:var(--ink-2);font-size:15px}

/* contacts */
.contacts{display:grid;grid-template-columns:1fr 1fr;gap:14px;list-style:none;padding:0;margin:0}
.contacts li{display:flex;gap:13px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fcfdff}
.contacts .ico{width:38px;height:38px;flex:none;border-radius:11px;display:grid;place-items:center;
    background:var(--brand-soft);color:var(--brand)}
.contacts dt{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-3);font-weight:700}
.contacts dd{margin:3px 0 0;font-size:15px;word-break:break-word}
.contacts dd a:hover{color:var(--brand);text-decoration:underline}

/* reviews */
.rsum{display:flex;flex-wrap:wrap;gap:22px;align-items:center;border:1px solid var(--line);
    border-radius:14px;padding:18px 20px;background:linear-gradient(180deg,#fff,#f8faff);margin-bottom:18px}
.rsum .big{font-size:40px;font-weight:800;letter-spacing:-.04em;color:var(--brand);line-height:1}
.rsum .bigs{display:flex;gap:3px;color:#b8873b;margin-top:6px}
.rsum .meta{font-size:13px;color:var(--ink-3)}
.rsum__bar{flex:none;display:flex;flex-direction:column;gap:5px;min-width:180px}
.bar{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink-3)}
.bar i{font-style:normal;width:8px;text-align:right}
.bar u{display:block;height:6px;border-radius:4px;background:#e7ecf7;text-decoration:none;flex:1;overflow:hidden}
.bar u s{display:block;height:100%;background:#b8873b;text-decoration:none}

.revs{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.rev{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:#fcfdff}
.rev__top{display:flex;gap:12px;align-items:center;margin-bottom:9px}
.ava{width:38px;height:38px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;
    font-size:14px;color:#fff;background:linear-gradient(140deg,#3b60c4,#1e3a8a)}
.rev__who b{display:block;font-size:14.5px;font-weight:700}
.rev__who span{font-size:12.5px;color:var(--ink-3)}
.rev__stars{margin-left:auto;display:flex;gap:2px;color:#b8873b}
.rev h4{font-size:14.5px;font-weight:700;margin-bottom:5px}
.rev p{
    font-size:14.5px;
    color:var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rev__foot{margin-top:10px;font-size:13px;color:var(--ink-3);display:flex;gap:14px}

.reviewCard__text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--rv-body);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reviewCard__text.is-open {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.reviewCard__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #3b5bfd;
    cursor: pointer;
}
.reviewCard__more[hidden] { display: none; }
.reviewCard__more span { transition: transform .18s ease; }
.reviewCard__more:hover span { transform: translateX(3px); }
.reviewCard__more[aria-expanded="true"] span { transform: none; }



#map #YMapsID {
    height: 300px;
    width: 100%;
}
#otzyvy .total {
    display:flex;
    justify-content:center;
    margin-top:18px;
}

.stars {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
    background: linear-gradient(90deg, #b8873b calc(var(--v) / 5 * 100%), #dde2ea 0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.score {
    display: flex;
    align-items: center;
    gap: 8px;
}
.na {
    font-size: 12.5px;
    color: #9aa3b2;
}
.uni-title{
    --uni-accent:#1f6feb;
    --uni-accent-2:#0ea5a4;
    --uni-ink:#0f172a;
    --uni-muted:#6b7688;
    --uni-line:rgba(15,23,42,.09);

    position:relative;
    display:grid;
    gap:0;
    padding:8px 26px 8px 30px;
    border:1px solid var(--uni-line);
    border-radius:18px;
    background:
            radial-gradient(120% 140% at 100% 0%, rgba(31,111,235,.09), transparent 62%),
            linear-gradient(180deg,#fff,#f7f9fd);
    box-shadow:0 1px 2px rgba(15,23,42,.04),
    0 14px 32px -22px rgba(15,23,42,.32);
    isolation:isolate;
    overflow:hidden;
}

/* акцентная полоса слева */
.uni-title::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:5px;
    background:linear-gradient(180deg,var(--uni-accent),var(--uni-accent-2));
}

/* сами строки */
.uni-title .full-name,
.uni-title .abbreviation{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:16px 0;
}

/* разделитель между строками */
.uni-title .abbreviation{
    border-top:1px dashed var(--uni-line);
}

/* подпись */
.uni-title__label{
    font-size:11px;
    line-height:1.2;
    font-weight:600;
    letter-spacing:.11em;
    text-transform:uppercase;
    color:var(--uni-muted);
}

/* значение */
.uni-title__value{
    color:var(--uni-ink);
    text-wrap:balance;
    hyphens:auto;
}

/* полное название — крупно и плотно */
.uni-title .full-name .uni-title__value{
    font-size:20px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:-.02em;
}

/* сокращённое — заметно, но на ступень ниже, с акцентным маркером */
.uni-title .abbreviation .uni-title__value{
    display:inline-flex;
    align-items:center;
    gap:1.55em;
    font-size:15px;
    font-weight:600;
    letter-spacing:.04em;
    color:#1552c4;
    /*white-space:nowrap;*/
}

.uni-title .abbreviation .uni-title__value::before{
    content:"";
    width:7px; height:7px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 0 3px rgba(31,111,235,.16);
    flex:0 0 auto;
}

.desc_text {
    font-size: 16px;
    line-height: 1.6;          /* кратно строке, чтобы обрезка шла ровно по строкам */
    color: #333;
    overflow: hidden;
    transition: max-height .25s ease;
}
.desc-toggle {
    display: inline-block;
    margin-top: 10px;
    padding: 0;
    background: none;
    border: 0;
    color: #1a73e8;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.desc-toggle:hover { text-decoration: none; }

.relations{
    --r-bg:#fff;
    --r-line:#e6e8ee;
    --r-ink:#141821;
    --r-muted:#69707f;
    --r-accent:#2f5bea;
    --r-accent-soft:#eef2ff;

    box-sizing:border-box;
    background:var(--r-bg);
    border:1px solid var(--r-line);
    border-radius:16px;
    padding:20px 18px 16px;
    font:400 15px/1.45 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    color:var(--r-ink);
}
.relations *,
.relations *::before,
.relations *::after{box-sizing:border-box;}

.relations__head{
    display:flex;
    align-items:baseline;
    gap:10px;
    flex-wrap:wrap;
    margin:0 0 14px;
}
.relations__head:not(:first-child) {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--r-line);
}
.relations__eyebrow{
    margin:0;
    flex:0 0 100%;
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--r-accent);
}
.relations__title{
    margin:0;
    font-size:18px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:-.01em;
}
.relations__count{
    margin-left:auto;
    font-size:12px;
    font-weight:600;
    color:var(--r-muted);
    background:#f3f4f8;
    border-radius:999px;
    padding:2px 9px;
}

.relations__list{list-style:none;margin:0;padding:0;display:grid;gap:8px;}

.relations__card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px;
    border:1px solid transparent;
    border-radius:12px;
    text-decoration:none;
    color:inherit;
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
}
.relations__card:hover,
.relations__card:focus-visible{
    background:#f7f8fc;
    border-color:var(--r-line);
    transform:translateY(-1px);
}
.relations__card:focus-visible{outline:2px solid var(--r-accent);outline-offset:2px;}

.relations__badge{
    flex:0 0 40px;
    width:40px;height:40px;
    display:grid;place-items:center;
    border-radius:11px;
    background:linear-gradient(145deg,var(--r-accent-soft),#dfe6ff);
    color:var(--r-accent);
    font-size:13px;font-weight:700;letter-spacing:.02em;
}

.relations__body{display:flex;flex-direction:column;gap:4px;min-width:0;}
.relations__name{
    font-size:14px;font-weight:600;line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.relations__meta{
    display:flex;flex-wrap:wrap;align-items:center;gap:5px;
    font-size:12px;color:var(--r-muted);
}
.relations__dot{opacity:.5;}

/* Плашка «колледж / филиал» */
.relations__tag{
    font-size:10px;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#1d7a4d;
    background:#e8f7ef;
    border-radius:5px;
    padding:2px 6px;
}
.relations__tag--branch{color:#8a5a00;background:#fdf1d8;}
.relations__tag--vuz{
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.relations__arrow{
    margin-left:auto;flex:0 0 auto;
    color:var(--r-accent);font-size:15px;
    opacity:0;transform:translateX(-3px);
    transition:opacity .18s ease, transform .18s ease;
}
.relations__card:hover .relations__arrow,
.relations__card:focus-visible .relations__arrow{opacity:1;transform:translateX(0);}

.relations__all{
    display:inline-flex;align-items:center;gap:6px;
    margin-top:12px;padding-top:12px;
    border-top:1px solid var(--r-line);
    width:100%;
    font-size:13px;font-weight:600;
    color:var(--r-accent);text-decoration:none;
}
.relations__all:hover{text-decoration:underline;}

/* Сайдбар */
.relations--sticky{position:sticky;top:96px;}

/* Полоса на всю ширину контента */
.relations--strip .relations__list{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
/* Компактный список в одну колонку — под «Направлениями» */
.relations--compact .relations__list{gap:0;}
.relations--compact .relations__card{padding:9px 6px;border-radius:0;border-bottom:1px solid var(--r-line);}
.relations--compact .relations__item:last-child .relations__card{border-bottom:0;}
.relations--compact .relations__badge{flex-basis:32px;width:32px;height:32px;font-size:12px;}
.relations--compact .relations__name{font-size:13.5px;}
.relations__item .logo-mark {
    width: 40px;
    height: 40px;
}
.relations__badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
    border-radius: 11px;
}

.relations__foot { margin-top: 12px; }

/* скрываем лишнее только когда JS активен — иначе пользователь видит все 15 */
.relations--js:not(.relations--expanded) .relations__item--extra { display: none; }

.relations__more {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font: inherit;
    /*color: #0b63c5;*/
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}
.relations__more:hover .relations__more-text,
.relations__more:focus-visible .relations__more-text { text-decoration: underline; }
.relations__more:focus-visible { outline: 2px solid #0b63c5; outline-offset: 3px; border-radius: 4px; }

.relations__more-count { color: #6b7280; font-size: .875em; }
.relations--expanded .relations__more-count { display: none; }


@media (max-width:1120px){
    .tags {
        grid-template-columns: 1fr;
    }
}
@media (max-width:1000px){
    .mapwrap{grid-template-columns:1fr}
    .gallery{grid-template-columns:repeat(2,1fr)}
    .shot--wide{grid-column:span 2;grid-row:auto;aspect-ratio:16/9}
    .tags {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width:860px){
    .relations--strip .relations__list{
        grid-template-columns:minmax(0,1fr);
    }
    .relations--sticky{position:static;}
}
@media (max-width:720px){
    .sec{padding:22px 18px 24px}
    .desc,.contacts{grid-template-columns:1fr}
    .press a{flex-direction:column;gap:4px}
    .press time{width:auto}
    .days li{flex-wrap:wrap}
    .days .btn{margin-left:0;width:100%;justify-content:center}
    .tags {
        grid-template-columns: 1fr;
    }
}
@media (max-width:600px){
    .lb__nav{ width:44px; height:44px; }
    .lb__nav--prev{ left:6px; }
    .lb__nav--next{ right:6px; }
    .lb__count{ bottom:8px; }
}
@media (max-width:560px){
    .uni-title{
        padding:4px 18px 4px 22px;
        border-radius:14px;
    }
    .uni-title .full-name,
    .uni-title .abbreviation{
        padding:14px 0;
    }
    .uni-title .abbreviation .uni-title__value{
        white-space:normal;
    }
}
@media (max-width:520px){
    .relations{padding:16px 14px 12px;}
    .relations__title{font-size:16px;}
    .relations__badge{flex-basis:34px;width:34px;height:34px;font-size:12px;}
    .relations__tag{display:none;} /* на узком экране мета и так разъезжается */
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .relations__card,.relations__arrow{transition:none;}
    .relations__card:hover{transform:none;}
}
@media (prefers-color-scheme:dark){
    .uni-title{
        --uni-ink:#e8edf7;
        --uni-muted:#8d9aae;
        --uni-line:rgba(255,255,255,.11);
        background:
                radial-gradient(120% 140% at 100% 0%, rgba(56,132,255,.17), transparent 62%),
                linear-gradient(180deg,#131a26,#0e141d);
        box-shadow:0 14px 32px -24px #000;
    }
    .uni-title .abbreviation .uni-title__value{
        color:#a9c7ff;
    }
    .uni-title .abbreviation .uni-title__value::before{
        box-shadow:0 0 0 3px rgba(86,150,255,.18);
    }
}






/* форма отзыва */
.review-form {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #e3e6ec;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 24px;
}
.review-form[hidden] { display: none; }

.review-form__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.review-form__errors {
    margin: 0 0 16px;
    padding: 12px 16px 12px 32px;
    border: 1px solid #f3c2c2;
    border-radius: 8px;
    background: #fdf2f2;
    color: #b3261e;
    font-size: 14px;
}
.review-form__errors[hidden] { display: none; }
.review-form__errors ul { margin: 0; padding-left: 0; list-style: none; }
.review-form__errors li { margin: 4px 0; }

.review-form__field { margin-bottom: 16px; }

.review-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2b2f38;
}
.review-form__req { color: #d92d20; }

.review-form__input,
.review-form__select,
.review-form__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #1f2328;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.review-form__textarea { resize: vertical; min-height: 120px; }

.review-form__input:focus,
.review-form__select:focus,
.review-form__textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}

/* поле с ошибкой */
.review-form__input.is-invalid,
.review-form__select.is-invalid,
.review-form__textarea.is-invalid {
    border-color: #d92d20;
    background: #fffafa;
}

.review-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.review-form__cancel {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}
.review-form__cancel:hover { background: #e8ebf0; }

/* уведомление справа сверху */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #1f7a3f;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .18);
    animation: toastIn .2s ease-out;
}
.toast[data-type="error"] {
    background: #ce0000;
}
.toast a {
    color: #fff;
    text-decoration: underline;
}
.toast a:hover {
    color: #fff;
    text-decoration: none;
}
.toast[hidden] { display: none; }

.toast__text { flex: 1 1 auto; }

.toast__close {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    opacity: .8;
    cursor: pointer;
}
.toast__close:hover { opacity: 1; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .toast { left: 16px; right: 16px; top: 16px; max-width: none; }
}


/* форма голосования */
.votef {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #e3e6ec;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 24px;
}
.votef[hidden] { display: none; }

.votef__title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.votef__errors {
    margin: 0 0 16px;
    padding: 12px 16px 12px 32px;
    border: 1px solid #f3c2c2;
    border-radius: 8px;
    background: #fdf2f2;
    color: #b3261e;
    font-size: 14px;
}
.votef__errors[hidden] { display: none; }
.votef__errors ul { margin: 0; padding: 0; list-style: none; }
.votef__errors li { margin: 4px 0; }

/* вопрос */
.votef-q {
    margin: 0 0 20px;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid #eef0f4;
}
.votef-q:last-child { border-bottom: 0; }

.votef-q__legend {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2b2f38;
    line-height: 1.35;
}
.votef-q__num { color: #2f6fed; }

.votef-q__hint {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #667085;
}

.votef-q.is-invalid {
    padding-left: 12px;
    border-left: 3px solid #d92d20;
}
.votef-q.is-invalid .votef-q__legend { color: #b3261e; }

/* звёзды */
.votef-stars {
    display: inline-flex;
    flex-direction: row-reverse; /* DOM 5→1, на экране 1→5 */
    justify-content: flex-end;
    gap: 4px;
}

.votef-stars__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.votef-stars__label {
    padding: 2px;
    font-size: 30px;
    line-height: 1;
    color: #d0d5dd;
    cursor: pointer;
    transition: color .12s ease, transform .12s ease;
    user-select: none;
}

.votef-stars__label::before { content: "\2605"; } /* ★ */

.votef-stars__label:hover,
.votef-stars__label:hover ~ .votef-stars__label,
.votef-stars__input:checked ~ .votef-stars__label {
    color: #f5a524;
}
.votef-stars__label:hover { transform: scale(1.08); }

.votef-stars__input:focus-visible + .votef-stars__label {
    outline: 2px solid #2f6fed;
    outline-offset: 2px;
    border-radius: 6px;
}

/* остальные поля */
.votef__field { margin-bottom: 16px; }

.votef__label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2b2f38;
}
.votef__req { color: #d92d20; }

.votef__select {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #1f2328;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.votef__select:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}
.votef__select.is-invalid {
    border-color: #d92d20;
    background: #fffafa;
}

.votef__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.votef__cancel {
    background: #f2f4f7;
    color: #344054;
    border: 1px solid #d0d5dd;
}
.votef__cancel:hover { background: #e8ebf0; }

@media (max-width: 480px) {
    .votef-stars__label { font-size: 26px; }
    .votef__select { max-width: none; }
}