/* ==========================================================================
   Единое окно — СочиГУ
   Вёрстка по макетам Figma (кадр 1440px). Все размеры desktop-версии сняты
   с макета; ниже 1440px значения масштабируются через min(px, vw).
   ========================================================================== */

:root {
  --gutter: max(0px, (100vw - 1440px) / 2); /* поле слева от колонки 1440 на широких экранах */
  --blue: #143fff;
  --blue-card: #1f48ff;
  --blue-soft: #3468ff;
  --blue-icon: #1a44ff;
  --grey: #eaeaea;
  --grey-2: #f2f4f6;
  --ink: #232323;
  --navy: #002146;
  --navy-2: #0a1f33;
  --text: #000;
  --table: #343434;
  --bg-soft: #f9fbff;

  --grad-hero: linear-gradient(180deg, #a0b2ff 0%, #133fff 100%);
  --grad-band: linear-gradient(180deg, #7690ff 0%, #1440ff 100%);
  --grad-card: linear-gradient(180deg, #4769ff 0%, #1440ff 100%);
  --grad-circle: linear-gradient(180deg, #133fff 0%, #4266ff 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-alt: "Onest", var(--font);

  --side: min(90px, 6.25vw);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 10px 30px rgba(20, 40, 120, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip, в отличие от hidden, мобильные браузеры не дают «тянуть» вбок */
}
html { overflow-x: clip; }

/* Без SF Pro (не Apple) подставляется Inter: он ~2% шире, трекинг выравнивает переносы строк с макетом */
.no-sf body { letter-spacing: -0.02em; }

img, svg { display: block; max-width: 100%; }
/* ширина этих картинок меняется по брейкпоинтам — высота должна идти за ней, а не браться из атрибута height */
img[data-leo], .hero__eagle, .file img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffb800; outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: #fff; color: var(--blue); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 576px;
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
}

.hero .wrap { height: 100%; }

.hero__logo {
  position: absolute; left: var(--side); top: 32px; z-index: 3;
  width: 60px;
}
.hero__logo img { width: 100%; height: auto; opacity: .6; transition: opacity .3s ease; }
.hero__logo:hover img { opacity: 1; }

.hero__eagle {
  position: absolute;
  left: calc(50% - 227px);
  top: 31px;
  width: 902px;
  max-width: none;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.hero__body {
  position: absolute; left: min(140px, 9.72vw); top: 192px; z-index: 2;
}

.hero__ministry { width: 258px; height: auto; }

.hero h1, .hero__title {
  margin-top: 28px;
  font-size: 46px;
  font-weight: 700;
  line-height: 54px;
  letter-spacing: 0;
}

.burger {
  position: fixed; z-index: 60;
  top: 21px;
  right: max(calc((100vw - 1440px) / 2 + 93px), min(93px, 6.46vw));
  display: grid; place-items: center;
  width: 78px; height: 78px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(22, 66, 255, 0.5);
  cursor: pointer;
  transition: background-color .3s ease, transform .3s var(--ease-out);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.burger:hover { background: rgba(22, 66, 255, 0.8); }
.burger.is-scrolled { background: var(--blue); box-shadow: 0 8px 24px rgba(20, 63, 255, .3); }

.burger__lines { position: relative; width: 38px; height: 26px; }
.burger__lines i {
  position: absolute; left: 0;
  width: 100%; height: 4px; border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease-out), opacity .2s ease, top .35s var(--ease-out);
}
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 11px; }
.burger__lines i:nth-child(3) { top: 22px; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */

.menu {
  position: fixed; inset: 0; z-index: 50;
  display: grid; align-content: center;
  padding: 110px 24px 48px;
  overflow-y: auto;
  color: #fff;
  background: var(--grad-hero);
  clip-path: circle(0 at calc(100% - 132px) 60px);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 132px) 60px);
  visibility: visible;
  transition: clip-path .7s var(--ease-out), visibility 0s;
}
.menu ul { width: min(640px, 100%); margin: 0 auto; }
.menu li {
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.menu.is-open li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i, 0) * .04s); }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  font-size: clamp(22px, 3vw, 34px); font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.menu a::after {
  content: ""; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff url("../assets/window/icons/arrow-sm.svg") center / 22px no-repeat;
  transform: scale(.6); opacity: 0;
  transition: transform .3s var(--ease-out), opacity .3s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: none; opacity: 1; }

/* ---------- Notice ---------- */

.notice {
  position: relative;
  width: min(1160px, calc(100% - 2 * var(--side)));
  margin: 60px auto 0;
  padding: 30px 17px 29px 55px;
  background: var(--grey);
  color: var(--navy);
  font-size: 20px;
  line-height: 31px;
}
.notice::before {
  content: "";
  position: absolute; left: 16px; top: 34px;
  width: 24px; height: 24px;
  background: url("../assets/window/icons/info.svg") center / contain no-repeat;
}
.notice strong, .notice b { font-weight: 700; }
.notice p + p { margin-top: 10px; }
.notice--lg { font-size: 25px; }
.notice--justify { text-align: justify; }

/* ---------- Community ---------- */

.community {
  margin-top: 41px;
  color: #fff;
  background: var(--grad-band);
}
.community .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 190px;
  padding: 24px min(175px, 12.15vw) 24px min(142px, 9.86vw);
}
.community h2 { font-size: 46px; font-weight: 700; line-height: 50px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px 17px; }
.socials a {
  display: block; width: 66px; height: 66px; color: #fff;
  border-radius: 50%;
  transition: transform .35s var(--ease-out), background-color .3s ease;
}
.socials a svg { width: 100%; height: 100%; }
.socials a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .16); }

/* ---------- Services grid ---------- */

.services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 1440px;
  margin: 55px auto 0;
  padding: 0 5px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 348.5 / 337;
  padding: 33px min(33px, 2.3vw);
  overflow: hidden;
  color: var(--ink);
  background: var(--grey);
  font-size: 24px;
  line-height: 32.6px;
  isolation: isolate;
}
.tile--blank { background: var(--blue-card); }
.tile--blank.tile--soft { background: var(--blue-soft); }
.tile__dot {
  position: absolute; left: min(33px, 2.3vw); bottom: 32.5px;
  display: grid; place-items: center;
  width: 45px; height: 45px; border-radius: 50%;
  background: var(--blue-soft);
  transition: transform .45s var(--ease-out);
}
.tile__dot::after {
  content: "";
  width: 22px; height: 22px;
  background: url("../assets/window/icons/arrow-sm.svg") center / 100% no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0; transform: scale(.4) rotate(-45deg);
  transition: opacity .3s ease, transform .45s var(--ease-out);
}
a.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #dfe5ff;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
a.tile:hover::before, a.tile:focus-visible::before { transform: none; }
a.tile:hover .tile__dot, a.tile:focus-visible .tile__dot { transform: scale(1.25); }
a.tile:hover .tile__dot::after, a.tile:focus-visible .tile__dot::after { opacity: 1; transform: none; }

/* ---------- Section band ---------- */

.band {
  display: flex; align-items: center; justify-content: center;
  min-height: 208px;
  margin-top: var(--mt, 55px);
  padding: 16px var(--side) 32px;
  color: #fff;
  background: var(--grad-band);
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
  scroll-margin-top: 0;
}
.band--solid { min-height: 104px; background: var(--blue); }
.band--flush { margin-top: 0 !important; }

/* ---------- Topic cards (anchors inside a section page) ---------- */

.topics { --tw: 280px; --th: 337px; --gx: min(79px, 5.49vw); --gy: 34px; margin-top: 49px; }
.topics__row { display: flex; justify-content: center; gap: var(--gx); }
.topics__row + .topics__row { margin-top: var(--gy); }
.topics--dense { --gx: min(8px, .56vw); --gy: 16px; }
.topics--stip { --tw: 286px; --gx: min(66px, 4.58vw); --gy: 16px; margin-top: 54px; }
.topics--stip .topics__row + .topics__row { --gx: min(109px, 7.57vw); }

.topic {
  position: relative;
  flex: 0 1 var(--tw);
  height: var(--th);
  padding: 31px 33px;
  overflow: hidden;
  color: var(--ink);
  background: var(--grey);
  font-size: 18px;
  line-height: 22px;
  isolation: isolate;
}
.topic--blue { color: #fff; background: var(--blue); }
.topic .tile__dot { left: 33px; bottom: 33px; background: var(--blue); }
.topic--blue .tile__dot { background: #fff; }
.topic--blue .tile__dot::after { filter: none; }
.topic::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #dfe5ff;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.topic--blue::before { background: #0a2fe0; }
.topic:hover::before, .topic:focus-visible::before { transform: none; }
.topic:hover .tile__dot, .topic:focus-visible .tile__dot { transform: scale(1.25); }
.topic:hover .tile__dot::after, .topic:focus-visible .tile__dot::after { opacity: 1; transform: none; }

/* ---------- Generic blocks ---------- */

.sec { position: relative; }
.sec__body { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--side); }
.lead { font-size: 20px; line-height: 24px; }
.lead strong, .lead b { font-weight: 700; }
.lead + .lead { margin-top: 24px; }
.h-blue { color: var(--blue); font-size: 46px; font-weight: 700; line-height: 46px; }
.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hl { color: #0000ff; }
.dot-list li { position: relative; padding-left: 50px; }
.dot-list li::before { content: "·"; position: absolute; left: 0; }

/* Pill link (outlined) */
.pill {
  position: relative;
  display: flex; align-items: center;
  min-height: 52px;
  padding: 12px 70px 12px 38px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  line-height: 19px;
  transition: background-color .3s ease, color .3s ease;
}
.pill__ico {
  position: absolute; right: 26px; top: 50%;
  width: 22px; height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: url("../assets/window/icons/arrow-sm.svg") center / 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.pill:hover { background: var(--blue); color: #fff; }
.pill:hover .pill__ico { transform: rotate(45deg) scale(1.1); filter: brightness(0) invert(1) drop-shadow(0 0 0 #fff); background-color: transparent; }
.pill--center { justify-content: center; padding-left: 70px; }
.pill-list { display: grid; gap: 11px; }

/* ---------- Banners (bottom) ---------- */

.banners {
  display: grid; gap: 14px;
  width: min(1256px, calc(100% - 2 * min(94px, 6.5vw)));
  margin: 46px auto 0;
}
.page-main .banners { margin-top: 93px; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 105px;
  padding: 16px min(58px, 4vw) 16px min(60px, 4.2vw);
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  line-height: 29px;
}
.banner strong { font-weight: 700; }
.banner__btn {
  position: relative; flex: 0 0 auto;
  display: grid; place-items: center;
  width: 268px; height: 52px;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6);
  transition: box-shadow .3s ease, transform .3s var(--ease-out);
}
.banner__btn::after {
  content: ""; position: absolute; right: 26px; top: 13px;
  width: 22px; height: 22px;
  background: url("../assets/window/icons/arrow-sm.svg") center / 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
.banner__btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.banner__btn:hover::after { transform: rotate(45deg); }

/* ---------- Footer ---------- */

.footer {
  margin-top: 93px;
  color: #fff;
  background: var(--blue);
  border-radius: 60px 60px 0 0;
}
.page-section .footer { margin-top: 35px; }
.footer .wrap {
  display: grid;
  grid-template-columns: 1fr 216px 211px;
  min-height: 517px;
  padding: 70px min(60px, 4vw) 34px var(--side);
}
.footer__brand { display: flex; align-items: flex-start; gap: 25px; }
.footer__mark { width: 118px; height: auto; }
.footer__wordmark { width: 367px; height: auto; margin-top: -2px; }
.footer__legal { margin-top: 28px; font-size: 26px; font-weight: 700; line-height: 31px; }
.footer__addr { margin-top: 30px; font-size: 14px; line-height: 26px; }
.footer__contacts { margin-top: 12px; font-size: 14px; line-height: 18px; }
.footer__contacts a:last-child { font-weight: 700; }
.footer__socials { display: flex; align-items: center; gap: 12px 12px; margin-top: 36px; }
.footer__socials a { color: #fff; transition: transform .3s var(--ease-out), opacity .3s ease; }
.footer__socials a:hover { transform: translateY(-3px); opacity: .85; }
.footer__socials svg { width: auto; height: 40px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; padding-top: 6px; font-size: 14px; line-height: 14px; }
.footer__col a { position: relative; }
.footer__col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.footer__col a:hover::after { transform: none; }
.footer__col .footer__mail { margin-top: -11px; font-size: 16px; font-weight: 700; line-height: 16px; }
.footer__copy {
  grid-column: 1 / -1; align-self: end; justify-self: end;
  margin-top: 24px;
  font-size: 14px; line-height: 17px; opacity: .6;
}

/* ==========================================================================
   Образовательный кредит
   ========================================================================== */

.docs-row {
  display: flex; justify-content: center; gap: min(55px, 3.8vw);
  margin-top: 34px;
  padding: 0 var(--side);
}
.doc-card {
  flex: 0 1 404px;
  min-height: 338px;
  padding: 41px 32px;
  border-radius: 20px;
  background: var(--grey);
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
  line-height: 28px;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.doc-card:first-child { padding-left: 14px; padding-right: 20px; }
.doc-card--wide { flex-basis: 539px; }
.doc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }

.terms { width: min(1339px, calc(100% - 2 * min(50px, 3.5vw))); margin: 28px auto 0; }
.terms__head, .terms__row { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.terms__head {
  align-items: center;
  min-height: 86px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  color: var(--blue);
  font-size: 25px; font-weight: 700;
}
.terms__row { margin: 0 20px; padding: 24px 0 25px; border-bottom: 1px solid #f2f2f2; font-size: 23px; line-height: 28px; }
.terms__row:last-child { margin: 0; border-bottom: 2px solid var(--grey); }
.terms__row span, .terms__head span { padding: 0 16px; }

.who { position: relative; min-height: 302px; }
.who .notice { width: min(755px, 58%); margin: 59px 0 0 calc(var(--gutter) + min(109px, 7.5vw)); }
.who__leo { position: absolute; left: calc(var(--gutter) + min(979.5px, 68vw)); bottom: 0; width: 279.3px; }

.spec { padding-top: 33px; padding-bottom: 31px; }
.spec__grid { display: grid; grid-template-columns: 427px 426px 1fr; margin-top: 54px; }
.spec__grid h3 { color: var(--blue); font-size: 30px; font-weight: 700; line-height: 36px; }
.spec__list { display: grid; gap: 37px; margin-top: 43px; }
.prog { display: flex; align-items: flex-start; gap: 20px; color: var(--navy); font-size: 18px; line-height: 22px; }
.prog b { display: block; font-weight: 700; }
.prog__ico {
  flex: 0 0 auto; width: 60px; height: 60px; margin-top: -2px; border-radius: 50%;
  background: url("../assets/window/icons/arrow-circle.svg") center / 100% no-repeat;
  transition: transform .4s var(--ease-out);
}
a.prog:hover .prog__ico { transform: rotate(45deg); }
.spec__leo { position: absolute; right: calc(var(--gutter) + min(106px, 7.4vw)); bottom: 31px; width: 514px; }

.plain { padding-top: 75px; }

.place {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px;
  width: min(1104px, calc(100% - 2 * var(--side)));
  min-height: 72px;
  margin: 54px auto 0;
  padding: 16px 24px 16px 101px;
  position: relative;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(20, 40, 120, .12);
  color: var(--blue);
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.place::before {
  content: ""; position: absolute; left: 24px; top: 50%;
  width: 26px; height: 33px; margin-top: -17px;
  background: url("../assets/window/icons/pin.svg") center / contain no-repeat;
}
.place b { font-size: 24px; font-weight: 700; line-height: 29px; }
.place span { font-size: 18px; line-height: 22px; }
.place:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(20, 40, 120, .18); }

.benefit {
  display: grid;
  grid-template-columns: 406px 298px 1fr;
  grid-template-areas: "leo circle text" "leo para para";
  column-gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px min(48px, 3.3vw) 0 min(79px, 5.5vw);
}
.benefit__leo { grid-area: leo; width: 394.9px; }
.benefit__rate {
  grid-area: circle;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 298px; height: 298px; margin-top: 30px;
  border-radius: 50%;
  background: var(--grad-circle);
  color: #fff; text-align: center;
}
.benefit__rate b { font-size: 33px; font-weight: 400; line-height: 40px; white-space: nowrap; }
.benefit__rate span { margin-top: 16px; font-size: 23px; line-height: 23px; }
.benefit__text { grid-area: text; align-self: start; margin: 97px 0 0 -10px; font-size: 23px; line-height: 28px; }
.benefit__para {
  grid-area: para; align-self: start;
  width: min(801px, 100%);
  margin: 63px 0 0 9px;
  font-size: 26px; line-height: 31px;
  text-align: justify;
}
.benefit b, .benefit strong { font-weight: 700; }
.benefit__rate b { font-weight: 400; }

/* ==========================================================================
   Общежитие
   ========================================================================== */

.pill-wide { width: min(1082px, calc(100% - 2 * var(--side))); margin: 47px auto 0; }
.pill-wide .pill { min-height: 75px; padding: 16px 100px 16px 24px; font-size: 22px; line-height: 26px; letter-spacing: .02em; }
.pill-wide .pill + .pill { margin-top: 16px; font-size: 20px; letter-spacing: normal; }
.no-sf .pill-wide .pill + .pill { letter-spacing: -0.02em; }
.pill-wide .pill__ico { right: 58px; width: 38px; height: 38px; margin-top: -19px; }

.campus { padding-top: 28px; }
.campus .lead { margin-top: 24px; max-width: 1180px; }
.carousel { position: relative; margin-top: 61px; }
/* бесконечная лента: JS дублирует фото, лента едет на ширину одного набора и начинается заново */
.carousel__track { overflow: hidden; }
.carousel__belt {
  display: flex; width: max-content;
  animation: carousel-run var(--carousel-dur, 40s) linear infinite;
}
.carousel:hover .carousel__belt { animation-play-state: paused; }
.carousel__belt img {
  flex: 0 0 433px; height: 289px; margin-right: 42px; object-fit: cover;
  border-radius: 20px;
  user-select: none; -webkit-user-drag: none;
}
@keyframes carousel-run { to { transform: translateX(-50%); } }

.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: min(104px, 7.2vw); margin-top: 57px; }
.room {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 208px; padding: 16px 24px;
  border-radius: 20px;
  background: var(--grad-card);
  color: #fff; text-align: center;
  font-size: 34px; font-weight: 500; line-height: 41px;
}
.room b { margin-bottom: 7px; font-weight: 700; line-height: 34px; }

.visit { display: grid; grid-template-columns: 450px 423px 1fr; margin-top: 78px; }
.visit .prog { color: var(--navy); }
.visit-addr { max-width: 820px; margin-top: 118px; padding-bottom: 117px; font-size: 26px; line-height: 26px; }
.campus__leo { position: absolute; left: calc(var(--gutter) + min(923px, 64vw)); bottom: 0; width: 353px; }
.campus .h-blue + .rooms,
.campus .h-blue.mt { margin-top: 64px; }

.azimut-text { max-width: 1440px; margin: 41px auto 0; padding: 0 min(120px, 8.3vw); font-size: 23px; line-height: 28px; text-align: justify; }
.azimut-text p + p { margin-top: 28px; }
.azimut-text b { font-weight: 700; }
.azimut {
  display: grid; grid-template-columns: 387px 386px 387px; gap: 23px 19.5px;
  justify-content: center;
  margin-top: 34px; padding: 0 var(--side);
}
.azimut img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.azimut__col { display: grid; gap: 23px; }
.azimut { height: 529px; }
.azimut__col { min-height: 0; }
.azimut__col--rooms { grid-template-rows: 285px 221px; }
.azimut__col--prices { grid-template-rows: 212px 1fr; }
.price {
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--grey-2);
  color: var(--navy); text-align: center;
  font-size: 18px; line-height: 24px;
}
.price h3 { margin-bottom: 8px; color: var(--blue); font-size: 24px; font-weight: 700; line-height: 29px; }
.price b { font-weight: 700; }
.price--blue { justify-content: flex-start; padding-top: 33px; color: #fff; background: var(--grad-card); font-weight: 700; line-height: 22px; }
.price--blue h3 { margin-bottom: 22px; color: #fff; }
.form-link { display: flex; justify-content: center; margin-top: 27px; }
.form-link .pill { width: 268px; padding-left: 38px; font-size: 22px; }

.eligible { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1260px; margin: 26px auto 0; padding: 0 var(--side); text-align: center; }
.eligible__ico {
  display: grid; place-items: center;
  width: 182px; height: 182px; margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #7690ff 0%, #1440ff 100%);
  color: #fff;
}
.eligible__ico svg { width: 102px; height: 102px; }
.eligible h3 { margin-top: 23px; font-size: 22px; font-weight: 700; line-height: 29px; }
.eligible p { margin-top: 20px; color: #21283d; font-size: 16px; line-height: 19px; }

.soft-bg { background: var(--bg-soft); }
.cards3 {
  display: grid; grid-template-columns: repeat(3, 384px); gap: 32px;
  justify-content: center;
  padding: 64px var(--side) 44px;
}
.check-card, .req-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 160px; padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 60, 180, .06);
  color: var(--navy-2); text-align: center;
  font-size: 18px; font-weight: 700; line-height: 24px;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.check-card { justify-content: flex-start; padding-top: 24px; }
.check-card::before {
  content: ""; flex: 0 0 auto;
  width: 48px; height: 48px; margin-bottom: 18px;
  background: url("../assets/window/icons/check-square.svg") center / 100% no-repeat;
}
.check-card:hover, .req-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20, 60, 180, .12); }
.req-card { font-weight: 400; }
.req-card h3 { margin-bottom: 6px; color: var(--blue); font-size: 24px; font-weight: 700; line-height: 29px; }

.flow { position: relative; max-width: 1440px; height: 1037px; margin: 0 auto; }
.flow__line {
  position: absolute; left: min(704px, 48.9%); top: 142px; bottom: 0;
  width: 2px; background: var(--blue);
  transform-origin: top;
}
.flow__dot {
  position: absolute; left: min(705px, 48.95%); top: var(--y);
  width: 34px; height: 34px; margin: -17px 0 0 -16px;
  border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue);
}
.flow__step {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w, 420px);
  margin-left: calc(var(--w, 420px) / -2);
  color: var(--navy-2); text-align: center;
  font-size: 20px; line-height: 24px;
}
.flow__step img { height: 60px; width: auto; margin: 0 auto; }
.flow__step h3 { margin: 4px 0 16px; font-size: 24px; font-weight: 700; line-height: 29px; }
.flow__step p + p { margin-top: 20px; }
.flow__step--tight { line-height: 20px; }
.flow__leo { position: absolute; left: min(1048.8px, 72.8vw); bottom: 0; width: 281px; }

.pay { position: relative; display: grid; grid-template-columns: 400px 400px; row-gap: 47px; max-width: 1440px; margin: 0 auto; padding: 105px 0 16px min(140px, 9.7vw); }
.pay .prog { color: var(--navy); }
.pay .prog__ico { margin-top: 0; }
.pay .pill { grid-column: 1 / -1; width: min(738px, 100%); margin-top: -27px; padding: 5px 80px 5px 28px; font-size: 16px; line-height: 18px; }
.pay .pill__ico { right: 43px; width: 33px; height: 33px; margin-top: -16.5px; }
.pay__leo { position: absolute; left: min(986.2px, 68.5vw); bottom: 0; width: 345.6px; }

.rules { position: relative; display: grid; grid-template-columns: 406px 495px 1fr; max-width: 1440px; margin: 0 auto; padding: 40px 0 0 min(106px, 7.4vw); min-height: 913px; }
.rules h3 { color: var(--blue); font-size: 30px; font-weight: 700; line-height: 30px; }
.rules ul { display: grid; gap: 32px; margin-top: 35px; }
.rules li { display: flex; align-items: flex-start; gap: 20px; font-size: 18px; line-height: 22px; }
.rules li > span { min-width: 0; }
.rules li::before { content: ""; flex: 0 0 60px; height: 60px; background: center / 100% no-repeat; }
.rules .is-yes li::before { background-image: url("../assets/window/icons/check-circle.svg"); }
.rules .is-do li::before { background-image: url("../assets/window/icons/arrow-circle.svg"); }
.rules .is-no li::before { background-image: url("../assets/window/icons/x-circle.svg"); }
.rules li b { font-weight: 700; }
.rules__leo { position: absolute; left: min(663.2px, 46vw); bottom: 0; width: 288px; }

.pass { display: grid; grid-template-columns: 494px 1fr; column-gap: 114px; max-width: 1099px; margin: 0 auto; padding: 74px 0 72px; }
.pass__item { display: grid; grid-template-columns: auto 1fr; column-gap: 37px; align-items: start; padding: 0 0 57px; color: var(--navy); font-size: 18px; line-height: 22px; }
.pass__item:nth-child(-n+2) { border-bottom: 2px dashed var(--blue); border-image: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px) 1; }
.pass__item:nth-child(n+3) { padding: 49px 0 0; }
.pass__item img { width: 122px; height: auto; }
.pass__item:first-child img { width: 132px; }
.pass__item p + p { margin-top: 22px; }
.pass__item b { color: var(--blue); font-weight: 700; }
.pass__item b.ink { color: var(--navy); }

.dorm-contacts { position: relative; min-height: 398px; }
.dorm-contacts .text { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 120px 0 0 min(100px, 7vw); font-size: 26px; line-height: 25px; }
.dorm-contacts .text p { max-width: 620px; }
.dorm-contacts .text p + p { margin-top: 25px; }
.dorm-contacts a { color: var(--blue); }
.dorm-contacts__leo { position: absolute; left: calc(50% + min(109.6px, 7.6vw)); bottom: 0; width: 512.8px; }
.page-dorm .banners { margin-top: 0; }

/* ==========================================================================
   Стипендии
   ========================================================================== */

.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: min(42px, 2.9vw); max-width: 1440px; margin: 45px auto 0; padding: 0 var(--side); }
.info-card {
  padding: 40px 32px 34px;
  border-radius: 20px;
  background: var(--grad-card);
  color: #fff;
  font-size: 18px; line-height: 22px; letter-spacing: .04em;
}
.no-sf .info-card { letter-spacing: .015em; }
.info-card h3 { margin-bottom: 69px; text-align: center; font-size: 28px; font-weight: 700; line-height: 34px; letter-spacing: 0; }
.info-card p + p { margin-top: 22px; }
.info-card b { font-weight: 700; }
.pills-3 { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 47px; padding: 0 var(--side); }
.pills-3 .pill { width: 268px; justify-content: center; padding: 12px 50px; }

.prose { font-size: 20px; line-height: 20px; }
.prose b, .prose strong { font-weight: 700; }
.prose > * + * { margin-top: 20px; }
.prose--24 { line-height: 24px; }
.prose--24 > * + * { margin-top: 24px; }
.prose .link { font-weight: 700; }

.soc { padding-top: 109px; }
.soc .notice { margin-top: 93px; padding: 25px 17px 33px 55px; line-height: 20px; }
.soc .notice::before { top: 24px; }
.soc .notice p + p { margin-top: 20px; }
.soc .pill { width: min(606px, calc(100% - 2 * var(--side))); margin: 22px auto 0; }

.asp { padding-top: 75px; padding-bottom: 42px; }

.grants { display: grid; grid-template-columns: 441px 441px; column-gap: 189px; max-width: 1440px; margin: 0 auto; padding: 55px 0 0 min(206px, 14.3vw); }
.grant { font-size: 14px; line-height: 22px; color: var(--table); font-family: var(--font-alt); }
.grant h3 { margin-bottom: 18px; color: var(--text); font-family: var(--font); font-size: 18px; font-weight: 600; line-height: 20px; }
.grant dl { margin: 0; }
.grant dt { display: inline; color: #767676; }
.grant dd { display: inline; margin: 0; }
.grant__foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; }
.grant__foot a:first-child { color: var(--blue); }
.grant__foot b { color: var(--blue); font-family: var(--font); font-size: 20px; font-weight: 400; }
.grant__foot a:first-child:hover { text-decoration: underline; }

.gtable {
  width: min(945px, calc(100% - 2 * var(--side)));
  margin: 52px 0 0 max(calc((100% - 1440px) / 2 + 196px), min(196px, 13.6vw));
  font-family: var(--font-alt);
  color: var(--table);
  font-size: 14.2px;
  line-height: 19.7px;
}
.gtable + .gtable { margin-top: 70px; }
.gtable__row { display: grid; grid-template-columns: 330.8px 1fr; column-gap: 15px; }
.gtable__row > * { padding: 15px 20px 16px; border-bottom: 2px solid #d8d8d6; }
.gtable__row:last-child > * { border-bottom: 0; }
.gtable__row > :first-child { font-weight: 600; }
.gtable a, .gtable .blue { color: var(--blue); }
.gtable a:hover { text-decoration: underline; }
.gtable .hl { color: #0000ff; }
.gtable__cell > * + * { margin-top: 13px; }
.gtable__cell h4 { margin-top: 24px; font-size: inherit; font-weight: 600; }
.gtable__cell ul + h4 { margin-top: 24px; }
.gtable__cell li { position: relative; }
.gtable__cell li + li { margin-top: 13px; }
.gtable__cell li::before { content: "•"; margin-right: 12px; }
.gtable__cell .strong { font-weight: 600; }
.gtable__files { display: grid; gap: 16px; padding-top: 22px !important; }

.file {
  display: grid; grid-template-columns: 55px 1fr; column-gap: 31px; align-items: center;
  padding: 24px 24px 24px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  color: var(--text);
  font-size: 17px; line-height: 24.5px;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.file img { width: 55px; }
.file small { display: block; margin-top: 10px; color: #7a7a7a; font-size: 14px; line-height: 17px; }
.file:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }

.named { padding-top: 97px; }
.named .indent { padding-left: 17px; }
.named .pill-list { width: min(865px, 100%); margin: 28px auto 0; }
.named .pill { padding-left: 22px; }
.reward { padding-top: 82px; }
.reward .pill { width: min(570px, 100%); margin: 38px auto 0; padding-left: 22px; }

.contacts-table { width: min(1339px, calc(100% - 2 * min(50px, 3.5vw))); margin: 58px auto 0; font-size: 23px; line-height: 23px; }
.contacts-table .terms__row { align-items: start; padding: 22px 0 24px; border-bottom: 1px solid #e3e3e3; }
.contacts-table .terms__row:last-child { margin: 0 20px; border-bottom: 1px solid #e3e3e3; }
.contacts-table a { color: var(--blue); }
.contacts-table a:hover { text-decoration: underline; }
.contacts-table .sp { display: block; height: 23px; }

/* ==========================================================================
   Страницы без отдельного макета (единый стиль)
   ========================================================================== */

.simple { padding-top: 60px; }
.simple .lead { max-width: 1100px; }
.simple .pill-list { width: min(865px, 100%); margin: 40px auto 0; }
.simple .pill { padding-left: 24px; }

/* ==========================================================================
   Motion
   ========================================================================== */

.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
/* на телефоне боковые выезды заходили за край экрана и страница ездила по горизонтали */
@media (max-width: 768px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translate3d(0, 28px, 0); }
}
.js [data-reveal="scale"] { transform: scale(.85); }
.js [data-reveal="pop"] { transform: translate3d(0, 60px, 0) scale(.92); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="pop"].is-in { transition: opacity .5s ease, transform 1s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d, 0) * 1ms); }

.js .hero__body > *, .js .hero__logo { opacity: 0; transform: translateY(20px); }
.js .hero__eagle { opacity: 0; transform: scale(1.06); }
.is-loaded .hero__body > *, .is-loaded .hero__logo { opacity: 1; transform: none; transition: opacity .8s ease, transform 1s var(--ease-out); }
.is-loaded .hero__body > :nth-child(2) { transition-delay: .12s; }
.is-loaded .hero__eagle { opacity: .4; transform: translateY(var(--parallax, 0)); transition: opacity 1.6s ease .1s, transform 1.8s var(--ease-out); }
.is-loaded .hero__eagle.is-idle { transition: opacity 1.6s ease; }

.js .flow__line { transform: scaleY(var(--progress, 0)); }
.js .flow__dot { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.js .flow__dot.is-on { transform: none; }

.leo-float { animation: leo-float 5s ease-in-out infinite; animation-play-state: paused; transform-origin: 50% 100%; }
.leo-float.is-in { animation-play-state: running; }
@keyframes leo-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -6px; rotate: -.6deg; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero__body > *, .js .hero__logo, .js .hero__eagle, .js .flow__dot { opacity: 1 !important; transform: none !important; }
  .js .hero__eagle { opacity: .4 !important; }
  .js .flow__line { transform: none; }
  /* лента общежития едет всегда, даже при отключённых эффектах анимации в системе */
  .carousel__belt { animation: carousel-run var(--carousel-dur, 40s) linear infinite !important; }
  /* hover: только смена цвета, без перемещений */
  a.tile:hover .tile__dot, .topic:hover .tile__dot, .socials a:hover, .doc-card:hover, .place:hover,
  .file:hover, .check-card:hover, .req-card:hover, .banner__btn:hover, .banner__btn:hover::after,
  .footer__socials a:hover, .pill:hover .pill__ico, a.prog:hover .prog__ico { transform: none !important; }
}

/* ==========================================================================
   ≤ 1280: плавное ужатие сложных композиций
   ========================================================================== */

@media (max-width: 1280px) {
  .spec__grid { grid-template-columns: 1fr 1fr 1fr; column-gap: 24px; }
  .spec__leo { width: 36vw; }
  .benefit { grid-template-columns: 30% 240px 1fr; column-gap: 24px; }
  .benefit__leo { width: 100%; }
  .benefit__rate { width: 240px; height: 240px; }
  .benefit__rate b { font-size: 28px; }
  .benefit__rate span { font-size: 19px; }
  .benefit__text { margin-left: 0; font-size: 20px; line-height: 25px; }
  .benefit__para { font-size: 22px; line-height: 28px; }
  .visit { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
  .azimut { grid-template-columns: repeat(3, 1fr); }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .grants { grid-template-columns: 1fr 1fr; column-gap: 60px; max-width: none; padding-left: var(--side); padding-right: var(--side); }
  .rules { grid-template-columns: repeat(3, 1fr); column-gap: 24px; padding-right: var(--side); }
  .pay { grid-template-columns: 1fr 1fr; column-gap: 24px; max-width: 64vw; margin: 0; }
  .footer .wrap { grid-template-columns: 1fr 200px 200px; column-gap: 24px; }
  .footer__wordmark { width: 300px; }
}

/* ==========================================================================
   ≤ 1024: планшет
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --side: 32px; }

  .hero { height: 480px; }
  .hero__eagle { left: auto; right: -140px; width: 720px; top: 60px; }
  .hero h1, .hero__title { font-size: 40px; line-height: 46px; }

  .community h2 { font-size: 36px; line-height: 40px; }
  .community .wrap { flex-direction: column; align-items: flex-start; padding: 40px var(--side); }
  .socials a { width: 56px; height: 56px; }

  .tile { font-size: 20px; line-height: 26px; }

  .band { min-height: 160px; font-size: 30px; line-height: 40px; }
  .band--solid { min-height: 96px; }

  .topics__row { flex-wrap: wrap; gap: 12px !important; padding: 0 var(--side); }
  .topics__row + .topics__row { margin-top: 12px; }
  .topic { flex: 0 1 calc((100% - 24px) / 3); height: 240px; }

  .docs-row { flex-direction: column; align-items: center; }
  .doc-card, .doc-card--wide { flex: none; width: min(640px, 100%); min-height: 0; padding: 32px !important; font-size: 20px; line-height: 26px; }

  .terms__head { font-size: 21px; min-height: 72px; }
  .terms__row { font-size: 19px; line-height: 24px; }

  .who { padding-bottom: 0; }
  .who .notice { width: auto; margin: 40px var(--side) 0; margin-right: 34vw; }
  .who__leo { left: auto; right: var(--side); width: 28vw; }

  .spec__grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .spec__leo { position: relative; right: auto; bottom: auto; width: min(360px, 60%); margin: 32px auto 0; }

  .benefit { grid-template-columns: 1fr 1fr; grid-template-areas: "circle text" "para para" "leo leo"; padding: 40px var(--side) 0; }
  .benefit__rate { margin: 0 auto; }
  .benefit__text { margin: 0; align-self: center; }
  .benefit__para { margin: 32px 0 0; width: auto; }
  .benefit__leo { width: min(300px, 60%); margin: 24px auto 0; }

  .visit { grid-template-columns: 1fr; row-gap: 24px; margin-top: 40px; }
  .visit-addr { margin-top: 40px; margin-right: 38vw; padding-bottom: 60px; font-size: 22px; line-height: 26px; }
  .campus__leo { left: auto; right: var(--side); width: 32vw; }
  .rooms { gap: 20px; }
  .room { font-size: 24px; line-height: 30px; }
  .room b { line-height: 30px; }

  .azimut-text { font-size: 19px; line-height: 26px; padding: 0 var(--side); }
  .azimut { grid-template-columns: 1fr 1fr; height: auto; }
  .azimut__col--rooms { grid-template-rows: 1fr 1fr; }
  .azimut > img { grid-row: span 2; }
  .azimut__col--prices { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }

  .eligible { gap: 24px; }
  .eligible__ico { width: 140px; height: 140px; }
  .eligible__ico svg { width: 80px; height: 80px; }

  .cards3 { grid-template-columns: 1fr 1fr; gap: 20px; padding: 48px var(--side) 40px; }

  .flow { height: auto; padding: 48px var(--side) 0; }
  .flow__line { left: 49px; top: 48px; bottom: 0; }
  .flow__dot { display: none; }
  .flow__step { position: relative; left: auto; top: auto; width: auto; margin: 0 0 40px 60px; text-align: left; }
  .flow__step img { margin: 0; }
  .flow__leo { position: relative; left: auto; width: 240px; margin: 0 0 0 auto; }

  .pay { grid-template-columns: 1fr; max-width: none; padding: 48px var(--side) 0; margin-right: 38vw; }
  .pay .pill { font-size: 14px; }
  .pay__leo { left: auto; right: var(--side); width: 34vw; }

  .rules { grid-template-columns: 1fr 1fr; row-gap: 48px; padding: 40px var(--side) 0; min-height: 0; }
  .rules__leo { position: relative; left: auto; grid-column: 1; width: 240px; margin: 0 auto; }
  .rules > div:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }

  .pass { column-gap: 40px; padding: 56px var(--side); }
  .pass__item { grid-template-columns: 96px 1fr; column-gap: 20px; }
  .pass__item img, .pass__item:first-child img { width: 96px; }

  .dorm-contacts .text { padding: 64px var(--side) 0; font-size: 22px; line-height: 26px; }
  .dorm-contacts .text p { max-width: 50%; }
  .dorm-contacts__leo { left: auto; right: 0; width: 44vw; }

  .info-pair { grid-template-columns: 1fr; }
  .info-card h3 { margin-bottom: 32px; }

  .grants { grid-template-columns: 1fr; row-gap: 32px; padding-right: var(--side); padding-left: var(--side); }
  .gtable { margin-left: auto; margin-right: auto; }
  .gtable__row { grid-template-columns: 34% 1fr; column-gap: 10px; }

  .contacts-table { font-size: 18px; line-height: 22px; }
  .contacts-table .sp { height: 16px; }

  .footer .wrap { grid-template-columns: 1fr 1fr; row-gap: 40px; min-height: 0; padding: 56px var(--side) 32px; }
  .footer .wrap > :first-child { grid-column: 1 / -1; }
  .footer__copy { justify-self: start; }
}

/* ==========================================================================
   ≤ 768: мобильная версия
   ========================================================================== */

@media (max-width: 768px) {
  :root { --side: 16px; }

  .hero { height: auto; min-height: 420px; padding-bottom: 48px; }
  .hero .wrap { height: auto; min-height: 372px; }
  .hero__logo { left: var(--side); top: 20px; width: 48px; }
  .burger { top: 16px; right: 16px; width: 56px; height: 56px; }
  .burger__lines { width: 26px; height: 18px; }
  .burger__lines i { height: 3px; }
  .burger__lines i:nth-child(2) { top: 7.5px; }
  .burger__lines i:nth-child(3) { top: 15px; }
  .burger[aria-expanded="true"] .burger__lines i:nth-child(1),
  .burger[aria-expanded="true"] .burger__lines i:nth-child(3) { top: 7.5px; }
  .menu { clip-path: circle(0 at calc(100% - 44px) 44px); }
  .menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); }
  /* герб целиком по ширине экрана, стоит на нижнем крае шапки; пустой низ картинки (~43%) обрезаем */
  .hero__eagle { left: 0; right: auto; top: auto; bottom: -48px; width: 100%; height: auto; aspect-ratio: 902 / 590; object-fit: cover; object-position: top; }
  .hero__body { position: relative; left: auto; top: auto; padding: 124px var(--side) 0; }
  .hero__ministry { width: 200px; }
  .hero h1, .hero__title { margin-top: 22px; font-size: 30px; line-height: 36px; }

  .notice { margin-top: 32px; padding: 18px 16px 18px 48px; font-size: 16px; line-height: 24px; }
  .notice::before { left: 14px; top: 20px; }
  .notice--lg { font-size: 17px; }
  .notice--justify { text-align: left; }

  .community { margin-top: 32px; }
  .community .wrap { min-height: 0; padding: 32px var(--side); gap: 20px; }
  .community h2 { font-size: 28px; line-height: 32px; }
  .socials { gap: 10px; }
  .socials a { width: 46px; height: 46px; }

  .services { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; padding: 0 var(--side); }
  /* квадрат, пока текст помещается; длинные подписи растягивают плитку, а не заезжают под кружок */
  .tile { aspect-ratio: auto; min-height: calc((100vw - 2 * var(--side) - 8px) / 2 * 1.02); padding: 16px 14px 60px; font-size: 16px; line-height: 20px; overflow-wrap: break-word; hyphens: auto; }
  .tile__dot, .topic .tile__dot { left: 14px; bottom: 14px; width: 34px; height: 34px; }
  .tile__dot::after { width: 18px; height: 18px; }

  .band { min-height: 112px; margin-top: min(var(--mt, 55px), 40px); padding: 24px var(--side); font-size: 22px; line-height: 28px; }
  .band br { display: none; }
  .band--solid { min-height: 80px; }

  .topics { margin-top: 24px !important; }
  /* одна сетка в две колонки на все ряды: нечётная карточка встаёт слева, а не повисает по центру */
  .topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 var(--side); }
  .topics__row { display: contents; }
  .topic { height: auto; min-height: 150px; padding: 16px 14px 60px; font-size: 15px; line-height: 19px; overflow-wrap: break-word; hyphens: auto; }
  .topic br, .tile br { display: none; }

  .docs-row { margin-top: 24px; gap: 12px; }
  .doc-card, .doc-card--wide { padding: 20px !important; border-radius: 16px; font-size: 16px; line-height: 22px; }
  .doc-card br, .lead br, .notice br, .spec__grid br, .place br, .benefit br, .room br, .price br, .visit br, .azimut-text br { display: none; }

  .lead, .prose { font-size: 16px; line-height: 22px; }
  .prose > * + * { margin-top: 14px; }
  .prose br { display: none; }
  .dot-list li { padding-left: 22px; }
  .h-blue { font-size: 28px; line-height: 32px; }

  .terms { width: calc(100% - 2 * var(--side)); margin-top: 20px; }
  .terms__head { display: none; }
  .terms__row { grid-template-columns: 1fr; gap: 4px; margin: 0; padding: 16px 0; text-align: left; font-size: 16px; line-height: 21px; }
  .terms__row span { padding: 0; }
  .terms__row span:first-child { color: var(--blue); font-weight: 700; }
  .terms__row:last-child { border-bottom-width: 1px; }

  .who { display: flex; flex-direction: column; }
  .who .notice { width: auto; margin: 24px var(--side) 0; }
  .who__leo { position: relative; left: auto; right: auto; width: 200px; margin: 16px auto 0; }

  .spec { padding-top: 24px; padding-bottom: 0; }
  .spec__grid { grid-template-columns: 1fr; margin-top: 32px; row-gap: 32px; }
  .spec__grid h3 { font-size: 24px; line-height: 28px; }
  .spec__list { gap: 18px; margin-top: 18px; }
  .prog { gap: 14px; font-size: 16px; line-height: 20px; }
  .prog__ico { width: 44px; height: 44px; }
  .spec__leo { width: 220px; }

  .plain { padding-top: 32px; }

  .place { margin-top: 24px; padding: 14px 16px 14px 60px; }
  .place::before { left: 18px; }
  .place b { font-size: 18px; line-height: 22px; }
  .place span { font-size: 15px; line-height: 19px; }

  .benefit { grid-template-columns: 1fr; grid-template-areas: "circle" "text" "para" "leo"; padding-top: 32px; }
  .benefit__rate { width: 220px; height: 220px; }
  .benefit__rate b { font-size: 26px; }
  .benefit__rate span { font-size: 17px; line-height: 20px; margin-top: 10px; }
  .benefit__text { margin-top: 24px; font-size: 17px; line-height: 23px; }
  .benefit__para { margin-top: 16px; font-size: 17px; line-height: 23px; text-align: left; }
  .benefit__leo { width: 200px; }

  .pill { min-height: 48px; padding: 10px 56px 10px 20px; font-size: 14px; line-height: 18px; }
  .pill__ico { right: 16px; }
  .pill-wide .pill, .pill-wide .pill + .pill { min-height: 60px; padding: 12px 64px 12px 20px; font-size: 16px; line-height: 20px; letter-spacing: 0; }
  .pill-wide .pill__ico { right: 16px; width: 32px; height: 32px; margin-top: -16px; }

  .campus { padding-top: 24px; }
  .carousel { margin-top: 40px; }
  .carousel__belt img { flex-basis: 82vw; height: 56vw; margin-right: 12px; border-radius: 16px; }
  .rooms { grid-template-columns: 1fr; gap: 12px; margin-top: 24px !important; }
  .room { min-height: 0; padding: 22px 16px; border-radius: 16px; font-size: 18px; line-height: 24px; }
  .room b { font-size: 20px; line-height: 26px; }
  .campus .h-blue.mt { margin-top: 40px; }
  .visit { margin-top: 24px; }
  .visit-addr { margin: 32px 0 0; padding-bottom: 0; font-size: 18px; line-height: 23px; }
  .campus__leo { position: relative; left: auto; right: auto; width: 200px; margin: 16px auto 0; }

  .azimut-text { margin-top: 24px; font-size: 16px; line-height: 22px; text-align: left; }
  .azimut-text p + p { margin-top: 14px; }
  .azimut { grid-template-columns: 1fr; margin-top: 24px; }
  .azimut > img { grid-row: auto; height: 60vw; }
  .azimut__col--rooms { grid-template-columns: 1fr 1fr; grid-template-rows: 36vw; }
  .azimut__col--prices { grid-template-columns: 1fr; grid-column: auto; }
  .price h3 { font-size: 20px; line-height: 24px; }
  .price { font-size: 15px; line-height: 21px; }
  .price--blue { padding-top: 22px; padding-bottom: 22px; }
  .form-link .pill { width: auto; min-width: 220px; font-size: 18px; }

  .eligible { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .eligible__ico { width: 120px; height: 120px; }
  .eligible__ico svg { width: 68px; height: 68px; }
  .eligible h3 { margin-top: 18px; font-size: 19px; line-height: 24px; }
  .eligible h3 br { display: none; }
  .eligible p { margin-top: 10px; }

  .cards3 { grid-template-columns: 1fr; gap: 12px; padding: 24px var(--side); }
  .check-card, .req-card { min-height: 0; padding: 20px 16px; font-size: 16px; line-height: 21px; }
  .check-card { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; }
  .check-card::before { width: 40px; height: 40px; margin: 0; }
  .check-card br, .req-card br { display: none; }
  .req-card h3 { font-size: 20px; line-height: 24px; }

  .flow { padding-top: 32px; }
  .flow__line { left: 45px; top: 32px; }
  .flow__step { margin: 0 0 32px 52px; font-size: 16px; line-height: 21px; }
  .flow__step img { height: 44px; }
  .flow__step h3 { margin-bottom: 8px; font-size: 20px; line-height: 24px; }
  .flow__step br { display: none; }
  .flow__leo { width: 180px; }

  .pay { margin: 0; padding: 32px var(--side) 0; row-gap: 20px; }
  .pay .pill { margin-top: 0; padding: 8px 56px 8px 16px; font-size: 13px; line-height: 17px; }
  .pay .pill__ico { right: 12px; width: 30px; height: 30px; margin-top: -15px; }
  .pay__leo { position: relative; left: auto; right: auto; width: 200px; margin: 16px auto 0; }
  .pay br, .rules br, .pass br, .eligible p br { display: none; }

  .rules { grid-template-columns: 1fr; row-gap: 40px; padding-top: 32px; }
  .rules > div:nth-child(3) { grid-column: auto; grid-row: auto; }
  .rules h3 { font-size: 24px; line-height: 26px; }
  .rules ul { gap: 18px; margin-top: 20px; }
  .rules li { gap: 14px; font-size: 16px; line-height: 20px; }
  .rules li::before { flex-basis: 44px; height: 44px; }
  .rules__leo { grid-column: auto; grid-row: 4; width: 200px; }

  .pass { grid-template-columns: 1fr; padding: 32px var(--side); }
  .pass__item, .pass__item:nth-child(n+3) { grid-template-columns: 72px 1fr; column-gap: 16px; padding: 24px 0; font-size: 16px; line-height: 21px; }
  .pass__item:nth-child(-n+3) { border-bottom: 2px dashed var(--blue); }
  .pass__item img, .pass__item:first-child img { width: 72px; }

  .dorm-contacts { display: flex; flex-direction: column; min-height: 0; }
  .dorm-contacts .text { padding: 32px var(--side) 0; font-size: 18px; line-height: 23px; }
  .dorm-contacts .text p { max-width: none; }
  .dorm-contacts .text p + p { margin-top: 16px; }
  .dorm-contacts .text br { display: none; }
  .dorm-contacts__leo { position: relative; left: auto; right: auto; width: 240px; margin: 16px auto 0; }

  .info-pair { margin-top: 24px; gap: 12px; }
  .info-card { padding: 24px 18px; border-radius: 16px; font-size: 15px; line-height: 20px; letter-spacing: .01em; }
  .info-card h3 { margin-bottom: 20px; font-size: 22px; line-height: 27px; }
  .info-card br { display: none; }
  .pills-3 { margin-top: 24px; gap: 8px; }
  .pills-3 .pill { width: 100%; }

  .soc { padding-top: 32px; }
  .soc .notice { margin-top: 32px; padding: 18px 16px 18px 48px; }
  .soc .notice::before { top: 20px; }
  .asp { padding-top: 32px; padding-bottom: 0; }

  .grants { padding-top: 32px; }
  .grant h3 { font-size: 17px; }
  .grant h3 br { display: none; }
  .gtable { width: calc(100% - 2 * var(--side)); margin: 32px auto 0; font-size: 14px; line-height: 20px; }
  .gtable__row { grid-template-columns: 1fr; }
  .gtable__row > * { padding: 12px 0; }
  .gtable__row > :first-child { padding-bottom: 0; border-bottom: 0; color: var(--blue); }
  .gtable br { display: none; }
  .file { grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; font-size: 14px; line-height: 20px; }
  .file img { width: 40px; }

  .named, .reward { padding-top: 32px; }
  .named .indent { padding-left: 0; }
  .named .pill-list { margin-top: 20px; gap: 8px; }
  .reward .pill { margin-top: 24px; }

  .contacts-table { width: calc(100% - 2 * var(--side)); margin-top: 24px; font-size: 15px; line-height: 20px; }
  .contacts-table .terms__row { gap: 8px; padding: 16px 0; }
  .contacts-table .terms__row span:first-child { font-size: 16px; }
  .contacts-table .terms__row:last-child { margin: 0; }
  .contacts-table .sp { height: 10px; }

  .simple { padding-top: 32px; }

  .banners { width: calc(100% - 2 * var(--side)); gap: 8px; margin-top: 40px; }
  .page-main .banners { margin-top: 40px; }
  .banner { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; padding: 20px; font-size: 20px; line-height: 25px; }
  .banner__btn { width: 100%; height: 48px; }

  .footer, .page-section .footer { margin-top: 40px; border-radius: 28px 28px 0 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 32px; padding: 40px var(--side) 28px; }
  .footer__brand { gap: 14px; }
  .footer__mark { width: 72px; }
  .footer__wordmark { width: 220px; }
  .footer__legal { margin-top: 24px; font-size: 18px; line-height: 23px; }
  .footer__addr { margin-top: 16px; line-height: 20px; }
  .footer__socials { flex-wrap: wrap; margin-top: 24px; }
  .footer__socials svg { height: 32px; }
  .footer__col { gap: 14px; font-size: 13px; line-height: 16px; }
  .footer__col .footer__mail { margin-top: -4px; font-size: 14px; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: auto; min-height: 210px; font-size: 15px; line-height: 19px; }
}

@media (max-width: 420px) {
  .hero h1, .hero__title { font-size: 27px; line-height: 32px; }
  .tile { font-size: 15px; line-height: 19px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer__wordmark { width: 190px; }
}

/* ==========================================================================
   Материальная помощь
   ========================================================================== */

.topics--mp { --tw: 300px; --gx: min(53px, 3.68vw); }

.mp-docs { display: grid; grid-template-columns: repeat(3, 405px); gap: min(55px, 3.8vw); justify-content: center; margin-top: 49px; padding: 0 min(57px, 4vw); }
.mp-doc {
  position: relative;
  min-height: 307px;
  padding: 41px 14px 60px;
  border-radius: 16px;
  background: var(--grey);
  color: var(--ink);
  font-size: 25px; font-weight: 500; line-height: 30px;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.mp-doc .pill__ico { left: 14px; right: auto; top: auto; bottom: 24px; width: 34px; height: 34px; margin: 0; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .4s var(--ease-out); }
.mp-doc:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.mp-doc:hover .pill__ico { opacity: 1; transform: none; }

.mp-who { padding-top: 72px; }

.aid { max-width: 1431px; margin: 48px auto 0; font-size: 20px; line-height: 20px; }
.aid__head, .aid__row { display: grid; grid-template-columns: 105px 331px 332px 331px 1fr; }
.aid__head {
  align-items: center; min-height: 101px;
  border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  color: var(--blue); font-size: 20px; font-weight: 700; line-height: 20px;
}
.aid__head span:first-child { padding-left: 24px; }
.aid__head span + span { padding-left: 11px; }
.aid__row { position: relative; padding: 25px 0 23px; }
.aid__row::after { content: ""; position: absolute; left: 40px; right: 40px; bottom: 0; height: 1px; background: #f2f2f2; }
.aid__row:last-child { padding-bottom: 60px; }
.aid__row:last-child::after { left: 0; right: 0; height: 2px; background: var(--grey); }
.aid__row span { padding-right: 12px; }
.aid__row span:first-child { padding-left: 24px; color: var(--blue); font-weight: 700; }
.aid__row span:nth-child(2) { font-weight: 600; }

.mp-special { display: grid; grid-template-columns: 609px 609px; gap: 42px; justify-content: center; margin-top: 73px; padding: 0 var(--side); }
.mp-special .info-card { display: flex; flex-direction: column; justify-content: space-between; padding: 44px 32px 30px; border-radius: 16px; font-size: 26px; line-height: 31px; letter-spacing: .03em; }
.no-sf .mp-special .info-card { letter-spacing: .01em; }
.mp-special .info-card h3 { margin-bottom: 48px; font-size: 28px; line-height: 34px; letter-spacing: 0; }

.steps { width: min(1045px, calc(100% - 2 * var(--side))); margin: 41px auto 0; padding: 0; list-style: none; }
.step + .step { margin-top: 44px; }
.step__bar {
  display: flex; align-items: center; gap: 18px;
  min-height: 89px; padding: 12px 32px;
  border-radius: 16px;
  background: var(--grad-card);
  color: #fff; font-size: 33px; font-weight: 700; line-height: 40px;
}
.step__body { margin-top: 37px; }
.page-aid .banners { margin-top: 69px; }

@media (max-width: 1280px) {
  .mp-docs { grid-template-columns: repeat(3, 1fr); }
  .mp-special { grid-template-columns: 1fr 1fr; }
  .aid__head, .aid__row { grid-template-columns: 70px 1fr 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .topics--mp .topic { flex-basis: calc((100% - 12px) / 2); }
  .mp-doc { min-height: 220px; padding: 28px 20px 60px; font-size: 20px; line-height: 25px; }
  .mp-special { grid-template-columns: 1fr; }
  .mp-special .info-card { font-size: 20px; line-height: 26px; }
  .aid { font-size: 16px; }
  .aid__head, .aid__row { grid-template-columns: 50px 1fr 1fr 1fr 1fr; }
  .aid__row::after { left: 16px; right: 16px; }
  .step__bar { font-size: 26px; line-height: 32px; min-height: 72px; }
}

@media (max-width: 768px) {
  .mp-docs { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; padding: 0 var(--side); }
  .mp-doc { min-height: 0; padding: 20px 60px 20px 18px; font-size: 17px; line-height: 22px; }
  .mp-doc br { display: none; }
  .mp-doc .pill__ico { left: auto; right: 16px; top: 50%; bottom: auto; margin-top: -17px; opacity: 1; transform: none; }
  .mp-who { padding-top: 32px; }
  .mp-who br { display: none; }

  .aid { margin-top: 24px; padding: 0 var(--side); font-size: 15px; line-height: 20px; }
  .aid__head { display: none; }
  .aid__row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 12px; padding: 18px 16px; border-radius: 12px; background: var(--bg-soft); box-shadow: 0 6px 20px rgba(20, 60, 180, .08); }
  .aid__row:last-child { padding-bottom: 18px; }
  .aid__row::after, .aid__row:last-child::after { display: none; }
  .aid__row span, .aid__row span:first-child { padding: 0; }
  .aid__row span:first-child { display: none; }
  .aid__row span:nth-child(2) { color: var(--navy); font-size: 16px; }
  .aid__row span[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--blue); font-size: 13px; font-weight: 700; }
  .aid br { display: none; }

  .mp-special { gap: 12px; margin-top: 24px; }
  .mp-special .info-card { padding: 24px 18px; font-size: 16px; line-height: 22px; letter-spacing: 0; }
  .mp-special .info-card h3 { margin-bottom: 16px; font-size: 20px; line-height: 25px; }
  .mp-special br { display: none; }

  .steps { margin-top: 24px; }
  .step + .step { margin-top: 28px; }
  .step__bar { gap: 10px; min-height: 56px; padding: 12px 18px; border-radius: 12px; font-size: 20px; line-height: 24px; }
  .step__body { margin-top: 16px; }
  .step__body br { display: none; }
  .page-aid .banners { margin-top: 40px; }
}

/* ==========================================================================
   Меры поддержки участников СВО
   ========================================================================== */

.link-plain { color: var(--blue); }
.link-plain:hover { text-decoration: underline; text-underline-offset: 3px; }
.dot-list--tight li { padding-left: 17px; }
.dot-list--48 li { padding-left: 48px; }

.svo-lead { padding-top: 42px; }
.svo-table { max-width: 1339px; margin-top: 29px; }
.svo-table .aid__head, .svo-table .aid__row { grid-template-columns: 332px 331px 332px 1fr; }
.svo-table .aid__head { min-height: 86px; }
.svo-table .aid__head span:first-child { padding-left: 24px; }
.svo-table .aid__head span + span { padding-left: 25px; }
.svo-table .aid__row { padding: 28px 0 36px; }
.svo-table .aid__row::after { left: 20px; right: 20px; }
.svo-table .aid__row span:first-child { padding-left: 13px; color: var(--text); font-weight: 600; }
.svo-table .aid__row span + span { padding-left: 25px; }
.svo-table .aid__row span:nth-child(2) { font-weight: 400; }
.svo-table .aid__row span:last-child { padding-left: 7px; }
.svo-table .aid__row:last-child { padding-bottom: 22px; }
.svo-table .sp { display: block; height: 20px; }
.svo-after { padding-top: 28px; }

.svo-sec { padding-top: 42px; }
.svo-center { text-align: center; }
.steps--sm { margin-top: 12px; }
.steps--sm .step + .step { margin-top: 26px; }
.steps--sm .step__bar { gap: 14px; min-height: 72px; padding: 10px 32px; font-size: 26px; line-height: 32px; }
.steps--sm .step__body { margin-top: 17px; }
.svo-term { padding-top: 24px; }
.svo-notice { margin-top: 44px; padding-bottom: 32px; line-height: 31px; }
.svo-notice br { display: none; }
.svo-named { padding-top: 36px; }
.svo-named .pill-list { width: min(869px, 100%); gap: 7px; margin-top: 34px; }

@media (max-width: 1024px) {
  .svo-table .aid__head, .svo-table .aid__row { grid-template-columns: 1.2fr .8fr .8fr 1.2fr; }
  .steps--sm .step__bar { font-size: 22px; line-height: 28px; }
}

@media (max-width: 768px) {
  .svo-lead, .svo-sec { padding-top: 28px; }
  .svo-table .aid__row { padding: 18px 16px; }
  .svo-table .aid__row span, .svo-table .aid__row span + span, .svo-table .aid__row span:first-child, .svo-table .aid__row span:last-child { padding: 0; }
  .svo-table .aid__row span:first-child { display: block; color: var(--navy); font-size: 16px; }
  .svo-table .sp { height: 6px; }
  .svo-after { padding-top: 16px; }
  .svo-sec br, .svo-lead br, .svo-after br, .svo-term br, .svo-notice br { display: none; }
  .svo-sec .keep-br br { display: inline; }
  .svo-table .aid__head, .svo-table .aid__row { grid-template-columns: 1fr; }
  .steps--sm .step__bar { min-height: 52px; font-size: 18px; line-height: 22px; }
  .svo-notice { margin-top: 24px; line-height: 24px; }
  .svo-named { padding-top: 28px; }
}

/* ==========================================================================
   Меры поддержки семей и студентов, имеющих детей
   ========================================================================== */

.doodle { position: absolute; z-index: 0; max-width: none; pointer-events: none; user-select: none; }
.doodle--bear { right: -63px; top: 71px; width: 159px; }
.doodle--candy { left: calc(50% - 295px); top: 114px; width: 121px; }
.doodle--bird { left: calc(50% + 465px); top: 338px; width: 139px; opacity: .2; }
.doodle--rocket { left: calc(50% - 647px); top: 909px; width: 132px; opacity: .2; }
.doodle--mouse { left: calc(50% + 441px); top: 1773px; width: 138px; opacity: .2; }

.notice--heart::before { top: 34px; width: 27px; height: 25px; background-image: url("../assets/window/icons/heart.svg"); }
.fam-notice { margin-top: 55px; padding: 30px 20px 32px 55px; font-size: 18px; line-height: 31px; text-align: justify; }
.fam-notice p { position: relative; z-index: 1; }

.topics--fam { --tw: 306px; --gx: min(121px, 8.4vw); position: relative; margin-top: 31px; }
.topics--fam .topic { position: relative; z-index: 1; }

.fam-pills { width: min(1011px, calc(100% - 2 * var(--side))); margin-top: 38px; }
.fam-pills .pill { min-height: 75px; padding: 12px 110px 12px 37px; font-size: 26px; line-height: 24px; letter-spacing: .03em; }
.fam-pills .pill + .pill { min-height: 96px; margin-top: 23px; font-size: 26px; letter-spacing: .03em; }
.fam-pills .pill__ico { right: 72px; width: 38px; height: 38px; margin-top: -19px; }

.fam-who { position: relative; max-width: 1440px; min-height: 447px; margin: 0 auto; padding: 49px 0 0 min(140px, 9.7vw); color: var(--navy-2); }
.fam-who__text > p { font-size: 18px; line-height: 22px; }
.fam-who ul { display: grid; gap: 41px; margin-top: 67px; }
.fam-who li { display: flex; align-items: center; gap: 20px; font-size: 18px; line-height: 18px; }
.fam-who li:nth-child(n+2) { line-height: 22px; }
.fam-who li img { width: 60px; height: 60px; flex: 0 0 auto; }
.fam-who__leo { position: absolute; left: calc(var(--gutter) + min(916px, 63.6vw)); bottom: 0; width: 415px; }

.fam-types { position: relative; overflow: hidden; background: var(--bg-soft); }
.fam-group { position: relative; z-index: 1; width: min(990px, calc(100% - 2 * var(--side))); margin: 0 auto; padding: 26px 0 28px; left: min(40px, 2.8vw); color: var(--navy-2); font-size: 17px; line-height: 24px; }
.fam-group:first-of-type { padding-top: 30px; padding-bottom: 36px; }
.fam-group__bar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: min(763px, 100%); min-height: 60px; margin: 0 auto; left: max(-40px, -2.8vw);
  padding: 8px 64px 8px 96px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .12);
  color: var(--navy-2);
  font-size: 26px; font-weight: 700; line-height: 30px; text-align: center;
}
.fam-group__bar::before {
  content: ""; position: absolute; left: 48px; top: 50%;
  width: 42px; height: 42px; margin-top: -21px;
  background: url("../assets/window/icons/plus-square.svg") center / 100% no-repeat;
}
.fam-group__body { margin-top: 14px; }
.fam-group__body p + .fam-dots { margin-top: 0; }
.fam-dots li::before { content: "·"; display: inline-block; width: 42px; }
.fam-group--short .fam-dots li::before { width: 28px; }

.nowrap-lg { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
.flow--fam { height: 871px; }
.flow--fam .flow__line { top: 174px; }
.flow--fam .flow__step h3 { margin: 6px 0 14px; }
.flow--fam .flow__step:nth-of-type(2) h3 { margin-top: 12px; }
.flow__step--left { text-align: center; }
.flow__step--left .fam-dots { text-align: left; }
.fam-dots--flow li::before { width: 33px; }
.page-fam .banners { margin-top: 72px; }

@media (max-width: 1280px) {
  .fam-who__leo { width: 30vw; }
}

@media (max-width: 1024px) {
  .doodle--bear { right: -20px; }
  .doodle--bird, .doodle--mouse { left: auto; right: 10px; }
  .doodle--rocket { left: 0; }
  .topics--fam .topic { flex-basis: calc((100% - 24px) / 3); }
  .fam-pills .pill, .fam-pills .pill + .pill { min-height: 64px; padding: 12px 80px 12px 24px; font-size: 20px; line-height: 24px; letter-spacing: 0; }
  .fam-pills .pill__ico { right: 24px; }
  .fam-who { padding: 40px var(--side) 0; min-height: 0; }
  .fam-who__text { margin-right: 36vw; padding-bottom: 40px; }
  .fam-who__leo { left: auto; right: var(--side); width: 34vw; }
  .nowrap-lg { white-space: normal; }
  .flow--fam { height: auto; }
  .flow--fam .flow__line { top: 48px; }
  .flow__step--left { text-align: left; }
}

@media (max-width: 768px) {
  .doodle--candy, .doodle--rocket, .doodle--mouse { display: none; }
  .doodle--bear { width: 100px; top: auto; bottom: -40px; right: -8px; }
  .doodle--bird { top: 60px; width: 90px; }
  .fam-notice { margin-top: 24px; padding: 18px 16px 24px 48px; font-size: 16px; line-height: 24px; text-align: left; }
  .notice--heart::before { top: 22px; }
  .topics--fam .topic { flex-basis: calc((100% - 8px) / 2); }
  .fam-pills { margin-top: 24px; }
  .fam-pills .pill, .fam-pills .pill + .pill { min-height: 56px; margin-top: 10px; padding: 10px 60px 10px 18px; font-size: 16px; line-height: 20px; }
  .fam-pills .pill br { display: none; }
  .fam-pills .pill__ico { right: 14px; width: 32px; height: 32px; margin-top: -16px; }
  .fam-who { display: flex; flex-direction: column; padding-top: 28px; }
  .fam-who__text { margin: 0; padding: 0; }
  .fam-who__text > p { font-size: 16px; }
  .fam-who ul { gap: 20px; margin-top: 24px; }
  .fam-who li, .fam-who li:nth-child(n+2) { font-size: 16px; line-height: 20px; }
  .fam-who li img { width: 48px; height: 48px; }
  .fam-who__leo { position: relative; left: auto; right: auto; width: 240px; margin: 20px auto 0; }
  .fam-group, .fam-group:first-of-type { left: 0; padding: 24px 0 20px; font-size: 15px; line-height: 21px; }
  .fam-group__bar { left: 0; }
  .fam-group__bar { min-height: 52px; padding: 10px 14px 10px 62px; border-radius: 12px; font-size: 18px; line-height: 22px; text-align: left; justify-content: flex-start; }
  .fam-group__bar::before { left: 14px; width: 34px; height: 34px; margin-top: -17px; }
  .fam-group__body { margin-top: 14px; }
  .fam-group br, .flow--fam br { display: none; }
  .fam-group .nowrap-lg br { display: inline; }
  .fam-dots li { padding-left: 18px; text-indent: -18px; }
  .fam-dots li::before, .fam-group--short .fam-dots li::before, .fam-dots--flow li::before { width: 18px; text-indent: 0; }
  .page-fam .banners { margin-top: 40px; }
}
