﻿/* ============================================================
   SECTIONS A — trustbar, pain, countries, quiz, unis, programs, exams
   ============================================================ */

.text-blue { color: var(--blue); }

/* ---------- Home Search Widget (UniPage-style) ---------- */
.hs-wrap {
  background: var(--navy);
  padding: 0 0 40px;
  position: relative;
  z-index: 4;
}
.hs-card {
  padding: 24px 28px;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 60px -12px rgba(6,64,102,.40);
  border: none;
}
.hs-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}
.hs-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--gray-50);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hs-select-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.hs-select-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}
.hs-select-wrap select {
  width: 100%;
  padding: 17px 36px 17px 44px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-chevron {
  position: absolute;
  right: 12px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.hs-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  flex-shrink: 0;
}
.hs-btn {
  border-radius: 0 var(--r-md) var(--r-md) 0 !important;
  padding: 17px 28px;
  font-size: 16px;
  flex-shrink: 0;
  align-self: stretch;
  height: auto;
}

@media (max-width: 780px) {
  .hs-row { flex-direction: column; border-radius: var(--r-lg); gap: 0; }
  .hs-select-wrap { width: 100%; }
  .hs-select-wrap select { padding: 16px 36px 16px 44px; }
  .hs-divider { width: 100%; height: 1px; }
  .hs-btn { border-radius: var(--r-md) !important; width: 100%; margin: 4px; }
}

/* ---------- Trust bar (logo above name marquee) ---------- */
.trustbar { background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-3) 100%); padding: 30px 0 34px; border-top: 1px solid rgba(255,255,255,.1); }
.trustbar__head { display: flex; justify-content: center; margin-bottom: 26px; }
.trustbar__label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); position: relative; padding-bottom: 12px; }
.trustbar__label::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 40px; height: 2px; border-radius: 2px; background: var(--accent); }

.unibar { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.unibar__track { display: flex; gap: 26px; width: max-content; animation: marquee 80s linear infinite; }
.unibar:hover .unibar__track { animation-play-state: paused; }
.unibar__item { display: flex; flex-direction: column; align-items: center; gap: 11px; flex-shrink: 0; width: 132px; }
.unibar__logo-box { height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.22); border-radius: 10px; padding: 6px 12px; transition: transform .25s ease, background .25s ease; }
.unibar__item:hover .unibar__logo-box { transform: translateY(-3px); background: rgba(255,255,255,.35); }
.unibar__logo { max-width: 90px; max-height: 40px; object-fit: contain; }
.unibar__name { font-family: var(--font-head); font-weight: 600; font-size: 12.5px; line-height: 1.3; text-align: center; color: rgba(255,255,255,.8); white-space: normal; }

/* ---------- Pain → Accordion ---------- */
.pain__accordion-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 12px; }
.pain__accordion { display: flex; flex-direction: column; gap: 0; }
.pain__acc-item { border-top: 1px solid var(--line); cursor: pointer; transition: background .2s; border-radius: 0; }
.pain__acc-item:last-of-type { border-bottom: 1px solid var(--line); }
.pain__acc-head { display: flex; align-items: center; gap: 14px; padding: 18px 0; user-select: none; }
.pain__acc-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--muted); min-width: 28px; }
.pain__acc-title { flex: 1; font-family: var(--font-head); font-weight: 700; font-size: 16.5px; line-height: 1.35; color: var(--text); }
.pain__acc-arrow { flex: 0 0 auto; color: var(--muted); transition: transform .25s; }
.pain__acc-item.is-open .pain__acc-arrow { transform: rotate(180deg); }
.pain__acc-item.is-open .pain__acc-num { color: var(--blue); }
.pain__acc-item.is-open .pain__acc-title { color: var(--blue); }
.pain__acc-body { display: none; padding: 0 0 20px 42px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.pain__acc-item.is-open .pain__acc-body { display: block; }
.pain__acc-photo-mob { display: none; margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; }
.pain__acc-photo-mob img { width: 100%; height: 220px; object-fit: cover; }
.pain__acc-cta { margin-top: 28px; }
.pain__photo-panel { position: sticky; top: 100px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 3/4; }
.pain__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.pain__photo.is-active { opacity: 1; }
.pain__photo-panel { position: relative; }
/* mobile */
@media (max-width: 720px) {
  .pain__accordion-wrap { grid-template-columns: 1fr; }
  .pain__photo-panel { display: none; }
  .pain__acc-photo-mob { display: block; }
}

/* ---------- Countries ---------- */
.countries__grid {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.countries__grid::-webkit-scrollbar { display: none; width: 0; height: 0; }
.country { flex: 0 0 340px; }
@media (max-width: 600px) { .country { flex: 0 0 84%; } }

.country {
  border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.34,1.3,.64,1),
              box-shadow .35s ease;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(10,35,90,.09);
}
.country:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 60px -12px rgba(10,35,90,.22);
}

/* Photo */
.country__photo {
  height: 270px; position: relative;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.country__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(0,0,0,.62) 100%);
}
.country__photo-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
}
.country__flag-big { font-size: 34px; line-height: 1; }
.country__flag-img { width: 38px; height: auto; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.35); vertical-align: middle; }
.country__name-over {
  font-family: var(--font-head); font-weight: 800;
  font-size: 24px; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.country__hot {
  position: absolute; top: 12px; left: 12px;
  background: rgba(6,64,102,.82); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Body */
.country__body {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.country__landmark {
  font-size: 13.5px; color: var(--muted);
  font-weight: 600; margin-bottom: 7px;
}
.country__desc {
  font-size: 15px; color: var(--text);
  line-height: 1.55; flex: 1;
}
.country__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.country__price {
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; color: var(--navy);
}
.country__link {
  font-family: var(--font-head); font-weight: 700;
  font-size: 14px; color: var(--blue);
}
.country:hover .country__link { text-decoration: underline; }

/* ---------- Quiz ---------- */
.quiz-sec { background: var(--light-bg); }
.quiz { max-width: 760px; margin: 0 auto; padding: 0; overflow: hidden; }
.quiz__bar { height: 6px; background: var(--gray-200); }
.quiz__bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width .4s var(--ease); }
.quiz__resume {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: linear-gradient(90deg, rgba(30,92,149,.10), rgba(30,92,149,.04));
  border-bottom: 1px solid rgba(30,92,149,.18);
  animation: stickyqIn .4s var(--ease);
}
.quiz__resume-ic { font-size: 18px; color: var(--blue); font-weight: 800; }
.quiz__resume-txt { flex: 1; font-size: 14px; color: var(--navy); line-height: 1.4; }
.quiz__resume-txt b { font-family: var(--font-head); font-weight: 700; }
.quiz__resume-restart {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.6); transition: all .2s;
}
.quiz__resume-restart:hover { background: #fff; color: var(--navy); }
.quiz__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px 0; }
.quiz__step-n { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue); }
.quiz__back { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--muted); }
.quiz__back:hover { color: var(--navy); }
.quiz__stage { padding: 18px 32px 36px; min-height: 320px; }
.slide-r { animation: slideR .42s var(--ease); }
.slide-l { animation: slideL .42s var(--ease); }
@keyframes slideR { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.quiz__q { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; }
.quiz__q--sm { font-size: 22px; margin-bottom: 4px; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.quiz__opt { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); border: 2px solid var(--line); text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.quiz__opt:hover { border-color: var(--blue); transform: translateY(-2px); }
.quiz__opt.is-sel { border-color: var(--navy); background: var(--accent-soft); }
.quiz__opt-ic { font-size: 26px; }
.quiz__opt-label { font-family: var(--font-head); font-weight: 700; font-size: 16px; }

/* Quiz result */
.quiz__result-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.quiz__result-emoji { font-size: 40px; }
.quiz__result-lead { font-size: 16px; color: var(--muted); margin-top: 4px; }
.quiz__result-lead b { color: var(--navy); }
.quiz__matches-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.quiz__matches { position: relative; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
/* Blurred matches stay locked until the lead form is filled — block text selection/copy so the names can't be lifted */
.quiz__match { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; filter: blur(7px); opacity: .8; position: relative; user-select: none; -webkit-user-select: none; -ms-user-select: none; }
.quiz__match-lock { position: absolute; right: 16px; font-size: 16px; filter: none; }
.quiz__match-logo { width: 40px; height: 40px; border-radius: 9px; flex: 0 0 auto; }
.quiz__match-name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.quiz__match-loc { font-size: 13px; color: var(--muted); }
.quiz__match .chip { margin-left: auto; }
.quiz__matches-blur { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted); filter: blur(2px); user-select: none; -webkit-user-select: none; -ms-user-select: none; }
.quiz__lead { background: var(--light-bg); border-radius: var(--r-md); padding: 22px; }
.quiz__lead-t { font-size: 15px; margin-bottom: 16px; }
.quiz__lead-t b { color: var(--blue); }
.quiz__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__form input { grid-column: span 1; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color .2s; }
.quiz__form input:focus { border-color: var(--blue); }
.quiz__form .btn { grid-column: 1 / -1; }
.quiz__micro { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.quiz__success { text-align: center; padding: 30px 0; }
.quiz__success-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 30px; display: grid; place-items: center; margin: 0 auto 18px; }
.quiz__success-p { color: var(--muted); max-width: 420px; margin: 10px auto 22px; }

/* ---------- Universities ---------- */
.unis__hot { background: rgba(30,92,149,.06); border: 1px solid rgba(30,92,149,.18); border-radius: var(--r-md); padding: 14px 20px; font-size: 15px; color: var(--navy); margin-bottom: 28px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.unis__layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.unis__filters { position: sticky; top: calc(var(--nav-h) + 16px); padding: 24px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.unis__filters::-webkit-scrollbar { width: 4px; }
.unis__filters::-webkit-scrollbar-track { background: transparent; }
.unis__filters::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.filter__label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-bottom: 11px; }
.filter__label b { color: var(--blue); }
.filter__search { display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 13px; color: var(--muted); }
.filter__search input { border: none; outline: none; font-family: var(--font-body); font-size: 14px; width: 100%; }
.filter__range { width: 100%; accent-color: var(--navy); }
.filter__range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.filter__price-row { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 10px; }
.filter__price-pre { font-size: 14px; font-weight: 700; color: var(--navy); }
.filter__price-input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); -moz-appearance: textfield; }
.filter__price-input::-webkit-outer-spin-button, .filter__price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter__price-yr { font-size: 13px; color: var(--muted); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter__flag { width: 18px; height: auto; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.filter__chip { padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; font-family: var(--font-head); color: var(--muted); transition: all .18s; }
.filter__chip:hover { border-color: var(--blue); color: var(--blue); }
.filter__chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Заголовки групп фильтров: «Сначала — программа» / «Затем — университет» */
.filter__group {
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: -8px;
}
.filter__actions { display: flex; align-items: center; gap: 10px; }
.filter__actions .btn { padding: 12px 18px; font-size: 14px; }
.unis__count-sm { font-size: 13px; color: var(--muted); margin-left: auto; }

.unis__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.unis__count { font-size: 15px; color: var(--muted); }
.unis__count b { color: var(--navy); font-family: var(--font-head); }
.unis__sort { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.unis__sort > span { margin-right: 4px; }
.unis__sort button { padding: 7px 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--muted); }
.unis__sort button.is-on { background: var(--light-bg); color: var(--navy); }
/* Inline star used in hint banner */
.uni__star-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(74,143,199,.15); border: 1.5px solid rgba(74,143,199,.5);
  color: #4A8FC7; font-size: 12px;
  vertical-align: middle; margin: 0 2px;
}

/* Checkbox filters */
.filter--checks { gap: 10px; }
.filter__check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; color: var(--text); padding: 3px 0; user-select: none; }
.filter__check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; flex-shrink: 0; }

/* Grid */
.unis__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* Card shell — кликабельна целиком (переход на страницу вуза) */
.uni { padding: 0; position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-lg); cursor: pointer; }
.uni:hover { transform: translateY(-4px); box-shadow: 0 18px 48px -12px rgba(10,35,90,.18); }

/* Campus banner */
.uni__banner { height: 170px; position: relative; flex-shrink: 0; }
.uni__banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.42) 100%);
}
.uni__country-chip {
  position: absolute; bottom: 10px; right: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 7px; border-radius: 999px;
  background: rgba(8,20,44,.55); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .01em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.uni__country-flag {
  width: 20px; height: 14px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.uni__stickers {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 5px; z-index: 3;
}
/* Blue star badge for Elite unis — top-right of banner */
.uni__elite-star {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(74,143,199,.2);
  border: 1.5px solid rgba(74,143,199,.7);
  color: #4A8FC7;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1;
  box-shadow: 0 0 10px rgba(74,143,199,.4);
  backdrop-filter: blur(4px);
  cursor: default;
}
.uni__sticker {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 999px;
  font-family: var(--font-head); backdrop-filter: blur(6px);
  white-space: nowrap;
}
.sticker--elite  { background: var(--navy);  color: #fff; }
.sticker--merit  { background: #d4820a;      color: #fff; }
.sticker--grant  { background: #1a7a48;      color: #fff; }

/* Card body */
.uni__body { padding: 15px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.uni__head-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 11px; }
.uni__logo-ph {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 17px;
  text-align: center; line-height: 1; letter-spacing: -.01em;
  flex-shrink: 0;
}
.uni__logo-img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: contain; background: #fff; padding: 3px;
  border: 2px solid rgba(0,0,0,.08);
}
.uni__save { width: 34px; height: 34px; border-radius: 9px; background: var(--light-bg); color: var(--muted); font-size: 16px; transition: all .2s; }
.uni__save:hover { color: var(--navy); }
.uni__save.is-on { background: var(--accent-soft); color: var(--navy); }

.uni__name { font-family: var(--font-head); font-weight: 800; font-size: 16.5px; line-height: 1.28; margin-bottom: 4px; }
.uni__loc { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 5px; }
.uni__loc-ic { flex: 0 0 auto; color: var(--blue); }

.uni__rows { display: flex; flex-direction: column; gap: 7px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.uni__row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; color: var(--muted); }
.uni__row b { color: var(--navy); font-family: var(--font-head); font-size: 13px; }
.uni__price-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.uni__discount { font-size: 11px; color: #2a9d5c; font-weight: 600; }

/* Type & field tags */
.uni__tags { display: flex; align-items: center; gap: 6px; margin: 10px 0 7px; flex-wrap: wrap; }
.uni__type-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-family: var(--font-head); }
.uni__type-tag--gov  { background: rgba(10,95,180,.1);   color: #0a5fb4; }
.uni__type-tag--priv { background: rgba(160,100,30,.1);  color: #8a5218; }
.uni__field-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--light-bg); color: var(--muted); font-family: var(--font-head); }

/* Бейджи программ: гарантия поступления / стипендия */
.uni__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.uni__badge {
  font-size: 11.5px; font-weight: 700; font-family: var(--font-head);
  padding: 4px 10px; border-radius: 999px;
}
.uni__badge--guar  { background: rgba(26,122,72,.1);  color: #157a44; border: 1px solid rgba(26,122,72,.35); }
.uni__badge--schol { background: rgba(212,130,10,.1); color: #a06408; border: 1px solid rgba(212,130,10,.35); }
.uni__more { padding: 10px; font-size: 14px; margin-top: auto; }

.unis__load { display: flex; margin: 30px auto 0; }
.unis__empty { text-align: center; color: var(--muted); padding: 40px; font-size: 16px; }

/* ---------- Programs ---------- */
.programs__who {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 26px;
}
.pwho {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; text-align: left;
  border-radius: var(--r-md);
  background: var(--gray-50);
  border: 1.5px solid var(--line);
  transition: all .2s var(--ease);
}
.pwho:hover { border-color: var(--blue); transform: translateY(-2px); }
.pwho.is-on { background: var(--navy); border-color: var(--navy); }
.pwho__ic { font-size: 26px; line-height: 1; }
.pwho__txt { display: flex; flex-direction: column; gap: 2px; }
.pwho__txt b { font-family: var(--font-head); font-size: 14.5px; color: var(--navy); }
.pwho__txt span { font-size: 12.5px; color: var(--muted); }
.pwho.is-on .pwho__txt b { color: #fff; }
.pwho.is-on .pwho__txt span { color: rgba(255,255,255,.75); }

.programs__cat-link {
  margin-top: 26px; padding: 16px 22px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  font-size: 15px; color: var(--navy);
}
.programs__cat-link a { font-weight: 700; color: var(--blue); }
.programs__cat-link a:hover { color: var(--navy); }

.programs__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.programs__tab { padding: 11px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--muted); border: 1.5px solid var(--line); transition: all .2s; }
.programs__tab:hover { border-color: var(--navy); color: var(--navy); }
.programs__tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prog { padding: 26px; display: flex; flex-direction: column; }
.prog__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.prog__flag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 28px; border-radius: 6px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  letter-spacing: .04em; flex-shrink: 0; padding: 0 6px;
}
.prog__name { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.prog__country { font-size: 14px; color: var(--muted); margin-top: 3px; }
.prog__rows { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); }
.prog__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); }
.prog__row b { color: var(--navy); font-family: var(--font-head); }
.prog__schol { color: var(--blue) !important; }
.prog__guar {
  align-self: flex-start;
  font-size: 12.5px; font-weight: 700; font-family: var(--font-head);
  color: #157a44; background: rgba(26,122,72,.1); border: 1px solid rgba(26,122,72,.35);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.prog__specs { font-size: 13.5px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); flex: 1; }
.prog__link { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--blue); }

/* ---------- Exams ---------- */
.exams__hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; overflow: hidden; margin-bottom: 28px; }
.exams__hero-left { padding: 38px; }
.exams__hero-name { font-family: var(--font-head); font-weight: 900; font-size: 32px; margin: 16px 0 12px; }
.exams__hero-desc { font-size: 16px; color: var(--muted); max-width: 460px; }
.exams__hero-desc b { color: var(--navy); }
.exams__hero-stats { display: flex; gap: 32px; margin: 24px 0 26px; }
.exams__hero-stats div { display: flex; flex-direction: column; }
.exams__hero-stats b { font-family: var(--font-head); font-weight: 900; font-size: 26px; color: var(--blue); }
.exams__hero-stats span { font-size: 13px; color: var(--muted); }
.exams__hero-vis { min-height: 280px; }
.exams__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.exam { padding: 30px; display: flex; flex-direction: column; }
.exam__badge { margin-bottom: 12px; align-self: flex-start; }
.exam__name { font-family: var(--font-head); font-weight: 900; font-size: 22px; margin-bottom: 4px; }
.exam__desc { font-size: 14.5px; color: var(--muted); margin: 10px 0 16px; line-height: 1.6; flex: 1; }
.exam__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.exam__for { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.exam__cta { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--blue); margin-top: auto; }
.exam__cta:hover { color: var(--navy); text-decoration: underline; }

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

/* Responsive A */
@media (max-width: 900px) {
  .unis__layout { grid-template-columns: 1fr; }
  .unis__filters { position: static; }
  .programs__grid { grid-template-columns: 1fr; }
  .programs__who { grid-template-columns: 1fr 1fr; }
  .exams__hero { grid-template-columns: 1fr; }
  .exams__hero-vis { min-height: 180px; order: -1; }
}
@media (max-width: 768px) {
  .trustbar { padding: 20px 0 24px; }
  .unibar__item { width: 110px; }
  .unibar__logo-box { height: 42px; }
  .country { flex: 0 0 80%; }
  .quiz { border-radius: var(--r-md); }
  .quiz__head, .quiz__stage { padding-left: 18px; padding-right: 18px; }
  .quiz__q { font-size: clamp(18px, 5vw, 24px); }
  .programs__who { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .quiz__head, .quiz__stage { padding-left: 20px; padding-right: 20px; }
  .quiz__form { grid-template-columns: 1fr; }
  .country { flex: 0 0 88%; }
}
