/* ============================================================
   Рейтинг Погодина
   Палитра взята из logo.webp
   ============================================================ */

:root {
  --ink: #191636;
  --ink-2: #2b2860;
  --ink-3: #13102f;
  --text: #2a2748;
  --muted: #6d6a8a;
  --muted-2: #938fac;
  --paper: #fbfaf7;
  --cream: #fff9ea;
  --white: #ffffff;
  --line: #eae6f3;
  --line-2: #dcd6ec;

  --blue: #3949a8;
  --blue-l: #84a6e7;
  --violet: #6a4bd8;
  --violet-d: #483ad6;
  --magenta: #d444bb;
  --pink: #e56cc1;
  --orange: #e3793d;
  --orange-l: #f2a14c;
  --teal: #2fa99a;

  --grad: linear-gradient(115deg, #483ad6 0%, #8a4bd8 34%, #d444bb 64%, #e3793d 100%);
  --grad-warm: linear-gradient(135deg, #f6b95e 0%, #ee8b36 58%, #df6d31 100%);
  --grad-cool: linear-gradient(135deg, #3949a8 0%, #6a4bd8 55%, #d444bb 100%);
  --grad-soft: linear-gradient(135deg, #f4f0ff 0%, #fdf0f8 50%, #fff4e8 100%);

  --shadow-xs: 0 1px 2px rgba(25, 22, 54, .05);
  --shadow-sm: 0 1px 2px rgba(25, 22, 54, .05), 0 6px 20px rgba(25, 22, 54, .05);
  --shadow-md: 0 18px 44px -22px rgba(25, 22, 54, .30);
  --shadow-lg: 0 34px 90px -34px rgba(25, 22, 54, .45);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font: "Golos Text", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Golos Text", "Segoe UI", system-ui, sans-serif;

  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: rgba(212, 68, 187, .18); }

:focus-visible {
  outline: 3px solid rgba(106, 75, 216, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- типографика ---------- */

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}

h1, .h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.3vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h2, .h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -.03em;
}

h3, .h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.lead {
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.62;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.eyebrow--light { color: #cfc6ff; }
.eyebrow--light::before { background: linear-gradient(90deg, #84a6e7, #e56cc1, #f2a14c); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- кнопки ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--grad-warm);
  --btn-fg: #2a1608;
  box-shadow: 0 12px 26px -12px rgba(227, 121, 61, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn--primary:hover { box-shadow: 0 18px 34px -14px rgba(227, 121, 61, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  box-shadow: var(--shadow-md);
}
.btn--dark:hover { --btn-bg: var(--ink-2); }

.btn--violet {
  --btn-bg: var(--grad-cool);
  --btn-fg: #fff;
  box-shadow: 0 14px 30px -14px rgba(72, 58, 214, .75);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .34);
}
.btn--outline:hover { --btn-bg: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { --btn-bg: #fff; border-color: var(--violet); color: var(--violet); }

.btn--sm { min-height: 38px; padding: 8px 15px; font-size: 13.5px; gap: 8px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--block { width: 100%; }

.btn--icon {
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
.btn--icon:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(25, 22, 54, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.brand:hover img { filter: saturate(1.1); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #4b4768;
  transition: color .2s, background .2s;
}
.nav__link svg { width: 14px; height: 14px; opacity: .6; transition: transform .25s var(--ease); }
.nav__link:hover { color: var(--ink); background: #f6f3fd; }
.nav__link.is-active { color: var(--violet); }
.nav__link.is-active::after {
  content: "";
  position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-item { position: relative; }
.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:hover .nav__link svg { transform: rotate(180deg); }
.nav-drop__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s;
}
.nav-drop__link:hover { background: #f8f5ff; }
.nav-drop__num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--grad-cool);
}
.nav-drop__link:nth-child(1) .nav-drop__num { background: linear-gradient(135deg, #3949a8, #6a4bd8); }
.nav-drop__link:nth-child(2) .nav-drop__num { background: linear-gradient(135deg, #6a4bd8, #a44bd8); }
.nav-drop__link:nth-child(3) .nav-drop__num { background: linear-gradient(135deg, #b44bd0, #e05bb8); }
.nav-drop__link:nth-child(4) .nav-drop__num { background: linear-gradient(135deg, #d444bb, #e3793d); }
.nav-drop__link:nth-child(5) .nav-drop__num { background: linear-gradient(135deg, #2fa99a, #3949a8); }
.nav-drop__link:nth-child(6) .nav-drop__num { background: linear-gradient(135deg, #483ad6, #d444bb); }
.nav-drop__link b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-drop__link small { display: block; font-size: 12px; color: var(--muted-2); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
}
.burger span {
  position: relative;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 24px 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: visible;
  color: #fff;
  background: #14113a;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .62;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 80% at 14% 18%, rgba(72, 58, 214, .55), transparent 62%),
    radial-gradient(42% 60% at 88% 16%, rgba(212, 68, 187, .26), transparent 64%),
    radial-gradient(48% 60% at 74% 92%, rgba(227, 121, 61, .20), transparent 68%),
    linear-gradient(90deg, rgba(16, 13, 46, .96) 0%, rgba(16, 13, 46, .78) 44%, rgba(16, 13, 46, .25) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(16, 13, 46, .7));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) 0 clamp(30px, 4vw, 54px);
}
.hero-copy { max-width: 640px; }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.15rem, 4vw, 2.86rem); }
.hero h1 .grad-text { display: block; }
.hero h1 .thin { color: #b9b3e6; }
.hero__lead {
  max-width: 540px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.64;
  color: #d8d3f2;
}

.hero-search {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 30px 0 20px;
  padding: 6px 6px 6px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s;
}
.hero-search:focus-within { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .36); }
.hero-search svg { width: 19px; height: 19px; color: #bdb6e8; flex: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.hero-search input::placeholder { color: #a8a1cf; }
.hero-search .btn { border-radius: 12px; min-height: 42px; padding: 10px 16px; font-size: 13.5px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-point b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero-point span { display: block; font-size: 12.5px; line-height: 1.45; color: #a9a2cf; }
.hero-point:nth-child(1) b { color: #ffb27a; }
.hero-point:nth-child(2) b { color: #cbb6ff; }
.hero-point:nth-child(3) b { color: #9fc3ff; }

/* hero visual */
.hero-visual { position: relative; min-height: 420px; }
.hv-glow {
  position: absolute;
  inset: 8% -12% 6% 4%;
  background: var(--grad);
  filter: blur(70px);
  opacity: .28;
  border-radius: 50%;
}
.hero-card {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65);
  transform: rotate(-1.2deg);
  animation: floatCard 9s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(-.4deg) translateY(-10px); }
}
.hc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.hc-head b { font-family: var(--display); font-size: 14px; letter-spacing: -.02em; }
.hc-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1edff;
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.hc-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 0 rgba(212, 68, 187, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 68, 187, .45); }
  70% { box-shadow: 0 0 0 8px rgba(212, 68, 187, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 68, 187, 0); }
}

.hc-list { margin-top: 6px; }
.hc-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1eef8;
}
.hc-row:last-child { border-bottom: 0; }
.hc-row__rank {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #f3f0fb;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
}
.hc-row:nth-child(1) .hc-row__rank { background: var(--grad); color: #fff; }
.hc-row:nth-child(2) .hc-row__rank { background: linear-gradient(135deg, #6a4bd8, #d444bb); color: #fff; }
.hc-row:nth-child(3) .hc-row__rank { background: linear-gradient(135deg, #b44bd0, #e3793d); color: #fff; }
.hc-row__name { min-width: 0; }
.hc-row__name b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-row__name small { display: block; font-size: 11px; color: var(--muted-2); }
.hc-row__score {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.hc-row__score span { font-size: 10px; color: var(--muted-2); font-family: var(--font); }
.hc-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}
.hc-foot svg { width: 14px; height: 14px; color: var(--teal); }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .8);
  animation: floatChip 7s ease-in-out infinite;
}
.float-chip strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #d9c9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.float-chip span { font-size: 11.5px; line-height: 1.25; color: #cbc5eb; max-width: 72px; }
.fc-1 { top: -58px; right: 16px; animation-delay: -2s; }
.fc-2 { bottom: -48px; left: 34px; animation-delay: -4s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- секции ---------- */

.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 66px) 0; }
.section--cream { background: var(--cream); }
.section--white { background: #fff; }
.section--soft { background: var(--grad-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.section-head__copy { max-width: 660px; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { color: var(--muted); max-width: 560px; }
.section-head__aside { flex: none; }

/* направления на лендинге */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 232px;
  padding: 26px 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.dir-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--grad));
}
.dir-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.dir-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dir-card__num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted-2);
}
.dir-card__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--accent-soft, #f3f0fb);
  color: var(--accent-ink, var(--violet));
}
.dir-card__icon svg { width: 21px; height: 21px; }
.dir-card h3 { margin: 20px 0 8px; }
.dir-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.dir-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted-2);
}
.dir-card__foot b { color: var(--ink); font-weight: 600; }
.dir-card__arrow {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.dir-card__arrow svg { width: 14px; height: 14px; }
.dir-card:hover .dir-card__arrow { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }

/* сценарии */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.step__n {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--violet);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}
.step h3 { margin-bottom: 8px; font-size: 17px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* конструктор-баннер */
.builder-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #16123c;
  color: #fff;
  padding: clamp(30px, 4.5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  isolation: isolate;
}
.builder-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 8% 8%, rgba(72, 58, 214, .55), transparent 62%),
    radial-gradient(55% 70% at 92% 94%, rgba(212, 68, 187, .34), transparent 64%),
    radial-gradient(40% 60% at 70% 10%, rgba(227, 121, 61, .18), transparent 70%);
}
.builder-band h2 { margin: 16px 0 14px; }
.builder-band p { color: #cfc9ec; max-width: 480px; }
.builder-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.builder-mock {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}
.builder-mock__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px; color: #b9b2df;
}
.builder-mock__row { margin-bottom: 15px; }
.builder-mock__row:last-child { margin-bottom: 0; }
.bm-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; font-size: 12.5px; color: #ded9f6; }
.bm-label b { color: #fff; font-weight: 600; }
.bm-track {
  position: relative;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  overflow: visible;
}
.bm-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}
.bm-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--v, 50%) - 7px);
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.builder-mock__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 11.5px;
  color: #a9a1d1;
}
.builder-mock__note svg { width: 14px; height: 14px; color: #ffb27a; flex: none; }

/* о проекте */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 30px;
  background: var(--grad);
  opacity: .55;
  transform: rotate(-2deg);
}
.about-photo__img {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-lg);
}
.about-photo__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.about-badge {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 26px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.about-badge b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-badge span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

.about-copy h2 { margin: 14px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-checks { display: grid; gap: 11px; margin: 24px 0 28px; }
.about-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; }
.about-checks svg { width: 18px; height: 18px; margin-top: 3px; flex: none; color: var(--teal); }
.about-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; }
.about-stat b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.about-stat span { font-size: 12px; color: var(--muted-2); }

/* обновления */
.updates {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4.5vw, 54px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fff7e7 0%, #ffe9c4 38%, #f5b05b 100%);
  border: 1px solid #f4d9ae;
}
.updates::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -130px; top: -180px;
  border: 60px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}
.updates__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.updates h2 { color: #331c08; }
.updates p { color: #6b4a26; font-size: 14px; margin-top: 8px; }
.updates__year {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: rgba(51, 28, 8, .18);
  line-height: 1;
}
.updates-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.update-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 13.5px;
  font-weight: 500;
  color: #3c230c;
  transition: background .2s, transform .2s, border-color .2s;
}
.update-link:hover { background: rgba(255, 255, 255, .72); transform: translateX(3px); }
.update-link svg { width: 15px; height: 15px; flex: none; opacity: .6; transition: transform .25s; }
.update-link:hover svg { transform: translateX(2px); opacity: 1; }
.update-link--wide { grid-column: span 2; }

/* контакты */
.contacts { text-align: center; }
.contacts h2 { margin: 14px 0 10px; }
.contacts p { color: var(--muted); max-width: 480px; margin: 0 auto; }
.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.contact-btn__ico {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.contact-btn__ico svg { width: 16px; height: 16px; }
.contact-btn:nth-child(2) .contact-btn__ico { background: var(--blue); }
.contact-btn:nth-child(3) .contact-btn__ico { background: linear-gradient(135deg, #6a4bd8, #d444bb); }
.contact-btn:nth-child(4) .contact-btn__ico { background: var(--orange); }

/* ---------- подвал ---------- */

.site-footer {
  background: var(--ink-3);
  color: #c8c2e2;
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr .7fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 4px 8px;
}
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.6; color: #9992bd; max-width: 300px; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: #b2abd1; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #7e779f;
}
.footer-bottom .demo-note { max-width: 640px; }
.footer-bottom .demo-note b { color: #b2abd1; font-weight: 500; }

/* ---------- заголовок внутренней страницы ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 58px) 0 clamp(30px, 4vw, 46px);
  background: linear-gradient(180deg, #f6f2ff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  right: -160px; top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 68, 187, .18), transparent 65%);
}
.page-head::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  left: -180px; bottom: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 58, 214, .16), transparent 65%);
}
.page-head .shell { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb svg { width: 12px; height: 12px; opacity: .5; }
.breadcrumb span { color: var(--ink); }

.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.page-head__lead { margin-top: 12px; max-width: 620px; color: var(--muted); font-size: 15px; }
.head-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.meta-pill svg { width: 14px; height: 14px; color: var(--violet); }
.meta-pill--accent { background: #fff4e7; border-color: #f6dcc0; color: #85502a; }
.meta-pill--accent svg { color: var(--orange); }

.head-stat {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.head-stat__item b {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.head-stat__item span { font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.head-stat__sep { width: 1px; height: 34px; background: var(--line); }

/* ---------- рейтинг: раскладка ---------- */

.rating-section { padding: 28px 0 96px; }
.rating-content { min-width: 0; }
.rating-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.filters__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.filters__head b { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; }
.filters__head b svg { width: 16px; height: 16px; color: var(--violet); }
.filters__reset {
  font-size: 11.5px;
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.filters__reset:hover { color: var(--magenta); }
#filtersClose { display: none; }

.filter-block { border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: 0; }
.filter-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.filter-block > summary::-webkit-details-marker { display: none; }
.filter-block > summary svg { width: 14px; height: 14px; color: var(--muted-2); transition: transform .25s var(--ease); }
.filter-block[open] > summary svg { transform: rotate(180deg); }
.filter-block__body { padding: 0 20px 18px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f7f5fb;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  color: #575273;
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { background: #f0ecfa; color: var(--ink); }
.chip.is-on {
  background: #f0ebff;
  border-color: #d5c8ff;
  color: var(--violet);
}
.chip.is-on::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--violet);
}
.chip--subject { padding: 6px 9px; }
.chip__count { font-size: 10px; color: var(--muted-2); }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f5f2fa;
}
.seg button {
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: #575273;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: #e3dff0;
  transition: background .25s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--violet); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }

.range-row { margin-top: 6px; }
.range-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.range-label b { font-family: var(--display); font-size: 14px; color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet) 0%, var(--magenta) var(--fill, 50%), #eae5f4 var(--fill, 50%), #eae5f4 100%);
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 4px;
  background: #eae5f4;
}
input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet);
  box-shadow: 0 1px 6px rgba(72, 58, 214, .35);
  transition: transform .15s;
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--violet);
  box-shadow: 0 1px 6px rgba(72, 58, 214, .35);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }

.weight-row {
  display: grid;
  grid-template-columns: minmax(62px, 78px) minmax(0, 1fr) 34px 25px;
  grid-template-areas: "name slider val toggle";
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #f0ecf8;
}
.weight-row:last-child { border-bottom: 0; }
.weight-row__top, .weight-row__ctrl { display: contents; }
.weight-row__name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  color: #575273;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weight-row__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.weight-toggle {
  position: relative;
  grid-area: toggle;
  width: 25px;
  height: 14px;
  border-radius: 999px;
  background: #ded8ec;
  transition: background .2s;
  flex: none;
}
.weight-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .2s var(--ease);
}
.weight-toggle[aria-checked="true"] { background: var(--violet); }
.weight-toggle[aria-checked="true"]::after { transform: translateX(11px); }
.weight-row__val {
  grid-area: val;
  min-width: 0;
  padding: 0;
  text-align: right;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.weight-row .range-row { grid-area: slider; margin-top: 0; }
.weight-row .range-row input[type="range"] { margin: 0; }
.weight-row.is-off .weight-row__name { opacity: .5; }
.weight-row.is-off .range-row { opacity: .4; }
.sum-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}
.sum-note b { color: var(--ink); font-weight: 600; }
.sum-bar {
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: #eeeaf7;
  overflow: hidden;
}
.sum-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .25s var(--ease); }

.filters__apply { padding: 16px 20px 20px; }
.filters__apply .btn { width: 100%; }

/* ---------- карта ---------- */

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-xs);
  margin-bottom: 18px;
}
.map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.map-card__title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; }
.map-card__title svg { width: 17px; height: 17px; color: var(--violet); }
.map-card__legend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-2); }
.legend-scale { width: 84px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, #84a6e7, #6a4bd8, #d444bb, #e3793d); }

.map {
  position: relative;
  height: 430px;
  background:
    radial-gradient(80% 90% at 50% 45%, #fbfaff 0%, #f3f0fb 55%, #ece7f8 100%);
  overflow: hidden;
}
.map__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__ring { fill: none; stroke: #ded7f0; stroke-width: 1; }
.map__ring--main { stroke-dasharray: 3 5; }
.map__river { fill: none; stroke: #c8dcf8; stroke-width: 9; stroke-linecap: round; opacity: .8; }
.map__district {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  color: #b4accb;
  pointer-events: none;
  text-transform: uppercase;
}
.map__markers { position: absolute; inset: 0; }
.map-marker {
  position: absolute;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--dot, var(--violet));
  box-shadow: 0 3px 10px rgba(25, 22, 54, .28);
  transition: transform .2s var(--ease), box-shadow .2s;
  z-index: 2;
}
.map-marker::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--dot, var(--violet));
  opacity: 0;
  transition: opacity .2s;
}
.map-marker:hover, .map-marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(25, 22, 54, .35);
}
.map-marker:hover::after, .map-marker:focus-visible::after { opacity: .45; }
.map-marker.is-active { z-index: 6; transform: translate(-50%, -50%) scale(1.35); }
.map-marker.is-active::after { opacity: .9; inset: -7px; border-width: 2px; }
.map-marker__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.map-marker:hover .map-marker__label,
.map-marker:focus-visible .map-marker__label,
.map-marker.is-active .map-marker__label { opacity: 1; }
.map__tooltip {
  position: absolute;
  z-index: 10;
  width: 230px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, calc(-100% - 16px));
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
}
.map__tooltip.is-on { opacity: 1; pointer-events: auto; }
.map__tooltip b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.map__tooltip small { display: block; font-size: 10.5px; color: var(--muted-2); }
.map__tooltip__score {
  display: flex; align-items: baseline; gap: 4px;
  margin: 8px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.map__tooltip__score span { font-family: var(--font); font-size: 10px; color: var(--muted-2); font-weight: 400; }
.map__tooltip .map-tip-bar { height: 4px; border-radius: 3px; background: #eeeaf7; overflow: hidden; }
.map__tooltip .map-tip-bar i { display: block; height: 100%; background: var(--grad); }
.map__hint {
  position: absolute;
  left: 16px; bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.map__hint svg { width: 13px; height: 13px; color: var(--violet); }

/* ---------- таблица ---------- */

.results-card {
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.results-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.results-toolbar__count { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.results-toolbar__count b { color: var(--ink); }
.toolbar-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.toolbar-select select { border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--ink); outline: none; cursor: pointer; }

.preset-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.preset-row::-webkit-scrollbar { display: none; }
.preset-row > span { flex: none; font-size: 11px; color: var(--muted-2); margin-right: 2px; }
.preset {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f7f5fb;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: #575273;
  transition: all .18s;
}
.preset:hover { background: #f0ecfa; }
.preset.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.table-scroll { overflow-x: auto; max-width: 100%; }
.rating-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.rating-table thead th {
  position: relative;
  padding: 11px 10px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: #fbfafd;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.rating-table thead th:first-child { padding-left: 18px; }
.rating-table thead th:last-child { padding-right: 18px; }
.rating-table th[data-sort] { cursor: pointer; user-select: none; }
.rating-table th[data-sort]:hover { color: var(--ink); }
.rating-table th .sort-ico { display: inline-block; margin-left: 3px; opacity: .35; font-size: 9px; vertical-align: 1px; }
.rating-table th.is-sorted .sort-ico { opacity: 1; color: var(--violet); }
.rating-table tbody tr {
  border-bottom: 1px solid #f2eff8;
  transition: background .18s;
  cursor: pointer;
}
.rating-table tbody tr:last-child { border-bottom: 0; }
.rating-table tbody tr:hover { background: #fbf9ff; }
.rating-table tbody tr.is-compared { background: #f6f1ff; }
.rating-table td { padding: 11px 10px; vertical-align: middle; }
.rating-table td:first-child { padding-left: 18px; }
.rating-table td:last-child { padding-right: 18px; }

.col-rank { width: 64px; }
.rating-table th[data-sort="score"] { width: 76px; }
.rating-table th[data-sort="oge"],
.rating-table th[data-sort="ege"],
.rating-table th[data-sort="muni"],
.rating-table th[data-sort="region"],
.rating-table th[data-sort="extra"],
.rating-table th[data-sort="contingent"] { width: 56px; }
.rating-table .col-okrug { width: 58px; }
.rating-table .col-type { display: none; }
.rating-table th:last-child { width: 84px; }
.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border-radius: 8px;
  background: #f4f1fb;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
}
.rank-badge--1 { background: linear-gradient(135deg, #f6b95e, #e3793d); color: #fff; }
.rank-badge--2 { background: linear-gradient(135deg, #b6a6e8, #6a4bd8); color: #fff; }
.rank-badge--3 { background: linear-gradient(135deg, #e9a6d5, #d444bb); color: #fff; }

.cmp {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: transparent;
  transition: background .18s, border-color .18s, color .18s;
  margin-right: 8px;
  vertical-align: middle;
}
.cmp svg { width: 12px; height: 12px; }
.cmp.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }

.school-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.school-cell__logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  color: var(--violet);
}
.school-cell__body { min-width: 0; }
.school-cell__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.school-cell__name:hover { color: var(--violet); }
.school-cell__sub { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.school-cell__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.badge--private { background: #fdf0e6; color: #a35a1f; }
.badge--selective { background: #f0ebff; color: var(--violet); }
.badge--state { background: #eef4ff; color: var(--blue); }

.score-cell { min-width: 78px; }
.score-cell__num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.score-cell__num span { font-size: 9px; color: var(--muted-2); font-family: var(--font); font-weight: 400; }
.score-bar {
  height: 4px;
  margin-top: 5px;
  border-radius: 3px;
  background: #f0edf7;
  overflow: hidden;
}
.score-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

.dir-cell { width: 64px; }
.dir-cell__val { font-size: 11.5px; font-weight: 600; color: #4b4768; line-height: 1.2; }
.dir-cell__bar { height: 3px; margin-top: 4px; border-radius: 3px; background: #f2eff8; overflow: hidden; }
.dir-cell__bar i { display: block; height: 100%; border-radius: inherit; }
.dir-cell--oge .dir-cell__bar i { background: linear-gradient(90deg, #3949a8, #84a6e7); }
.dir-cell--ege .dir-cell__bar i { background: linear-gradient(90deg, #6a4bd8, #b48cf0); }
.dir-cell--muni .dir-cell__bar i { background: linear-gradient(90deg, #b44bd0, #e56cc1); }
.dir-cell--region .dir-cell__bar i { background: linear-gradient(90deg, #d444bb, #f2a14c); }
.dir-cell--extra .dir-cell__bar i { background: linear-gradient(90deg, #2fa99a, #84a6e7); }
.dir-cell--contingent .dir-cell__bar i { background: linear-gradient(90deg, #483ad6, #d444bb); }

.row-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--violet);
  white-space: nowrap;
}
.row-open svg { width: 13px; height: 13px; transition: transform .2s; }
tr:hover .row-open svg { transform: translateX(2px); }

.empty-state {
  padding: 62px 24px;
  text-align: center;
}
.empty-state svg { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--line-2); }
.empty-state b { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 15px; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state .btn { margin-top: 18px; }

.more-row { padding: 16px 20px; text-align: center; border-top: 1px solid var(--line); }

/* ---------- плавающая панель сравнения ---------- */

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(880px, calc(100% - 32px));
  padding: 12px 14px 12px 20px;
  border-radius: 18px;
  background: rgba(25, 22, 54, .97);
  color: #fff;
  box-shadow: 0 26px 60px -20px rgba(25, 22, 54, .65);
  transform: translate(-50%, 130%);
  transition: transform .35s var(--ease);
  backdrop-filter: blur(12px);
  visibility: hidden;
}
.compare-tray.is-on { transform: translate(-50%, 0); visibility: visible; }
.compare-tray__label { font-size: 12px; color: #b8b1da; white-space: nowrap; }
.compare-tray__items { display: flex; gap: 7px; flex: 1; min-width: 0; overflow: hidden; }
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 170px;
  padding: 6px 8px 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.compare-chip span { overflow: hidden; text-overflow: ellipsis; }
.compare-chip button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.compare-chip button svg { width: 10px; height: 10px; }
.compare-tray__actions { display: flex; gap: 8px; flex: none; }

/* ---------- модальные окна ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 40, .62);
  backdrop-filter: blur(5px);
  animation: fadeIn .22s var(--ease);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 960px;
  max-height: min(90vh, 900px);
  background: var(--paper);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .3s var(--ease);
}
.modal__dialog--narrow { max-width: 660px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-top: 8px; }
.modal__head p { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 600px; }
.modal__close {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal__close svg { width: 17px; height: 17px; }
.modal__body { padding: 26px 30px; overflow-y: auto; }
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 30px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.modal__foot__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px;
  align-items: start;
}
.panel {
  padding: 22px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
}
.panel--soft { background: #fbf9ff; border-color: #ece6fa; }
.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel__title h3 { font-size: 14px; }
.panel__title span { font-size: 10.5px; color: var(--muted-2); }
.panel__note { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); }

.b-weights { display: grid; gap: 4px; }
.b-weight {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.b-weight__name { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #575273; }
.b-weight__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.b-weight__num {
  text-align: right;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.b-sub { display: grid; gap: 4px; }
.b-sub .range-label { font-size: 11.5px; }
.b-sub .range-label b { font-size: 12.5px; }

.formula-box {
  padding: 16px;
  border-radius: 12px;
  background: #191636;
  color: #cdc6ee;
  font-size: 11.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.formula-box b { color: #fff; font-weight: 600; }
.formula-box .f-hl { color: #f2a14c; }
.formula-box .f-hl2 { color: #a9c5ff; }
.formula-box .f-hl3 { color: #e9a6d5; }

.preview-list { display: grid; gap: 6px; }
.preview-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #eee9f7;
  font-size: 12px;
}
.preview-row:last-child { border-bottom: 0; }
.preview-row__n { font-family: var(--display); font-size: 10px; color: var(--muted-2); }
.preview-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-row__score { font-family: var(--display); font-size: 11.5px; font-weight: 600; }

/* сравнение */
.compare-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.compare-table th, .compare-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  font-size: 12px;
}
.compare-table tbody th {
  width: 168px;
  font-weight: 600;
  color: var(--muted);
  font-size: 11.5px;
  background: #fbfafd;
}
.compare-table td { font-weight: 500; }
.compare-school {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}
.compare-school .school-cell__logo { width: 30px; height: 30px; font-size: 10px; }
.compare-school b { display: block; font-size: 12px; line-height: 1.3; }
.compare-school small { display: block; font-size: 10px; color: var(--muted-2); }
.compare-table .score-big { font-family: var(--display); font-size: 18px; font-weight: 600; }
.compare-table .best { color: var(--violet); }
.compare-empty { padding: 40px; text-align: center; color: var(--muted); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 140;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* autocomplete */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  max-height: 300px;
  overflow-y: auto;
}
.suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  text-align: left;
  transition: background .15s;
}
.suggest__item:hover, .suggest__item.is-active { background: #f7f3ff; }
.suggest__item b { display: block; font-size: 12.5px; }
.suggest__item small { display: block; font-size: 10.5px; color: var(--muted-2); }
.suggest__item .mini-score { margin-left: auto; font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--violet); }
.suggest__empty { padding: 14px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- страница школы ---------- */

.school-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px) 0 clamp(30px, 4vw, 44px);
  background: linear-gradient(180deg, #f7f3ff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.school-hero::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -200px; top: -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 68, 187, .16), transparent 65%);
}
.school-hero .shell { position: relative; z-index: 1; }
.school-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.school-hero__main { max-width: 760px; }
.school-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 6px 0 14px; }
.school-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.tag svg { width: 13px; height: 13px; color: var(--violet); }
.tag--private { background: #fdf0e6; border-color: #f6dcc0; color: #8a4f1c; }
.tag--private svg { color: var(--orange); }
.school-hero__desc { max-width: 620px; color: var(--muted); font-size: 14.5px; }

.score-hero {
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ring {
  --v: 80;
  position: relative;
  display: grid;
  place-items: center;
  width: 104px; height: 104px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from -90deg, #483ad6 0%, #d444bb calc(var(--v) * .65%), #e3793d calc(var(--v) * 1%), #ece7f5 0);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
}
.ring__body { position: relative; text-align: center; }
.ring__body b {
  display: block;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
}
.ring__body small { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.score-hero__meta b { display: block; font-family: var(--display); font-size: 13px; }
.score-hero__meta span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

.school-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
  padding: 30px 0 96px;
}
.panel { box-shadow: none; }
.panel--card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.panel--card + .panel--card { margin-top: 18px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.panel-head p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.dir-bars { display: grid; gap: 15px; }
.dir-bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.dir-bar__name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.dir-bar__name i { width: 7px; height: 7px; border-radius: 50%; }
.dir-bar__num { font-family: var(--display); font-size: 12.5px; font-weight: 600; }
.dir-bar__track { height: 7px; border-radius: 4px; background: #f1eef8; overflow: hidden; }
.dir-bar__track i { display: block; height: 100%; border-radius: inherit; }
.dir-bar__note { margin-top: 4px; font-size: 10.5px; color: var(--muted-2); }

.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.subject-item__top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 4px; }
.subject-item__top b { font-size: 11.5px; font-weight: 500; }
.subject-item__top span { color: var(--muted); font-weight: 600; font-size: 11px; }
.subject-item__track { height: 5px; border-radius: 3px; background: #f1eef8; overflow: hidden; }
.subject-item__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3949a8, #d444bb); }

.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.trend-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--grad); }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info-item { padding: 13px 14px; border-radius: 12px; background: #fbf9ff; border: 1px solid #f0ebfa; }
.info-item small { display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 3px; }
.info-item b { font-size: 12.5px; font-weight: 600; }
.info-item--wide { grid-column: span 2; }
.info-note {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid #f6e2c9;
  font-size: 11px;
  line-height: 1.5;
  color: #7e5529;
}
.info-note svg { width: 15px; height: 15px; flex: none; color: var(--orange); margin-top: 1px; }

.side-card { position: sticky; top: calc(var(--header-h) + 16px); }
.side-card .panel--card + .panel--card { margin-top: 14px; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-stat { padding: 12px; border-radius: 11px; background: #fbf9ff; border: 1px solid #f0ebfa; }
.side-stat b { display: block; font-family: var(--display); font-size: 15px; font-weight: 600; }
.side-stat span { font-size: 10.5px; color: var(--muted-2); }
.contact-list { display: grid; gap: 11px; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; }
.contact-line svg { width: 15px; height: 15px; color: var(--violet); flex: none; margin-top: 2px; }
.contact-line small { display: block; font-size: 10.5px; color: var(--muted-2); }
.contact-line a { color: var(--ink); font-weight: 500; }
.contact-line a:hover { color: var(--violet); }
.mini-map {
  position: relative;
  height: 120px;
  margin: 14px 0 4px;
  border-radius: 12px;
  background: radial-gradient(80% 90% at 50% 40%, #fbfaff, #f0ecf8);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map__dot {
  position: absolute;
  width: 16px; height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--magenta);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(212, 68, 187, .15);
}
.similar-list { display: grid; gap: 4px; }
.similar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px dashed #f0ecf8;
  font-size: 12px;
}
.similar-item:last-child { border-bottom: 0; }
.similar-item .school-cell__logo { width: 28px; height: 28px; font-size: 9px; }
.similar-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar-item b { font-family: var(--display); font-size: 11px; color: var(--violet); }

/* ---------- страница направления ---------- */

.dir-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #14113a;
  padding: clamp(36px, 5vw, 64px) 0 clamp(34px, 4.5vw, 54px);
}
.dir-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 8% 12%, rgba(72, 58, 214, .55), transparent 60%),
    radial-gradient(50% 80% at 88% 85%, rgba(212, 68, 187, .3), transparent 62%),
    radial-gradient(45% 70% at 70% 0%, rgba(227, 121, 61, .18), transparent 65%);
}
.dir-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 50%;
  width: 300px; height: 300px;
  transform: translateY(-50%);
  border: 46px solid rgba(255, 255, 255, .04);
  border-radius: 50%;
}
.dir-hero .shell { position: relative; z-index: 1; }
.dir-hero .breadcrumb { color: #938cc0; }
.dir-hero .breadcrumb a { color: #b9b2df; }
.dir-hero .breadcrumb span { color: #fff; }
.dir-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.dir-hero h1 { margin: 14px 0 16px; font-size: clamp(2rem, 3.6vw, 3.3rem); }
.dir-hero p { color: #cfc9ec; max-width: 600px; }
.dir-hero__meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.dir-hero .meta-pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #cfc9ec; }
.dir-hero .meta-pill svg { color: #ffb27a; }
.dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #e7e2ff;
}
.dir-hero__card {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
}
.dir-hero__card__label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #b9b2df; }
.dir-hero__card__score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 8px 0 14px;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.dir-hero__card__score span { font-family: var(--font); font-size: 12px; color: #b9b2df; letter-spacing: 0; }
.dir-hero__card__bars { display: grid; gap: 8px; }
.dir-hero__bar { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #c7c0e8; }
.dir-hero__bar span { width: 118px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-hero__bar__track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.dir-hero__bar__track i { display: block; height: 100%; background: linear-gradient(90deg, #84a6e7, #d444bb, #f2a14c); }

.dir-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 0 96px;
}
.dir-nav {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 10px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.dir-nav__title { padding: 8px 10px 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.dir-nav a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  color: #575273;
  transition: background .18s, color .18s;
}
.dir-nav a:hover { background: #f8f5ff; color: var(--ink); }
.dir-nav a.is-active { background: var(--ink); color: #fff; }
.dir-nav a.is-active .dir-nav__num { background: rgba(255, 255, 255, .16); color: #fff; }
.dir-nav__num {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #f3f0fb;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}
.dir-nav a small { font-size: 9.5px; color: var(--muted-2); }
.dir-nav a.is-active small { color: #b9b2df; }

.dir-main { display: grid; gap: 18px; }

.lab-card {
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.lab-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fdfcff);
  flex-wrap: wrap;
}
.lab-card__head h2 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.lab-card__head p { margin-top: 5px; font-size: 12.5px; color: var(--muted); max-width: 520px; }
.lab-card__body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; }
.lab-sliders { padding: 22px 24px; border-right: 1px solid var(--line); }
.lab-preview { padding: 22px 24px; background: #fcfaff; }
.lab-slider { margin-bottom: 18px; }
.lab-slider:last-child { margin-bottom: 0; }
.lab-slider__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lab-slider__name { font-size: 12.5px; font-weight: 500; }
.lab-slider__hint { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); line-height: 1.4; }
.lab-slider__val {
  flex: none;
  min-width: 44px;
  padding: 4px 5px;
  border-radius: 6px;
  background: #f2eefc;
  text-align: center;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--violet);
}
.lab-slider.is-off { opacity: .45; }
.lab-slider.is-off .range-row { pointer-events: none; }
.lab-toggle {
  position: relative;
  width: 30px; height: 17px;
  flex: none;
  border-radius: 999px;
  background: #ded8ec;
  transition: background .2s;
}
.lab-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}
.lab-toggle[aria-checked="true"] { background: var(--violet); }
.lab-toggle[aria-checked="true"]::after { transform: translateX(13px); }
.lab-top { display: grid; gap: 3px; }
.lab-top__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #f0ecf8;
  font-size: 11.5px;
}
.lab-top__row:last-child { border-bottom: 0; }
.lab-top__n { font-family: var(--display); font-size: 9.5px; color: var(--muted-2); }
.lab-top__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-top__score { font-family: var(--display); font-size: 10.5px; font-weight: 600; color: var(--violet); }
.lab-scorebox {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lab-scorebox b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.lab-scorebox span { font-size: 10.5px; color: var(--muted-2); }

.dir-table-wrap { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-xs); }
.dir-table-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dir-table-head h2 { font-size: 1.2rem; }
.dir-table-head span { font-size: 11.5px; color: var(--muted); }
.dir-school-row {
  display: grid;
  grid-template-columns: 34px 36px minmax(0, 1fr) 126px 76px;
  gap: 12px;
  align-items: center;
  padding: 11px 24px;
  border-bottom: 1px solid #f3f0f9;
  transition: background .18s;
}
.dir-school-row:last-child { border-bottom: 0; }
.dir-school-row:hover { background: #fbf9ff; }
.dir-school-row__rank { font-family: var(--display); font-size: 11px; color: var(--muted-2); text-align: center; }
.dir-school-row__logo { width: 32px; height: 32px; }
.dir-school-row__name { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-school-row__name small { display: block; font-size: 10px; color: var(--muted-2); font-weight: 400; }
.dir-school-row__bar { height: 5px; border-radius: 3px; background: #f1eef8; overflow: hidden; }
.dir-school-row__bar i { display: block; height: 100%; background: var(--grad); }
.dir-school-row__score { text-align: right; font-family: var(--display); font-size: 12px; font-weight: 600; }

.dist-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 10px 4px 0; }
.dist-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.dist-col__bar {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #d444bb, #6a4bd8);
  min-height: 4px;
  transition: height .4s var(--ease);
  position: relative;
}
.dist-col__bar span {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 9px;
  color: var(--muted);
}
.dist-col small { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }

.method-note {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: #f7f4ff;
  border: 1px solid #e8e1fb;
  font-size: 12.5px;
  line-height: 1.6;
  color: #575273;
}
.method-note svg { width: 20px; height: 20px; color: var(--violet); flex: none; margin-top: 2px; }
.method-note b { color: var(--ink); }

/* ---------- о проекте ---------- */

.about-hero {
  padding: clamp(36px, 5vw, 62px) 0;
  background: linear-gradient(180deg, #f6f2ff, var(--paper));
  border-bottom: 1px solid var(--line);
}
.about-hero h1 { margin: 16px 0 14px; }
.about-hero p { max-width: 640px; color: var(--muted); }

.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.method-card {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.method-card__n {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--magenta);
}
.method-card h3 { margin: 12px 0 8px; font-size: 16px; }
.method-card p { font-size: 13px; color: var(--muted); }

.formula-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.formula-panel h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.formula-panel p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.formula-panel .formula-box { font-size: 12px; }

.faq { display: grid; gap: 10px; }
.faq details {
  padding: 0 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 15px; height: 15px; color: var(--muted-2); transition: transform .25s; flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; font-size: 13px; color: var(--muted); max-width: 760px; }

.author-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
}
.author-card img { width: 100%; border-radius: 18px; aspect-ratio: 4/4.4; object-fit: cover; object-position: center 28%; }
.author-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.author-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.author-card .about-stats { margin-top: 18px; }

/* ---------- анимации появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1120px) {
  .nav { gap: 0; margin-left: 4px; }
  .nav__link { padding: 9px 10px; font-size: 13.5px; }
  .header-actions .btn--ghost { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-copy { max-width: 760px; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
  .rating-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .dir-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .school-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions .btn--primary { display: none; }
  .rating-layout { grid-template-columns: minmax(0, 1fr); }
  .rating-table { min-width: 100%; }
  .rating-table .col-okrug { display: none; }
  .rating-table th[data-sort="extra"],
  .rating-table th[data-sort="contingent"],
  .rating-table td.dir-cell--extra,
  .rating-table td.dir-cell--contingent { display: none; }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 90;
    max-height: none;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    padding-top: 0;
  }
  .filters.is-open { transform: none; }
  #filtersClose { display: inline-flex; }
  .filters__head { padding: 16px 20px; }
  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(15, 12, 40, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .filter-backdrop.is-on { opacity: 1; pointer-events: auto; }
  .mobile-filter-bar { display: flex !important; }
  .lab-card__body { grid-template-columns: 1fr; }
  .lab-sliders { border-right: 0; border-bottom: 1px solid var(--line); }
  .dir-hero__grid { grid-template-columns: 1fr; }
  .dir-hero__card { max-width: 460px; }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-nav {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }
  .dir-nav::-webkit-scrollbar { display: none; }
  .dir-nav__title { display: none; }
  .dir-nav a { flex: none; grid-template-columns: 22px auto; }
  .dir-nav a small { display: none; }
  .school-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .builder-band { grid-template-columns: 1fr; }
  .formula-panel { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .modal__dialog { max-height: 94vh; }
  .builder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; }
  .brand img { height: 38px; }
  .hero-inner { padding-top: 40px; }
  .hero-points { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding-top: 22px; }
  .hero-search { max-width: none; }
  .hero-actions .btn { flex: 1; min-width: 160px; }
  .hero h1 { font-size: clamp(1.95rem, 8vw, 2.6rem); }
  .dir-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .update-link--wide { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: span 2; }
  .footer-col:last-child { display: block; }
  .footer-bottom { flex-direction: column; }
  .page-head__row { align-items: flex-start; }
  .head-stat { width: 100%; justify-content: space-between; gap: 12px; }
  .head-stat__sep { display: none; }
  .results-toolbar { padding: 12px 14px; }
  .results-toolbar__count { flex: 1 1 100%; margin-right: 0; }
  .results-toolbar > .btn--primary { display: none; }
  .toolbar-select { flex: 1; }
  .toolbar-search { flex: 1; }
  .toolbar-search input { width: 100% !important; }
  .preset-row { padding: 10px 14px; }
  .rating-table th, .rating-table td { padding-inline: 8px; }
  .rating-table thead th:first-child, .rating-table td:first-child { padding-left: 14px; }
  .rating-table thead th:last-child, .rating-table td:last-child { padding-right: 14px; }
  .school-cell__name { max-width: 180px; }
  .col-okrug, .col-type { display: none; }
  .map { height: 360px; }
  .map-card__head { padding: 12px 14px; }
  .map__hint { display: none; }
  .compare-tray { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .compare-tray__label { display: none; }
  .compare-tray__items { flex-basis: 100%; }
  .compare-tray__actions { width: 100%; }
  .compare-tray__actions .btn { flex: 1; }
  .modal { padding: 12px; align-items: flex-end; }
  .modal__dialog { max-height: 92vh; border-radius: 22px 22px 0 0; }
  .modal__head, .modal__body, .modal__foot { padding-inline: 18px; }
  .modal__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 12px; }
  .modal__foot__actions { width: 100%; }
  .modal__foot__actions .btn { flex: 1; }
  .modal__foot [data-builder-link-rating] { display: none; }
  .dir-school-row { grid-template-columns: 26px 32px minmax(0, 1fr) 70px; padding: 10px 16px; }
  .dir-school-row__bar { display: none; }
  .dir-school-row__name small { display: none; }
  .subject-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .info-item--wide { grid-column: auto; }
  .author-card { grid-template-columns: 1fr; }
  .author-card img { max-width: 240px; }
  .about-photo { max-width: 360px; }
  .about-photo::before { inset: 12px -12px -12px 12px; }
  .about-badge { right: -6px; bottom: 14px; }
  .updates { border-radius: 24px; }
  .school-hero__row { flex-direction: column; }
  .score-hero { width: 100%; }
  .lab-card__body { grid-template-columns: 1fr; }
  .b-weight { grid-template-columns: 96px minmax(0, 1fr) 38px; gap: 8px; }
  .dir-hero__card { display: none; }
  .dir-hero__grid { grid-template-columns: 1fr; }
  .compare-table { min-width: 640px; }
  .compare-wrap { overflow-x: auto; }
}

@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; width: 100%; }
  .hero-search { flex-wrap: wrap; padding: 10px; gap: 6px; }
  .hero-search input { flex-basis:100%; padding: 6px 8px; }
  .hero-search svg { display: none; }
  .hero-search .btn { width: 100%; }
  .section-head { gap: 16px; }
  .dir-card { min-height: 210px; }
  .filters__apply { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
  .rating-table { min-width: 100%; table-layout: fixed; }
  .rating-table th:last-child,
  .rating-table td:last-child { display: none; }
  .rating-table td:first-child,
  .rating-table .col-rank { width: 58px; }
  .rating-table th[data-sort="score"],
  .rating-table .score-cell { width: 66px; }
  .rating-table th[data-sort="name"] { width: auto; }
  .rating-table th[data-sort="oge"],
  .rating-table th[data-sort="ege"],
  .rating-table th[data-sort="muni"],
  .rating-table th[data-sort="region"],
  .rating-table th[data-sort="extra"],
  .rating-table th[data-sort="contingent"],
  .rating-table td.dir-cell { display: none; }
  .school-cell__name { max-width: 140px; }
  .col-rank { width: 50px; }
  .dir-school-row { grid-template-columns: 24px minmax(0, 1fr) 60px; }
  .dir-school-row__logo { display: none; }
  .school-hero h1 { font-size: 1.7rem; }
  .score-hero { flex-direction: row; }
  .about-stats { gap: 18px; }
  .contact-row { gap: 8px; }
  .contact-btn { padding-right: 14px; font-size: 12.5px; }
  .head-stat { flex-wrap: wrap; }
}
