
.ps-mods { padding: 8px 0 56px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--paper, #f6f4ef) 100%); }
.ps-mods > .wrap > :first-child { margin-top: 40px; }
.ft, .xl, .ps-mod { margin-top: 48px; }
.ft-h { margin: 0 0 18px; font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ft-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: 100%; min-height: 76px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .2s cubic-bezier(.16, 1, .3, 1), transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s cubic-bezier(.16, 1, .3, 1); }
.ft-tile:hover, .ft-tile:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(20, 20, 40, .35); }
.ft-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ft-name { font: 600 15px/1.3 var(--sans); overflow-wrap: break-word; }
.ft-n { font: 400 13px var(--sans); color: var(--muted); }
/* IA 19.10 W1 (Vlad, item 1): flags of the countries, hub illustrations where they exist, levels on a dark ground */
.ft-name { display: flex; align-items: center; gap: 8px; }
.ft-flag { flex: none; width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(18, 20, 26, .08); }
.ft-grid--art { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ft-tile--art { justify-content: flex-start; padding: 0 0 14px; overflow: hidden; }
.ft-tile--art .ft-name, .ft-tile--art .ft-n { padding: 0 16px; }
.ft-art { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 6px; overflow: hidden; background: var(--paper, #f6f4ef); }
.ft-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.ft-art .ft-art-flag { width: 64px; height: 48px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(18, 20, 26, .08), 0 8px 20px -10px rgba(18, 20, 26, .35); }
.ft-tile--art:hover .ft-art img:not(.ft-art-flag) { transform: scale(1.04); }
/* W15 №1 (AU, PL, RU, CH have no hub illustration yet): the flag frame carries the «Меридианы» motif of the hub, not a bare field */
.ft-art--flag { position: relative; isolation: isolate; }
.ft-art--flag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: .1;
  -webkit-mask: url("/images/v3/orn/abroad-meridiany.svg") 0 0 / 56px 56px repeat; mask: url("/images/v3/orn/abroad-meridiany.svg") 0 0 / 56px 56px repeat; }
.ft--dark { padding: clamp(22px, 3vw, 36px); border-radius: var(--r, 20px); background: var(--ink); color: #fff; }
.ft--dark .ft-h { color: #fff; }
.ft--dark .ft-tile { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; }
.ft--dark .ft-tile:hover, .ft--dark .ft-tile:focus-visible { border-color: var(--lime, #d4f53c); background: rgba(255, 255, 255, .1); box-shadow: none; }
.ft--dark .ft-tile:focus-visible { outline-color: var(--lime, #d4f53c); }
.ft--dark .ft-n { color: rgba(255, 255, 255, .72); }
.ft--dark .ft-all { color: var(--lime, #d4f53c); }
.ft-all { display: inline-block; margin-top: 16px; font: 600 15px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.xl-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.xl-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font: 500 15px var(--sans); text-decoration: none; transition: border-color .15s, color .15s; }
.xl-list a:hover, .xl-list a:focus-visible { border-color: var(--accent); color: var(--accent); }
.ps-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r, 20px); background: var(--accent-soft, #eef1fb); }
.ps-help h2 { margin: 0 0 6px; font: 400 clamp(22px, 2.2vw, 28px)/1.2 var(--serif); letter-spacing: -.02em; }
.ps-help p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--text); }
/* W2 19.10 №92: the slice text is x-v3.seo-text (720px reading column, «Читать дальше»), its first paragraph starts flush */
.ps-seo { max-width: 720px; }
.ps-seo .v3-seo-body > :first-child > :first-child, .ps-seo .v3-seo-body > p:first-child { margin-top: 0; }
/* W7 №83: the facts of a written slice text */
.ps-facts ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.6; }
/* slice blocks of the old page under the results (programs slices): editor links, popular universities, AI Academy */
.pc-admin { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.pc-admin a { color: var(--muted); text-decoration: underline; }
@media (min-width: 761px) { .ps-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps-minis .ec--mini .ec-title { -webkit-line-clamp: 2; }
.pc-ai { padding: clamp(24px, 4vw, 40px); border-radius: var(--r, 20px); background: var(--accent-soft, #eef1fb); }
.pc-ai p { max-width: 760px; margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.pc-ai ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.pc-ai a { font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .ps-mods { padding-bottom: 88px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ft-tile { min-height: 68px; padding: 12px; }
  .xl-list a { font-size: 14px; }
  .ft-grid--art { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ft-tile--art { padding-bottom: 12px; }
  .ft-tile--art .ft-name, .ft-tile--art .ft-n { padding: 0 12px; }
  /* W15 (audit 21.10): at 390 the flag beside the name left ~120px, «Великобритания» broke mid-word; the flag goes above */
  .ft-name { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ft--dark { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ft-tile, .ft-art img { transition: none; } .ft-tile:hover, .ft-tile--art:hover .ft-art img { transform: none; } }
