/* ЧГПУ | Концепция C «Кадр» — светлая, фирменные шрифты, один сильный кинематографичный блок */
:root {
  --bg: #f4f5f5;          /* фирменный дымчато-белый */
  --surface: #ffffff;
  --ink: #1e1e1e;
  --muted: #62656f;
  --line: rgba(30, 30, 30, .1);
  --blue: #4940ff;
  --blue-deep: #352ce6;
  --sky: #8fbcff;
  --sky-50: #c7ddff;
  --sky-25: #e3eeff;

  --r-card: 32px;
  --r-inner: 20px;        /* 32 − отступ 12 */
  --r-tile: 24px;
  --gap-in: 12px;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --display: 'Retni Sans', 'Onest', system-ui, sans-serif;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --pre-bg: var(--bg);
  --pre-fg: var(--blue);
  --font-ui: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.ico { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 500; font-size: 16px; cursor: pointer; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn--sm { min-height: 44px; padding: 0 18px 0 20px; font-size: 15px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 14px 34px -14px rgba(73, 64, 255, .8); }
.btn--arrow { padding: 6px 6px 6px 28px; }
.btn__circle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--blue); font-size: 17px;
  transition: transform .6s var(--ease);
}
.btn--arrow:hover .btn__circle { transform: scale(1.06); }
.btn--chev { gap: 10px; }
.btn--chev .chev { font-size: 15px; }
.btn--quiet { padding: 0 4px; min-height: 44px; position: relative; }
.btn--quiet::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .6s var(--ease); }
.btn--quiet:hover::after { transform: scaleX(1); }
.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn--ghost { background: transparent; width: 34px; height: 34px; }
.icon-btn--ghost .ico { width: 20px; height: 20px; }

.round-arrow {
  position: absolute; right: var(--gap-in); bottom: var(--gap-in);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--blue); font-size: 16px;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}

.glass {
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

/* ---------- Шапка-остров ---------- */
.header {
  position: fixed; z-index: 100; top: 10px; left: 10px; right: 10px;
  transition: transform .7s var(--ease);
}
.header.is-hidden { transform: translateY(calc(-100% - 14px)); }
.header__bar {
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 40px); margin-inline: auto;
  padding: 0 8px 0 16px; border-radius: 24px;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 10px 40px -24px rgba(20, 22, 60, .35);
}
.header__top { display: none; }
.header__main { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--blue); flex: none; }
.brand .mark { width: 42px; height: auto; overflow: visible; }
.brand__name { color: var(--ink); font: 500 13px/1.2 var(--font); }
.topics { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 10px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
  transition: background-color .3s;
}
.pill-link .ico { width: 17px; height: 17px; }
.pill-link:hover { background: var(--blue); }
@media (min-width: 1150px) {
  .header__top {
    display: flex; align-items: center; gap: 26px; height: 44px; font-size: 14px;
    border-bottom: 1px solid var(--line);
    transition: height .5s var(--ease), opacity .3s;
  }
  .header.is-scrolled .header__top { height: 0; opacity: 0; overflow: hidden; border-bottom-color: transparent; }
  .audience { display: flex; gap: 20px; color: var(--muted); }
  .audience a:hover { color: var(--ink); }
  .header__tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .lang { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
  .lang a { padding: 4px 7px; border-radius: 8px; color: var(--muted); }
  .lang a[aria-current] { color: var(--ink); background: var(--bg); }
  .topics { display: flex; gap: clamp(14px, 1.6vw, 28px); margin-left: clamp(12px, 2.4vw, 44px); font-size: 15px; font-weight: 500; }
  .topics a { position: relative; padding: 8px 0; }
  .topics a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
  .topics a:hover::after { transform: scaleX(1); transform-origin: left; }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
  .header__main { height: 64px; }
}
@media (max-width: 420px) { .brand__name { display: none; } }

/* ---------- Первый экран: видео ---------- */
.hero--video { position: relative; height: 100svh; min-height: 640px; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; background: #c9ced8; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 16, 32, .42), rgba(14, 16, 32, 0) 55%); }
.hero__in {
  position: absolute; inset: 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding-bottom: clamp(16px, 3vw, 40px);
}
.hero__plate {
  width: min(100%, 600px); display: grid; gap: 20px;
  padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-card);
}
.hero--video .hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 4.4vw, 72px); line-height: 1; letter-spacing: -.03em;
}
.hero__lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); max-width: 40ch; }
.hero--video .hero__lead { color: #3d4049; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.scene {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.scene__toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; }
.scene__toggle .ico { width: 16px; height: 16px; }
.scene__toggle .ico--play, .scene__toggle.is-paused .ico--pause { display: none; }
.scene__toggle.is-paused .ico--play { display: block; }
.scene__label { min-width: 13ch; }
.scene__bars { display: flex; gap: 4px; }
.scene__bars i { position: relative; width: 14px; height: 3px; border-radius: 2px; background: rgba(30, 30, 30, .18); overflow: hidden; }
.scene__bars i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (max-width: 700px) {
  .scene { position: absolute; top: 86px; right: var(--gutter); padding-right: 14px; }
  .scene__label { display: none; }
}

/* ---------- Первый экран: типографика ---------- */
.hero--type { padding-top: clamp(104px, 12vw, 160px); }
.hero__grid { display: grid; gap: 28px; align-items: end; }
.hero--type .hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 7.6vw, 136px); line-height: .95; letter-spacing: -.035em;
}
.hero__title .line { padding-bottom: .05em; }
.hero__row { display: grid; gap: 26px; margin-top: clamp(24px, 3vw, 44px); max-width: 560px; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); }
}
.hero__slides { position: relative; aspect-ratio: 4 / 5; max-height: 76svh; width: 100%; justify-self: end; }
.slides__stack { position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden; background: #c9ced8; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-next { opacity: 1; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slides__wipe { position: absolute; inset: 0; z-index: 3; background: var(--blue); clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); }
.slides__caption {
  position: absolute; left: var(--gap-in); bottom: var(--gap-in); z-index: 4;
  display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.slides__count { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 999px) { .hero__slides { aspect-ratio: 4 / 3; max-height: none; } }

/* ---------- Секции ---------- */
.section { padding-top: clamp(80px, 10vw, 150px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.section__head .section__title { margin-bottom: 0; }
.section__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4.6vw, 70px); line-height: 1; letter-spacing: -.03em;
  margin-bottom: clamp(28px, 3.4vw, 52px);
}
.section__foot { margin-top: 32px; }

/* ---------- Быстрые сервисы: компактные строки ---------- */
.services__list { display: grid; gap: 12px; }
@media (min-width: 640px) { .services__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services__list { grid-template-columns: repeat(3, 1fr); } }
.service {
  display: flex; align-items: center; gap: 16px; height: 100%; min-height: 88px;
  padding: 12px 22px 12px 12px; border-radius: var(--r-tile); background: var(--surface);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.service__ico { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 18px; background: var(--sky-25); color: var(--blue); transition: background-color .45s var(--ease); }
.service__name { font-weight: 500; font-size: 17px; line-height: 1.25; }
.service .chev { margin-left: auto; font-size: 17px; color: var(--blue); transition: color .45s; }
.service:hover { background: var(--blue); color: #fff; }
.service:hover .service__ico { background: #fff; }
.service:hover .chev { color: #fff; }

/* ---------- Табы ---------- */
.tabs { position: relative; display: inline-flex; padding: 5px; background: var(--surface); border-radius: 999px; }
.tabs__thumb { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); width: 0; }
.tabs__btn { position: relative; z-index: 1; min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 500; font-size: 15px; transition: color .4s var(--ease); }
.tabs__btn[aria-selected="true"] { color: #fff; }

/* ---------- Новости: главная + список ---------- */
.news__layout { display: grid; gap: 14px; }
@media (min-width: 1000px) { .news__layout { grid-template-columns: 1.2fr 1fr; } }
.news-main { position: relative; display: block; min-height: 440px; border-radius: var(--r-card); overflow: hidden; background: #c9ced8; isolation: isolate; }
@media (min-width: 1000px) { .news-main { min-height: 100%; } }
.news-main__img { position: absolute; inset: 0; z-index: -1; }
.news-main__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.news-main:hover .news-main__img img { scale: 1.05; }
.news-main__plate {
  position: absolute; left: var(--gap-in); right: var(--gap-in); bottom: var(--gap-in);
  display: grid; gap: 10px; max-width: 560px; padding: 20px 24px 22px; border-radius: var(--r-inner);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.news-main time, .news-row time { font-size: 13px; color: var(--muted); }
.news-main h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.news-list { display: grid; gap: 12px; }
.news-row {
  display: flex; align-items: center; gap: 18px; padding: 10px 20px 10px 10px;
  border-radius: var(--r-tile); background: var(--surface);
  transition: background-color .4s var(--ease);
}
.news-row__img { flex: none; width: clamp(104px, 11vw, 150px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg); }
.news-row__img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.news-row:hover { background: var(--sky-25); }
.news-row:hover .news-row__img img { scale: 1.08; }
.news-row__body { display: grid; gap: 6px; }
.news-row__body > span { font-weight: 500; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ann { border-top: 1px solid var(--line); }
.ann a { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease), padding .6s var(--ease); }
.ann time { grid-column: 1; font-size: 14px; color: var(--muted); }
.ann a > span:not(.chev) { grid-column: 1; font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; }
.ann .chev { grid-column: 2; grid-row: 1 / 3; font-size: 18px; color: var(--blue); }
.ann a:hover { background: var(--surface); padding-inline: 20px; }
@media (min-width: 900px) {
  .ann a { grid-template-columns: 200px 1fr auto; }
  .ann time, .ann a > span:not(.chev) { grid-column: auto; }
  .ann .chev { grid-column: 3; grid-row: auto; }
}

/* ---------- Знакомство: мозаика кадров → фильм ---------- */
.tour { margin-top: 8px; }
.tour__stage { padding-inline: var(--gutter); }
.tour__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tour__tile { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #c9ced8; }
.tour__tile img { width: 100%; height: 100%; object-fit: cover; }
.tour__tile--hole, .tour__tile:nth-child(n+8) { display: none; }
.tour__film { position: relative; margin-top: 10px; aspect-ratio: 16 / 10; border-radius: var(--r-tile); overflow: hidden; background: #c9ced8; }
.tour__film video { width: 100%; height: 100%; object-fit: cover; }
.tour__plate {
  position: absolute; left: var(--gap-in); bottom: var(--gap-in); right: var(--gap-in);
  display: flex; align-items: center; gap: 14px; max-width: max-content;
  padding: 8px 22px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; text-align: left; color: var(--ink);
  transition: background-color .4s var(--ease);
}
.tour__plate:hover { background: rgba(255, 255, 255, .9); }
.tour__play { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; transition: transform .6s var(--ease); }
.tour__plate:hover .tour__play { transform: scale(1.08); }
.tour__play .ico { width: 20px; height: 20px; margin-left: 2px; }
.tour__plate-text { display: grid; font-size: 13px; line-height: 1.3; }
.tour__plate-text strong { font-weight: 500; font-size: 16px; }
.tour__plate-text span { color: var(--muted); }

/* Живая сцена на десктопе: JS добавляет класс и закрепляет блок */
.tour.is-live .tour__stage { position: relative; height: 100svh; padding: 0; overflow: hidden; }
.tour.is-live .tour__grid {
  position: absolute; inset: 0; gap: 14px;
  grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 20px var(--gutter);
}
.tour.is-live .tour__tile { aspect-ratio: auto; border-radius: var(--r-tile); display: block; }
.tour.is-live .tour__tile--hole { visibility: hidden; }
.tour.is-live .tour__film { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.tour.is-live .tour__plate { left: calc(var(--gutter) + 20px); bottom: 40px; }

/* ---------- Цитата ---------- */
.quote { padding-top: clamp(80px, 10vw, 150px); }
.quote p { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.14; letter-spacing: -.025em; max-width: 26ch; }
.quote figcaption { margin-top: 24px; color: var(--muted); font-size: 16px; }

/* ---------- Bento: факты, фото и смысловые иллюстрации ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: clamp(56px, 7vw, 100px); }
.bento__item { min-width: 0; grid-column: span 2; }
.b-f1, .b-f2, .b-f3, .b-f4 { grid-column: span 1; }
.bento .card { min-height: 250px; }
.bento .card--fact { min-height: 160px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; }
  .bento__item { grid-column: span 3; }
  .b-f1, .b-f2, .b-f3, .b-f4 { grid-column: span 3; }
  .b-history { grid-column: span 6; grid-row: span 2; }
  .b-program { grid-row: span 2; }
  .b-alumni { grid-column: span 6; }
  .bento .card, .bento .card--fact { min-height: 0; }
}
@media (min-width: 1200px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; gap: 14px; grid-auto-flow: row; }
  .b-f1 { grid-column: 1 / 4; grid-row: 1; }
  .b-history { grid-column: 4 / 9; grid-row: 1 / 3; }
  .b-program { grid-column: 9 / 13; grid-row: 1 / 3; }
  .b-f2 { grid-column: 1 / 4; grid-row: 2; }
  .b-structure { grid-column: 1 / 5; grid-row: 3; }
  .b-editions { grid-column: 5 / 9; grid-row: 3; }
  .b-f3 { grid-column: 9 / 11; grid-row: 3; }
  .b-f4 { grid-column: 11 / 13; grid-row: 3; }
  .b-alumni { grid-column: 1 / 5; grid-row: 4; }
  .b-olymp { grid-column: 5 / 8; grid-row: 4; }
  .b-antiterror { grid-column: 8 / 10; grid-row: 4; }
  .b-brand { grid-column: 10 / 13; grid-row: 4; }
}
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  height: 100%; padding: 24px; overflow: hidden; border-radius: var(--r-card); isolation: isolate;
  background: var(--surface);
}
.card__title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.1; letter-spacing: -.02em; max-width: 16ch; }
.card__text { font-size: 15px; line-height: 1.4; color: var(--muted); max-width: 30ch; }
.card .round-arrow { background: var(--sky-25); }
a.card:hover .round-arrow { background: var(--blue); color: #fff; }

.card--fact { justify-content: space-between; }
.fact__num { font-family: var(--display); font-weight: 500; font-size: clamp(46px, 4.8vw, 82px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.b-f3 .fact__num, .b-f4 .fact__num { font-size: clamp(46px, 4vw, 66px); }
.fact__label { font-size: 15px; line-height: 1.3; color: var(--muted); }
.card--blue { background: var(--blue); color: #fff; }
.card--blue .fact__label, .card--blue .card__text { color: rgba(255, 255, 255, .78); }
.card--blue .round-arrow { background: #fff; color: var(--blue); }
a.card--blue:hover .round-arrow { background: var(--ink); color: #fff; }
.card--sky { background: var(--sky-25); }

.card__pic { margin: auto calc(var(--gap-in) - 24px) calc(var(--gap-in) - 24px); border-radius: var(--r-inner); overflow: hidden; min-height: 0; flex: 1 1 auto; max-height: 60%; }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.card:hover .card__pic img { scale: 1.07; }

.card--photo { padding: 0; background: #c9ced8; }
.card--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: scale 1.4s var(--ease); }
.card--photo:hover > img { scale: 1.05; }
.card--photo .round-arrow { background: var(--surface); }
.card__plate {
  position: absolute; left: var(--gap-in); bottom: var(--gap-in); max-width: calc(100% - 3 * var(--gap-in) - 40px);
  display: grid; gap: 4px; padding: 14px 18px 16px; border-radius: var(--r-inner);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Иллюстрации из смысловых элементов знака: колос — развитие, книга — издания */
.card--illus { background: var(--sky-25); }
.card--illus-white { background: var(--surface); }
.illus { position: absolute; z-index: -1; fill: url(#grad-blue); filter: drop-shadow(0 28px 36px rgba(73, 64, 255, .28)); transition: translate 1.2s var(--ease), rotate 1.2s var(--ease); }
.illus--ear { width: 52%; height: 72%; right: 10%; bottom: 8%; }
.illus--book { width: 46%; height: 34%; right: 8%; bottom: 18%; }
a.card--illus:hover .illus { translate: 0 -10px; rotate: -3deg; }
.card--brand { justify-content: flex-end; }
.card--brand .mark { position: absolute; top: 24px; right: 24px; width: clamp(80px, 7vw, 116px); color: #fff; overflow: visible; }

/* ---------- Официальная информация ---------- */
.info { padding-top: clamp(56px, 7vw, 100px); }
.info__list { display: grid; gap: 12px; }
@media (min-width: 720px) { .info__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .info__list { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.info-link { display: flex; align-items: center; gap: 16px; height: 100%; min-height: 92px; padding: 18px 22px; border-radius: var(--r-tile); background: var(--surface); font-weight: 500; font-size: 16px; line-height: 1.3; transition: background-color .45s var(--ease), color .45s var(--ease); }
.info-link .ico { color: var(--blue); transition: color .45s; }
.info-link:hover { background: var(--ink); color: #fff; }
.info-link:hover .ico { color: #fff; }
.info-link--main { background: var(--blue); color: #fff; }
.info-link--main .ico { color: #fff; }

/* ---------- Соцсети ---------- */
.social__list { display: grid; gap: 14px; }
@media (min-width: 900px) { .social__list { grid-template-columns: repeat(3, 1fr); } }
.social-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 24px; border-radius: var(--r-card); background: var(--surface); overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.social-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); clip-path: circle(0% at 100% 100%); transition: clip-path .9s var(--ease); }
.social-card:hover::before { clip-path: circle(150% at 100% 100%); }
.social-card:hover { color: #fff; }
.social-card__ico { width: 34px; height: 34px; color: var(--blue); margin-bottom: auto; transition: color .5s; }
.social-card:hover .social-card__ico { color: #fff; }
.social-card__name { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
.social-card__handle { opacity: .65; font-size: 15px; }
.social-card .round-arrow { background: var(--sky-25); }

/* ---------- Ведомственные ссылки ---------- */
.gov { margin-top: clamp(80px, 10vw, 140px); border-block: 1px solid var(--line); }
.marquee { display: flex; overflow: hidden; }
.marquee__track { display: flex; flex: none; }
.marquee__track li { display: flex; align-items: center; }
.marquee__track li::after { content: ''; width: 1px; height: 28px; background: var(--line); margin-inline: clamp(24px, 3vw, 48px); }
.marquee__track a { display: block; padding: 28px 0; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2vw, 28px); letter-spacing: -.02em; color: var(--muted); white-space: nowrap; transition: color .3s; }
.marquee__track a:hover { color: var(--blue); }

/* ---------- Подвал ---------- */
.footer { margin-top: clamp(64px, 8vw, 120px); background: var(--surface); border-radius: 40px 40px 0 0; padding-block: clamp(56px, 6vw, 88px) 28px; }
.footer__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 3fr 1fr; } }
.footer__contacts { display: grid; gap: 32px 28px; }
@media (min-width: 640px) { .footer__contacts { grid-template-columns: repeat(2, 1fr); } }
.contact { display: grid; gap: 4px; font-size: 15px; }
.contact h3 { font: 700 18px/1.2 var(--display); margin-bottom: 6px; }
.contact p { color: var(--muted); }
.contact a { width: max-content; transition: color .3s; }
.contact a:hover { color: var(--blue); }
.footer__nav { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__nav a { color: var(--muted); width: max-content; transition: color .3s; }
.footer__nav a:hover { color: var(--ink); }
.footer__sign { display: flex; flex-wrap: wrap; align-items: end; gap: 20px 40px; margin-top: clamp(64px, 8vw, 120px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__sign .mark { width: clamp(150px, 22vw, 320px); color: var(--blue); overflow: visible; }
.footer__sign p { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 22px; font-size: 13px; color: var(--muted); }
.footer__mox { margin-left: auto; }

/* ---------- Оверлеи ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(244, 245, 245, .9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; transition: opacity .45s var(--ease); }
.overlay.is-open { opacity: 1; }
.overlay[hidden] { display: none !important; }
.overlay__close { position: absolute; top: 20px; right: 20px; background: var(--surface); }
.search__in { padding-top: 22vh; }
.search__form { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.search__form .ico { width: 30px; height: 30px; }
.search__form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font: 700 clamp(28px, 4vw, 56px)/1.1 var(--display); letter-spacing: -.03em; }
.search__hints { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.search__hints a { padding: 10px 16px; background: var(--surface); border-radius: 999px; font-size: 15px; }
.search__hints a:hover { background: var(--ink); color: #fff; }
.menu__in { display: grid; gap: 36px; padding: 88px var(--gutter) 40px; max-height: 100%; overflow-y: auto; }
.menu__group { display: grid; gap: 4px; }
.menu__group a { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 8vw, 44px); letter-spacing: -.03em; line-height: 1.15; }
.menu__group--small a { font-family: var(--font); font-weight: 400; font-size: 20px; color: var(--muted); line-height: 1.7; letter-spacing: 0; }
.menu .pill-link { justify-self: start; font-size: 15px; padding: 10px 18px 10px 14px; }
.film { background: rgba(14, 15, 26, .92); display: grid; place-items: center; padding: var(--gutter); }
.film__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.film__frame iframe { width: 100%; height: 100%; border: 0; }
.film .overlay__close { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Курсор-подсказка ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 96px; height: 96px; margin: -48px 0 0 -48px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500; scale: 0; transition: scale .5s var(--ease); }
.cursor.is-on { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
