/* Research decision: scoped to the school, services and editorial directories only. */
html.ru-standalone-refinement {
  --ru-refine-ink:#172842;
  --ru-refine-blue:#2459D8;
  --ru-refine-line:#d3ddec;
  --ru-refine-card:#fff;
  --ru-refine-muted:#536783;
  --ru-news-window:658px;
  --ru-news-row:188px;
}
/* The existing school canvas is the reference; remove duplicated inner gutters. */
@media(min-width:1100px){
  html.visitor-v2.ru-standalone-refinement.visitor-services main.page.directory-page-shell,
  html.visitor-v2.ru-standalone-refinement.visitor-news .directory-page-shell {
    padding-inline:0!important;
  }
}
html.visitor-v2.ru-standalone-refinement.visitor-news .directory-page-shell {
  padding-top:56px!important;
  padding-bottom:64px!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news .directory-hero {
  box-sizing:border-box;
  height:350px!important;min-height:350px!important;max-height:350px!important;
  padding:48px clamp(30px,5vw,75px)!important;
  margin-bottom:42px!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news .directory-hero__title-stack {min-height:128.2px;}
html.visitor-v2.ru-standalone-refinement.visitor-news .ru-line-art {width:min(44%,570px);max-height:94%;}
/* Continuous matrices: the frame and the one-pixel separators remain visible. */
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-grid,
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards {
  gap:1px!important;
  padding:0!important;
  border:1px solid var(--ru-refine-line)!important;
  border-radius:0!important;

  overflow:visible!important;
  isolation:isolate;
}
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-grid {background:transparent!important;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards {background:var(--ru-refine-line)!important;}
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card {
  border:0!important;border-radius:0!important;outline:1px solid var(--ru-refine-line);
  background:var(--ru-refine-card)!important;
  box-shadow:none!important;
  transform:none!important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,background-color .18s ease!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-grid>.placeholder {
  grid-column:1/-1;padding:28px;background:var(--ru-refine-card);color:var(--ru-refine-muted);
}
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-logo img,
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card:hover .school-logo img,
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card:focus-visible .school-logo img {
  transform:none!important;object-fit:contain!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card:focus-visible {
  z-index:3;outline:2px solid var(--ru-refine-blue)!important;outline-offset:-2px;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card,
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card {
  position:relative;box-sizing:border-box;min-width:0;min-height:216px!important;
  height:auto!important;padding:24px!important;border:0!important;border-radius:0!important;
  display:flex;flex-direction:column;align-items:stretch;
  background:var(--ru-refine-card)!important;color:var(--ru-refine-ink)!important;
  overflow:visible!important;opacity:1!important;transform:none!important;
  box-shadow:none!important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),box-shadow .24s ease,background-color .18s ease,color .18s ease!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card .service-card__top {
  min-height:44px;align-items:center;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card .service-icon {width:44px!important;height:44px!important;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card h3 {
  position:static!important;inset:auto!important;height:auto!important;max-height:none!important;
  margin:20px 0 8px!important;overflow:visible!important;clip-path:none!important;
  font-size:26px!important;line-height:1.35!important;color:var(--ru-refine-ink)!important;
  transform:none!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card p {
  position:static!important;inset:auto!important;height:auto!important;max-height:none!important;
  max-width:32ch;margin:0!important;overflow:visible!important;clip-path:none!important;
  color:var(--ru-refine-muted)!important;font-size:14px!important;line-height:1.7!important;
  transform:none!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .selected-mark {position:absolute;right:24px;top:48px;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child {
  grid-column:1/-1;min-height:136px!important;
  display:grid;grid-template-columns:44px minmax(180px,.6fr) minmax(0,1fr);gap:24px;align-items:center;
  padding-right:76px!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child h3 {margin:0!important;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child p {max-width:none;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card.is-selected,
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card.is-selected {
  background:var(--ru-refine-blue)!important;color:#fff!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card.is-selected :is(h3,p),
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card.is-selected::before {color:#fff!important;}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:focus-visible {
  z-index:3;outline:2px solid var(--ru-refine-blue)!important;outline-offset:-2px;
}
@media(hover:hover) and (pointer:fine){
  html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card:is(:hover,:focus-visible),
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:is(:hover,:focus-visible),
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:is(:hover,:focus-visible) {
    z-index:3;transform:translateY(-6px)!important;
    box-shadow:0 12px 26px #17284222!important;
  }
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:hover,
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:hover {background:var(--ru-refine-blue)!important;color:#fff!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:hover :is(h3,p),
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:hover::before {color:#fff!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:hover .service-icon {background:#ffffff24!important;color:#fff!important;}
}
/* A finite editorial workspace, with normal scroll chaining at both pane edges. */
html.visitor-v2.ru-standalone-refinement.visitor-news,
html.visitor-v2.ru-standalone-refinement.visitor-news body {height:auto;min-height:100vh;overflow-y:auto!important;}
html.visitor-v2.ru-standalone-refinement.visitor-news main.page {height:auto!important;min-height:0!important;overflow:visible!important;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid:not(.news-feed--empty) {
  height:660px!important;min-height:0!important;max-height:660px!important;
  align-items:start;border-radius:0!important;overflow:visible!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature {
  display:flex;flex-direction:column;min-width:0;min-height:0!important;
  height:var(--ru-news-window)!important;max-height:var(--ru-news-window)!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:auto!important;
  scrollbar-gutter:stable;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature__story {
  box-sizing:border-box;flex:0 0 var(--ru-news-row)!important;
  height:var(--ru-news-row)!important;min-height:var(--ru-news-row)!important;max-height:var(--ru-news-row)!important;
  padding:20px 28px!important;overflow:hidden;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature h2 {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  margin:7px 0 0!important;white-space:normal!important;overflow:hidden!important;
  font-size:clamp(21px,1.7vw,26px)!important;line-height:1.32!important;
  color:var(--ru-refine-ink)!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature__eyebrow {font-size:11px;line-height:1.3;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature p {
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:1;
  margin:7px 0 0!important;max-height:none!important;overflow:hidden!important;
  font-size:13px;line-height:1.6;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature__meta {margin-top:8px;gap:4px 12px;font-size:11px;line-height:1.4;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side {
  min-height:0;height:var(--ru-news-window)!important;max-height:var(--ru-news-window)!important;
  overflow:hidden!important;background:#f5f7fb;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side__list {
  min-height:0;flex:1 1 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:auto;
  scrollbar-width:thin;scrollbar-color:#a9bfde #f4f7fb;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side__item {color:#2459D8;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side__head,
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side__pages {flex:none;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side__pages {margin-top:0;}
html.visitor-v2.ru-standalone-refinement.visitor-news .official-policy-panel {
  height:var(--ru-news-window);overflow:hidden!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news .official-policy-frame {
  height:100%!important;min-height:0!important;max-height:var(--ru-news-window)!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news .editorial-external {border-radius:0!important;box-shadow:none!important;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid :is(.news-feature,.news-side__list):focus-visible {outline:2px solid #2459D8;outline-offset:-2px;}
@media(max-width:900px) and (min-width:701px){
  html.visitor-v2.ru-standalone-refinement.visitor-news .directory-page-shell {padding-top:42px!important;}
}
@media(max-width:760px){
  html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid:not(.news-feed--empty) {height:auto!important;max-height:none!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature {border-right:0;border-bottom:1px solid var(--ru-refine-line);}
  html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-side {height:380px!important;max-height:380px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature__story {padding:18px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature h2 {font-size:20px!important;line-height:1.35!important;}
}
@media(max-width:700px){
  html.visitor-v2.ru-standalone-refinement.visitor-news .directory-page-shell {padding-top:31px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-news .directory-hero {
    height:auto!important;min-height:315px!important;max-height:none!important;padding:40px 23px!important;
  }
  html.visitor-v2.ru-standalone-refinement.visitor-news .directory-hero__title-stack {min-height:130px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-news .ru-line-art {width:68%;right:-14%;opacity:.15;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card,
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card {
    min-height:210px!important;padding:18px!important;
  }
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card .service-card__top {min-height:38px;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card .service-icon {width:38px!important;height:38px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card h3 {margin:18px 0 8px!important;font-size:20px!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card p {max-width:none;font-size:13px!important;line-height:1.7!important;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .selected-mark {right:18px;top:43px;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child {
    min-height:134px!important;grid-template-columns:38px minmax(0,1fr);column-gap:14px;row-gap:6px;padding-right:60px!important;
  }
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child .service-card__top {grid-column:1;grid-row:1/3;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child h3 {grid-column:2;grid-row:1;align-self:end;}
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child p {grid-column:2;grid-row:2;align-self:start;}
}
html.ru-standalone-refinement[data-ru-theme=dark] {--ru-refine-ink:#e4edfb;--ru-refine-card:#142236;--ru-refine-line:#3b4e6b;--ru-refine-muted:#b4c3d8;}
@media(prefers-reduced-motion:reduce){
  html.visitor-v2.ru-standalone-refinement .school-card,
  html.visitor-v2.ru-standalone-refinement .service-card,
  html.visitor-v2.ru-standalone-refinement .service-cards.is-focused .service-card,
  html.visitor-v2.ru-standalone-refinement :is(.school-card,.service-card):is(:hover,:focus-visible) {
    transition:none!important;transform:none!important;
  }
  html.visitor-v2.ru-standalone-refinement .ru-line-art *,
  html.visitor-v2.ru-standalone-refinement .ru-line-art--schools .ru-line-scene {animation:none!important;transition:none!important;transform:none!important;stroke-dashoffset:0!important;}
  html.visitor-v2.ru-standalone-refinement .ru-line-art--schools .ru-line-scene {opacity:0!important;}
  html.visitor-v2.ru-standalone-refinement .ru-line-art--schools .ru-line-scene:first-child {opacity:1!important;}
}
@media(prefers-reduced-motion:reduce){
  html.visitor-v2.ru-standalone-refinement.visitor-schools .school-card:is(:hover,:focus-visible),
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:is(:hover,:focus-visible),
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:is(:hover,:focus-visible) {transform:none!important;transition:none!important;}
}
/* Keep the final full-width service a compact horizontal row in selected states too. */
html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:last-child,
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child {
  display:grid!important;align-items:center!important;min-height:136px!important;padding-right:76px!important;
}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature h2 a {color:var(--ru-refine-ink)!important;}
html.visitor-v2.ru-standalone-refinement.visitor-news #newsGrid .news-feature h2 a:is(:hover,:focus-visible) {color:var(--ru-refine-blue)!important;}
@media(max-width:700px){
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:last-child,
  html.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child {
    min-height:134px!important;padding-right:60px!important;
  }
}
html.visitor-v2.ru-standalone-refinement.visitor-services .service-card p {text-wrap:balance;}


/* Keep the seventh service in one normal grid cell; reserve two future cells. */
:root:root.visitor-v2.ru-standalone-refinement.visitor-services .service-cards .service-card:last-child,
:root:root.visitor-v2.ru-standalone-refinement.visitor-services .service-cards.is-focused .service-card:last-child{grid-column:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;min-height:216px!important;padding:24px!important}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child h3{margin:20px 0 8px!important}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services .service-card:last-child p{max-width:32ch!important}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services .service-cards .service-card-placeholder{background:#fff;min-height:216px;pointer-events:none}

:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards .service-card[data-service-card=academic]{grid-column:auto!important;display:flex!important;flex-direction:column!important;gap:0!important;align-items:stretch!important;min-height:216px!important;padding:24px!important}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards .service-card[data-service-card=academic] h3{margin:20px 0 8px!important}
@media(max-width:700px){:root:root.visitor-services .service-card-placeholder{display:none!important}}
@media(max-width:700px){:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards .service-card[data-service-card=academic]{min-height:210px!important}}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards .service-card:is(:hover,:focus-visible,.is-selected) :is(h3,p){color:#fff!important}
:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards .service-card :is(h3,p){-webkit-text-fill-color:currentColor!important}
@media(max-width:700px){:root:root.visitor-v2.ru-standalone-refinement.visitor-services #serviceCards::after{content:'';background:#fff;min-height:210px}}
