/* ЧГПУ | концепция D главной страницы | MOX Studio
   «Светлый зал»: светлые стены, плоскости фирменного цвета, стекло только поверх изображения и цвета,
   фирменный указатель только на главном пути «Поступить». */

@font-face { font-family: "Retni Sans"; src: url("../fonts/RetniSans-Regular.woff2") format("woff2"), url("../fonts/RetniSans-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Retni Sans"; src: url("../fonts/RetniSans-Medium.woff2") format("woff2"), url("../fonts/RetniSans-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Retni Sans"; src: url("../fonts/RetniSans-Bold.woff2") format("woff2"), url("../fonts/RetniSans-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Палитра брендбука 2023 (с. 16) и оттенки 50 % */
  --paper: #F4F5F5;
  --white: #FFFFFF;
  --ink: #1E1E1E;
  --ink-2: #5B5E63;
  --blue: #4940FF;
  --blue-press: #3A31E8;
  --blue-50: #A4A0FF;
  --mint: #0AC5A6;
  --mint-50: #85E2D3;
  --orange: #F66A47;
  --orange-50: #FBB5A3;
  --sky: #8FBCFF;
  --sky-50: #C7DEFF;
  --chip: rgba(30, 30, 30, 0.06);
  --chip-hover: rgba(30, 30, 30, 0.1);

  /* Стекло: одна рецептура для плашек на фото, видео и цвете */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(22px) saturate(160%);
  --glass-hdr: rgba(255, 255, 255, 0.74);

  --font-display: "Retni Sans", "Onest", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1360px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --gap: clamp(10px, 1.4vw, 20px);
  --section: clamp(72px, 9vw, 136px);

  /* Радиусы по иерархии; вложенные — концентрические (внутренний = внешний − отступ) */
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 16px;

  --hdr-main: 60px;
  --hdr-main-c: 56px;
  --hdr-sub: 52px;
  --hdr-full: calc(var(--hdr-main) + var(--hdr-sub));

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --focus: var(--blue);
}

@media (min-width: 1024px) {
  :root { --hdr-main: 76px; --hdr-main-c: 64px; --hdr-sub: 52px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (min-width: 1024px) { body { font-size: 17px; } }

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

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 16px; height: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--white);
  transform: translateY(-160%); transition: transform 0.25s var(--ease);
}
.skip:focus-visible { transform: none; }

.glass { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* ---------- Заставка ---------- */
.intro { display: none; position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.intro-on .intro { display: block; animation: intro-failsafe 0s 6s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro__curtain {
  position: absolute; inset: 0; background: var(--blue);
  --ct: 0px; --cr: 0px; --cb: 0px; --cl: 0px; --crad: 0px;
  clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--crad));
}
.intro__logo { position: absolute; left: 50%; top: 50%; width: clamp(112px, 15vw, 220px); transform: translate(-50%, -62%); color: var(--white); }
.intro__mark { width: 100%; height: auto; overflow: visible; fill: currentColor; }
.intro__word { width: 100%; height: auto; margin-top: 19.4%; fill: currentColor; }
.intro-on .logo__mark { opacity: 0; }

/* ---------- Кнопка главного действия: единственное место фирменного указателя ---------- */
.cta {
  --h: 60px;
  display: inline-flex; align-items: center; gap: 18px;
  height: var(--h); padding: 0 6px 0 28px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.25s var(--ease);
  --focus: var(--blue);
}
.cta:hover { background: var(--blue-press); }
.cta__chev {
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 50%;
  background: var(--white); color: var(--blue);
  display: grid; place-items: center; overflow: hidden;
}
.cta__chev svg { width: 34%; height: 50%; fill: currentColor; }
.cta--sm { --h: 44px; gap: 12px; padding-left: 18px; font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .cta:hover .cta__chev svg { animation: chev-pass 0.6s var(--ease); }
}
@keyframes chev-pass {
  0% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(170%); opacity: 0; }
  43% { transform: translateX(-170%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--chip-hover); }

.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { background: var(--ink); color: var(--white); }

/* ---------- Шапка ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.hdr__bar { transition: background-color 0.35s var(--ease); }
.hdr.is-scrolled .hdr__bar, .hdr.has-mega .hdr__bar, .hdr.is-peek.is-scrolled .hdr__bar {
  background: var(--glass-hdr);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
}
.hdr__main {
  height: var(--hdr-main);
  display: flex; align-items: center; gap: 16px;
  transition: height 0.45s var(--ease);
}
.hdr.is-compact:not(.is-peek) .hdr__main { height: var(--hdr-main-c); }

.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--blue); margin-right: auto; }
.logo__mark { width: 46px; height: auto; flex: none; fill: currentColor; transition: width 0.45s var(--ease); }
.logo__word { width: 58px; height: auto; fill: currentColor; }
.logo__name { display: none; }

.what { display: none; }
.hdr__actions { display: flex; align-items: center; gap: 6px; }
.hdr__sveden { display: none; }
.hdr__actions .cta--sm { margin-left: 4px; }

.hdr__sub { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease); }
.hdr__sub-clip { min-height: 0; overflow: hidden; }
.hdr.is-compact:not(.is-peek) .hdr__sub { grid-template-rows: 0fr; }
.hdr__sub-inner {
  height: var(--hdr-sub);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.hdr.is-compact:not(.is-peek) .hdr__sub-inner { opacity: 0; transform: translateY(-10px); }

@media (max-width: 1023.98px) {
  .hdr__actions { gap: 2px; }
  .hdr__actions .icon-btn { width: 40px; height: 40px; }
  .hdr__actions .cta--sm { --h: 40px; gap: 10px; padding-left: 14px; font-size: 15px; margin-left: 4px; }
  .logo__mark { width: 40px; }
  .logo__word { width: 52px; }
}
@media (max-width: 374.98px) { .hdr .logo__word { display: none; } }

.who { min-width: 0; flex: 1; }
.who__list {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5 * var(--gutter)), transparent 100%);
}
.who__list::-webkit-scrollbar { display: none; }
.who__list li { scroll-snap-align: start; }
.who__list--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; mask-image: none; }
.util { display: none; }

@media (min-width: 1024px) {
  .hdr__main { gap: clamp(18px, 2vw, 36px); }
  .logo { margin-right: 0; gap: 12px; width: 240px; }
  .logo__mark { width: 48px; }
  .logo__word { display: none; }
  .logo__name {
    display: block; font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.18;
    color: var(--ink); letter-spacing: 0; max-width: 182px;
    transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
  }
  .hdr.is-compact:not(.is-peek) .logo__mark { width: 42px; }
  .hdr.is-compact:not(.is-peek) .logo__name { opacity: 0; transform: translateX(-6px); pointer-events: none; }

  .what { display: block; flex: 1; min-width: 0; }
  .what__list { display: flex; align-items: center; gap: clamp(2px, 0.6vw, 10px); }
  .what__btn {
    height: 44px; padding: 0 clamp(8px, 0.8vw, 14px); border-radius: 999px;
    font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.12vw, 17px); letter-spacing: -0.01em; white-space: nowrap;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .what__btn:hover { background: var(--chip); }
  .what__btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }

  .burger { display: none; }
  .hdr__sveden {
    display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px;
    font-weight: 500; font-size: 15px; white-space: nowrap; background: var(--chip);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  }
  .hdr__sveden:hover { background: var(--ink); color: var(--white); }
  .hdr.is-compact:not(.is-peek) .hdr__sveden { display: inline-flex; }

  .who { flex: none; }
  .who__list { overflow: visible; margin: 0; padding: 0; mask-image: none; }
  .util { display: flex; align-items: center; gap: 4px; }
  .util__link {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 999px;
    font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap;
    transition: background-color 0.2s var(--ease);
  }
  .util__link:hover, .util__link[aria-expanded="true"] { background: var(--chip); }
  .hdr__sub .chip { padding: 0 14px; }
}
@media (min-width: 1280px) {
  .logo { position: relative; }
  .logo__word {
    display: block; position: absolute; left: 54px; top: 50%; width: 60px;
    transform: translateY(-50%); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .hdr.is-compact:not(.is-peek) .logo__word { opacity: 1; }
}
/* Промежуточные ширины: подписи сокращаются визуально, доступные имена остаются полными */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .util .util__lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .logo { width: auto; }
  .logo__name { display: none; }
  .logo__word { display: block; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .logo__word { display: none; }
  .util__long { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .what__btn { font-size: 14px; padding: 0 7px; }
  .hdr__main { gap: 14px; }
}

/* Языки: меню вне обрезаемой строки, позиционируется скриптом */
.lang__menu {
  position: absolute; z-index: 5; min-width: 180px; padding: 8px; border-radius: var(--r-md);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.lang__menu a { display: block; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.lang__menu a:hover { background: var(--chip); }
.lang__menu a[aria-current="true"] { color: var(--blue); }

/* Выпадающие панели разделов */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.38s var(--ease);
}
.mega[data-open] { opacity: 1; transform: none; }
.mega__inner {
  display: grid; grid-template-columns: 1.1fr 2fr 1.05fr; gap: 32px; align-items: start;
  padding-block: 32px 40px;
}
.mega__lead {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em;
}
.mega__lead .ico { width: 26px; height: 26px; transition: transform 0.25s var(--ease); }
.mega__lead:hover .ico { transform: translateX(4px); }
.mega__links { columns: 2; column-gap: 32px; }
.mega__links li { break-inside: avoid; }
.mega__links a {
  display: block; padding: 9px 0; font-size: 16px; font-weight: 500; line-height: 1.3;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 calc(100% - 6px);
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.mega__links a:hover { background-size: 100% 1.5px; color: var(--blue); }
.mega__feature { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.mega__feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature-title {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 10px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font-weight: 600; font-size: 15px; line-height: 1.25;
}
.mega__feature-meta { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.mega__feature--text { background: var(--mint-50); min-height: 180px; }
.mega__feature--text .mega__feature-title { position: static; display: block; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 20px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }

/* ---------- Мобильное меню ---------- */
.msheet {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background: var(--paper);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.msheet[data-open] { opacity: 1; transform: none; }
.msheet__top { position: relative; display: flex; align-items: center; height: calc(40px + 2 * var(--gutter)); padding-inline: var(--gutter); flex: none; }
.msheet__top .logo { margin: 0; }
.msheet__close { position: absolute; top: var(--gutter); right: var(--gutter); width: 40px; height: 40px; background: var(--white); } /* равные отступы сверху и справа */
.msheet__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 32px; display: flex; flex-direction: column; gap: 20px; }
.msheet__body > * { flex-shrink: 0; }
.msheet__search {
  display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--white); color: var(--ink-2); font-size: 16px; text-align: left;
}
.msheet__sveden {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--blue); color: var(--white); font-weight: 600; font-size: 16px; line-height: 1.3;
  --focus: var(--ink);
}
.acc { border-radius: var(--r-md); background: var(--white); }
.acc + .acc { margin-top: 8px; }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.015em; line-height: 1.15;
}
.acc__btn .ico { transition: transform 0.3s var(--ease); }
.acc__btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.acc__panel { padding: 0 18px 12px; }
.acc__panel a { display: block; padding: 10px 0; font-size: 16px; font-weight: 500; line-height: 1.3; }
.acc__panel a.acc__lead { color: var(--blue); }
.msheet__foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.msheet__langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); }
.msheet__langs a { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.msheet__langs a[aria-current="true"] { background: var(--ink); color: var(--white); }
.msheet__contrast { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--white); font-weight: 500; font-size: 15px; }

/* ---------- Первый экран ---------- */
.hero { padding-top: calc(var(--hdr-full) + 20px); }
.hero__top { display: grid; gap: 18px; padding-bottom: 20px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 8.6vw, 60px); line-height: 1.0; letter-spacing: -0.025em;
  text-wrap: balance;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in { display: block; }
.hero-pending .hero .line__in { transform: translateY(115%); animation: hero-failsafe 0s 3.4s forwards; }
@keyframes hero-failsafe { to { transform: none; } }
.hero__aside { display: grid; gap: 14px; }
.hero__meta { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hero__aside .cta { justify-content: space-between; width: 100%; }

.hero__stage {
  position: relative; overflow: hidden; border-radius: 36px; /* 22 + 14: кнопка паузы в углу */
  height: max(300px, calc(100svh - 420px));
  background: var(--sky-50) url("../media/campus-poster.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.vctl {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.vctl:hover { background: var(--glass-strong); }
.vctl:active { transform: scale(0.94); }
.vctl .ico { width: 18px; height: 18px; }
.vctl__play { display: none; }
.vctl.is-paused .vctl__play { display: block; }
.vctl.is-paused .vctl__pause { display: none; }

@media (min-width: 640px) {
  .hero__aside { grid-template-columns: 1fr auto; align-items: center; }
  .hero__aside .cta { width: auto; }
  .hero__title { font-size: clamp(44px, 7.4vw, 72px); }
}
@media (min-width: 768px) {
  .hero__stage { height: max(360px, calc(100svh - 400px)); border-radius: 40px; }
  .vctl { top: 18px; right: 18px; }
}
@media (min-width: 1200px) {
  .hero { padding-top: calc(var(--hdr-full) + 22px); }
  .hero__top { grid-template-columns: 1fr auto; align-items: end; gap: 48px; padding-bottom: 26px; }
  .hero__title { font-size: clamp(58px, calc(7.72vw - 33px), 78px); line-height: 0.96; }
  .hero__aside { grid-template-columns: none; justify-items: end; gap: 16px; padding-bottom: 0.3em; }
  .hero__meta { text-align: right; font-size: 16px; }
  .hero__stage { height: clamp(380px, calc(100svh - 350px), 740px); border-radius: 44px; } /* 24 + 20 */
  .hero .vctl { top: 20px; right: 20px; width: 48px; height: 48px; }
}

/* ---------- Быстрые сервисы ---------- */
.services { padding-top: var(--gap); }
.dock { background: var(--white); border-radius: var(--r-lg); padding: 8px; }
.dock__title { padding: 16px 14px 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; line-height: 1.1; }
.dock__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.svc {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: var(--r-md); /* 28 − 8 */
  transition: background-color 0.25s var(--ease);
}
.svc__ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.svc__ico .ico { width: 22px; height: 22px; }
.svc__label { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.svc:hover .svc__ico { background: var(--blue); color: var(--white); }
.svc:hover .svc__label { color: var(--blue); }
@media (min-width: 768px) {
  .dock__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .dock { display: grid; grid-template-columns: 200px 1fr; align-items: stretch; padding: 10px; }
  .dock__title { display: flex; align-items: center; padding: 0 20px; font-size: 24px; }
  .dock__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .svc { padding: 18px 16px 16px; border-radius: 18px; /* 28 − 10 */ gap: 22px; }
  .svc__label { font-size: 15.5px; }
}

/* ---------- Заголовки секций ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2vw, 28px); }
.sec-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.1vw + 8px, 52px); line-height: 1.0; letter-spacing: -0.022em; }
.sec-title--sm { font-size: clamp(24px, 1.4vw + 12px, 32px); }
.sec-title--xl { font-size: clamp(38px, 5.4vw + 6px, 92px); letter-spacing: -0.03em; line-height: 0.95; }
.more {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 8px 0;
}
.more .ico { transition: transform 0.25s var(--ease); }
.more:hover { color: var(--blue); }
.more:hover .ico { transform: translateX(4px); }

/* ---------- Новости и объявления ---------- */
.news { padding-top: var(--section); }
.news__grid { display: grid; gap: clamp(28px, 3vw, 40px); }
.news__list { display: grid; gap: 10px; }
.ncard {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start;
  padding: 8px; border-radius: var(--r-md); background: var(--white);
  transition: background-color 0.25s var(--ease);
}
.ncard__media { display: block; overflow: hidden; border-radius: 12px; /* 20 − 8 */ background: var(--paper); aspect-ratio: 1; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.ncard__body { display: flex; flex-direction: column; gap: 6px; padding: 4px 6px 4px 0; }
.ncard__date { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.ncard__title {
  font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.28; letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard:hover .ncard__title { color: var(--blue); }
.ncard--lead { grid-template-columns: 1fr; gap: 0; padding: 8px; }
.ncard--lead .ncard__media { aspect-ratio: 4 / 3; }
.ncard--lead .ncard__media img { object-position: 50% 38%; }
.ncard--lead .ncard__body { padding: 16px 12px 12px; gap: 10px; }
.ncard--lead .ncard__title { font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -0.015em; -webkit-line-clamp: 5; }

.ann { background: var(--sky-50); border-radius: var(--r-lg); padding: 12px; align-self: start; }
.sec-head--ann { padding: 14px 14px 0; margin-bottom: 10px; }
.ann__list { display: grid; gap: 2px; }
.ann__item { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-sm); /* 28 − 12 */ transition: background-color 0.25s var(--ease); }
.ann__item:hover { background: rgba(255, 255, 255, 0.6); }
.ann__date { font-size: 13.5px; font-weight: 600; color: #3B3E44; }
.ann__title { font-weight: 500; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more--ann { margin: 6px 14px 8px; }

@media (min-width: 640px) {
  .news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncard { grid-template-columns: 1fr; gap: 0; }
  .ncard__media { aspect-ratio: 16 / 10; }
  .ncard__body { padding: 14px 10px 10px; gap: 8px; }
  .ncard--lead { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .news__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .news__main { grid-column: 1 / span 8; }
  .ann { grid-column: 9 / span 4; margin-top: calc(clamp(30px, 3.1vw + 8px, 52px) + clamp(18px, 2vw, 28px)); }
  .news__list { grid-template-columns: 1.12fr 1fr 1fr; grid-template-rows: auto auto; gap: var(--gap); }
  .ncard--lead { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .ncard--lead .ncard__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
  .ncard--lead .ncard__body { flex: none; }
}

/* ---------- Знакомство с ЧГПУ ---------- */
.meet { padding-top: var(--section); }
.meet__head { padding-bottom: clamp(20px, 2.4vw, 36px); }
.film { position: relative; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.film__frame {
  position: relative; overflow: hidden; border-radius: 36px;
  aspect-ratio: 4 / 5; background: #2a2a3a url("../media/film-poster.jpg") center / cover no-repeat;
  isolation: isolate;
}
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__shade { position: absolute; inset: 0; background: #0E0D2B; opacity: 0; pointer-events: none; }
/* Радиусы медиа заданы от кнопок в углу: радиус окна = радиус кнопки + отступ (36 = 22 + 14, 40 = 22 + 18) */
.film__plate { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.film__play {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 18px 0 6px; border-radius: 999px;
  color: var(--ink); text-align: left;
  transition: background-color 0.25s var(--ease);
}
.film__play:hover { background: var(--glass-strong); }
.film__play-ico {
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 50%; flex: none;
  background: var(--ink); color: var(--white); display: grid; place-items: center;
  transition: background-color 0.25s var(--ease);
}
.film__play:hover .film__play-ico { background: var(--blue); }
.film__play-ico .ico { width: 15px; height: 15px; margin-left: 2px; }
.film__play-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.film__play-dur { font-weight: 500; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.quote {
  position: relative; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: var(--gap) auto 0;
  border-radius: var(--r-lg); background: var(--blue); color: var(--white);
  --focus: var(--white);
}
.quote__inner { width: auto; padding: clamp(28px, 5vw, 72px) clamp(22px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.quote__fig { display: grid; gap: clamp(16px, 2vw, 28px); min-height: 8em; }
.quote__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.2vw + 8px, 60px); line-height: 1.08; letter-spacing: -0.022em;
  max-width: 24ch; text-wrap: pretty;
}
.quote__text .w { display: inline-block; }
/* Кегль по длине цитаты: короткая звучит крупно, длинная остаётся читаемой */
.quote__fig[data-len="s"] .quote__text { font-size: clamp(34px, 6.6vw + 4px, 104px); line-height: 0.98; letter-spacing: -0.03em; max-width: 12.6em; text-wrap: balance; }
.quote__fig[data-len="m"] .quote__text { font-size: clamp(28px, 4.2vw + 6px, 78px); line-height: 1.02; max-width: 19ch; }
.quote__fig[data-len="l"] .quote__text { font-size: clamp(25px, 2.9vw + 8px, 56px); line-height: 1.08; max-width: 27ch; }
.quote__author { font-size: clamp(16px, 0.5vw + 13px, 20px); font-weight: 500; opacity: 0.86; }
.quote__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(28px, 4vw, 56px); }
.quote__tab {
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--white);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.quote__tab:hover { background: rgba(255, 255, 255, 0.14); }
.quote__tab[aria-selected="true"] { background: var(--glass); color: var(--ink); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

@media (min-width: 768px) {
  .film__frame { aspect-ratio: 16 / 9; border-radius: 40px; }
  .film__play { --h: 56px; padding-right: 22px; gap: 14px; } /* 28 + 12 = 40 */
  .film__play-title { font-size: 20px; }
}

/* Кинорежим (desktop): сцена закрепляется, окно фильма раскрывается на весь экран, затем приходит цитата */
.meet--cine .meet__scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.meet--cine .meet__head { position: absolute; left: 0; right: 0; top: 0; margin-inline: auto; z-index: 3; padding-top: calc(var(--hdr-full) + clamp(16px, 3vh, 40px)); }
.meet--cine .film { position: absolute; inset: 0; width: auto; margin: 0; z-index: 2; }
.meet--cine .film__frame {
  position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0;
  --ins-t: 30vh; --ins-r: 30vw; --ins-b: 14vh; --ins-l: 30vw; --ins-rad: 28px;
  clip-path: inset(var(--ins-t) var(--ins-r) var(--ins-b) var(--ins-l) round var(--ins-rad));
}
.meet--cine .film__vctl { top: max(calc(var(--ins-t) + 20px), calc(var(--hdr-main-c) + 20px)); right: calc(var(--ins-r) + 20px); }
.meet--cine .film__plate { left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); bottom: clamp(24px, 6vh, 64px); }
.meet--cine .film__play { --h: 68px; padding-right: 28px; gap: 16px; }
.meet--cine .film__play-title { font-size: 24px; }
.meet--cine .film__play-dur { font-size: 17px; }
.meet--cine .quote { position: absolute; inset: 0; width: auto; margin: 0; border-radius: 0; z-index: 4; display: flex; align-items: center; }
.meet--cine .quote__inner { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; padding: calc(var(--hdr-main-c) + 32px) 0 48px; }
.meet--cine .quote__fig { min-height: 0; }

.meet__grid { display: grid; gap: var(--gap); margin-top: var(--gap); }

.tile {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: 180px; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--white); color: var(--ink); overflow: hidden;
  transition: background-color 0.3s var(--ease);
}
.tile__title { padding-right: 48px; font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 0.7vw + 16px, 27px); line-height: 1.08; letter-spacing: -0.016em; }
.tile__text { padding-right: 40px; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); max-width: 34ch; }
.tile__go {
  position: absolute; top: 12px; right: 12px; /* равные отступы; 16 + 12 = 28: концентрично карточке */
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.tile__go .ico { width: 16px; height: 16px; }
a.tile:hover .tile__go, .tile__link:hover .tile__go { background: var(--ink); color: var(--white); }
a.tile:hover .tile__go .ico, .tile__link:hover .tile__go .ico { animation: arrow-nudge 0.45s var(--ease); }
@keyframes arrow-nudge { 0% { transform: translateX(0); } 45% { transform: translateX(4px); } 100% { transform: translateX(0); } }
.tile__media { display: block; margin: 14px -16px -14px; border-radius: var(--r-md); /* 28 − 8 */ overflow: hidden; background: var(--paper); flex: 1; min-height: 180px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
a.tile:hover .tile__media img { transform: scale(1.04); }

.tile--lead { background: var(--sky-50); }
.tile--lead .tile__title { padding-right: 0; }
.tile__links { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; }
.tile__link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 6px 10px 6px 16px; margin-inline: -12px; border-radius: 16px; /* 28 − 12 */
  background: rgba(255, 255, 255, 0.55); font-weight: 600; font-size: 16px;
  transition: background-color 0.25s var(--ease);
}
.tile__link:hover { background: var(--white); }
.tile__links { margin-bottom: -10px; }
.tile__go--inline { position: static; width: 32px; height: 32px; background: none; }
a.tile .tile__go--inline, .tile__link:hover .tile__go--inline { background: none; color: var(--ink); }

.tile--program { background: var(--blue); color: var(--white); --focus: var(--ink); }
.tile--program .tile__go { background: rgba(255, 255, 255, 0.16); color: var(--white); }
a.tile--program:hover .tile__go { background: var(--white); color: var(--blue); }
.tile__big { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 2.6vw + 18px, 64px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }

.tile--terror { background: var(--white); justify-content: flex-end; }
.tile__ico { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.tile__ico .ico { width: 17px; height: 17px; }
.tile--terror .tile__title { margin-top: 48px; }

.tile--brand { background: var(--orange); }
.tile--brand .tile__text { color: var(--ink); }
.tile--brand .tile__go { background: rgba(255, 255, 255, 0.4); }
.tile__mark { position: absolute; right: 24px; bottom: 22px; width: clamp(84px, 7vw, 116px); height: auto; fill: var(--ink); }

.tile--olymp { background: var(--mint); }
.tile--olymp .tile__go { background: rgba(255, 255, 255, 0.45); }
.tile--alumni { background: var(--white); }

@media (min-width: 640px) and (max-width: 1023.98px) {
  .meet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--history { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .meet__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(236px, auto); }
  .tile--history { grid-column: 1 / span 5; grid-row: span 2; }
  .tile--history .tile__media { min-height: 300px; }
  .tile--lead { grid-column: 6 / span 4; }
  .tile--program { grid-column: 10 / span 3; }
  .tile--press { grid-column: 6 / span 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 16px; }
  .tile--press .tile__title { grid-column: 1; padding-right: 0; }
  .tile--press .tile__text { grid-column: 1; align-self: end; padding-right: 0; }
  .tile--press .tile__media { grid-column: 2; grid-row: 1 / span 2; margin: -14px -16px -14px 0; min-height: 0; }
  .tile--press .tile__go, .tile--olymp .tile__go { z-index: 2; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
  .tile--alumni { grid-column: 10 / span 3; }
  .tile--alumni .tile__media { min-height: 120px; }
  .tile--terror { grid-column: 1 / span 4; }
  .tile--brand { grid-column: 5 / span 4; }
  .tile--olymp { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 16px; }
  .tile--olymp .tile__title { padding-right: 0; }
  .tile--olymp .tile__media { grid-column: 2; grid-row: 1 / span 2; margin: -14px -16px -14px 0; min-height: 0; }
}

/* ---------- Официальная информация ---------- */
.official { padding-top: var(--section); }
.official .sec-title { margin-bottom: clamp(18px, 2vw, 28px); }
.official__list { display: grid; gap: 8px; }
.off {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px; border-radius: var(--r-lg); /* 16 + 12 = 28 */ background: var(--white);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.off__ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); flex: none; }
.off__ico .ico { width: 17px; height: 17px; }
.off { align-items: start; min-height: 56px; }
.off__title { font-weight: 600; font-size: 16px; line-height: 1.3; padding-top: 5px; padding-bottom: 5px; }
.off__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background-color 0.25s, color 0.25s; }
.off__go .ico { width: 16px; height: 16px; }
.off:hover .off__go { background: var(--ink); color: var(--white); }
.off--main { background: var(--blue); color: var(--white); --focus: var(--ink); }
.off--main .off__ico, .off--main .off__go { background: rgba(255, 255, 255, 0.16); }
.off--main:hover .off__go { background: var(--white); color: var(--blue); }
@media (min-width: 768px) {
  .official__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
}
@media (min-width: 1200px) {
  .official__list { grid-template-columns: 1.25fr 1fr 1fr 1fr; }
  .off { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; min-height: 220px; padding: 12px 24px 24px 12px; gap: 0; }
  .off__title { align-self: end; margin-top: 32px; padding-left: 12px; padding-right: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -0.012em; }
  .off--main .off__title { font-size: 26px; max-width: 14ch; }
  .off__go { position: absolute; top: 12px; right: 12px; }
}

/* ---------- Социальные сети ---------- */
.social { padding-top: var(--section); }
.social__panel { display: grid; gap: 20px; padding: clamp(22px, 4vw, 56px); border-radius: var(--r-xl); background: var(--mint); color: var(--ink); --focus: var(--ink); }
.social__list { display: grid; gap: 10px; }
.soc {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 140px; padding: 56px 20px 18px; border-radius: var(--r-lg); /* 16 + 12 = 28 */
  transition: background-color 0.25s var(--ease);
}
.soc:hover { background: var(--glass-strong); }
.soc__ico { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.soc__ico .ico { width: 18px; height: 18px; }
.soc__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 1vw + 16px, 32px); line-height: 1.05; letter-spacing: -0.015em; }
.soc__handle { margin-top: 6px; font-size: 15px; font-weight: 500; color: #263b37; overflow-wrap: anywhere; }
.soc__go { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.7); transition: background-color 0.25s, color 0.25s; }
.soc__go .ico { width: 16px; height: 16px; }
.soc:hover .soc__go { background: var(--ink); color: var(--white); }
@media (min-width: 768px) {
  .social__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .soc { min-height: 210px; padding: 0 24px 22px; }
}
@media (min-width: 1200px) {
  .social__panel { grid-template-columns: 1fr 1.6fr; align-items: end; gap: 40px; }
  .social__title { align-self: start; }
}

/* ---------- Ведомственные ссылки ---------- */
.gov { padding-top: var(--section); padding-bottom: var(--section); }
.gov .sec-title { margin-bottom: clamp(18px, 2vw, 28px); }
.gov__list { display: grid; gap: 8px; }
.gv {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 112px; padding: 18px 60px 18px 20px; border-radius: var(--r-lg); /* 16 + 12 = 28 */ background: var(--white);
  transition: background-color 0.25s var(--ease);
}
.gv__name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.gv__url { font-size: 14px; color: var(--ink-2); }
.gv__go { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background-color 0.25s, color 0.25s; }
.gv__go .ico { width: 15px; height: 15px; }
.gv:hover .gv__go { background: var(--ink); color: var(--white); }
@media (min-width: 640px) { .gov__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 1024px) { .gov__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gv { min-height: 132px; } }

/* ---------- Футер ---------- */
.ftr { background: var(--ink); color: var(--white); --focus: var(--sky); }
.ftr__inner { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 88px) 28px; }
.ftr__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.ftr__mark { width: 56px; height: auto; fill: currentColor; }
.ftr__word { width: 72px; height: auto; fill: currentColor; }
.ftr__name { margin-top: 18px; max-width: 24ch; font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.2; }
.ftr__minpros { display: inline-block; margin-top: 14px; font-size: 14.5px; color: #C9CBD0; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.ftr__minpros:hover { color: var(--white); }
.ftr__social { display: flex; gap: 8px; margin-top: 22px; }
.ftr__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); transition: background-color 0.2s, color 0.2s; }
.ftr__social a:hover { background: var(--white); color: var(--ink); }
.ftr__contacts { display: grid; gap: 28px; }
.ftr__h { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin-bottom: 10px; color: var(--sky); }
.ftr__c p { font-size: 15px; line-height: 1.5; color: #D9DADD; }
.ftr__c p + p { margin-top: 8px; }
.ftr__c a { color: var(--white); }
.ftr__c a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr__bottom { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr__links a { font-size: 14.5px; color: #D9DADD; }
.ftr__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.ftr__copy { font-size: 13.5px; color: #A9ACB2; }
.ftr__sep { margin-inline: 6px; }
@media (min-width: 640px) { .ftr__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .ftr__inner { grid-template-columns: 1fr 3fr; column-gap: 48px; }
  .ftr__contacts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr__bottom { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Диалоги ---------- */
.dlg { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--ink); overflow: hidden; }
.dlg::backdrop { background: rgba(16, 15, 40, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlg[open] { display: grid; place-items: center; }
.dlg__box { position: relative; width: min(100% - 2 * var(--gutter), 1180px); }
.dlg__box--film { display: grid; gap: 10px; width: min(100% - 2 * var(--gutter), 1180px, calc((100svh - 190px) * 16 / 9)); }
.dlg__player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
/* Строка под плеером: 28 = 22 + 6 (кнопка-таблетка внутри таблетки) */
.dlg__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 6px 6px 22px; border-radius: 999px; }
.dlg__bar-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.dlg__bar-sep { margin-inline: 4px; font-weight: 500; color: var(--ink-2); }
.dlg__bar-dur { font-family: var(--font-text); font-weight: 500; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dlg__bar-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color 0.2s var(--ease); }
.dlg__bar-link:hover { background: var(--blue); }
.dlg__bar-link .ico { width: 16px; height: 16px; }
@media (max-width: 520px) { .dlg__bar-title { font-size: 15px; } .dlg__bar-dur { display: none; } .dlg__bar-sep { display: none; } .dlg__bar { padding-left: 16px; } }
.dlg__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.dlg__close { position: absolute; right: 0; bottom: calc(100% + 10px); background: var(--white); color: var(--ink); }
.dlg__close:hover { background: var(--paper); }
.dlg[open] .dlg__box { animation: dlg-in 0.4s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.dlg--search[open] { place-items: start center; }
/* Окно поиска: 36 = 24 (поле-таблетка) + 12; крестик 40 в поле 48: 20 + 4 = 24 */
.dlg__box--search {
  margin-top: clamp(16px, 10vh, 120px); width: min(100% - 2 * var(--gutter), 720px);
  padding: 12px; border-radius: 36px; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
}
.search { position: relative; display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 18px; border-radius: 999px; background: var(--white); }
.search .search__close { width: 40px; height: 40px; }
.search__ico { color: var(--ink-2); }
.search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.search__input::placeholder { color: #6B6E74; }
.search__input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__popular { padding: 16px 12px 8px; }
.search__hint { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.search__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.search__list { display: grid; gap: 2px; padding: 8px 0 2px; }
.search__list:empty { display: none; }
.search__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-radius: 22px; cursor: pointer; }
.search__opt[aria-selected="true"], .search__opt:hover { background: var(--white); }
.search__opt-title { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.search__opt-title mark { background: var(--sky-50); color: inherit; border-radius: 4px; padding: 0 2px; }
.search__opt-type { flex: none; font-size: 13px; color: var(--ink-2); }
.search__empty { padding: 16px 14px 10px; color: var(--ink-2); font-size: 15px; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 130;
  transform: translate(-50%, 16px); opacity: 0;
  padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--glass-strong);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Контрастная схема (версия для слабовидящих): меняются только цвета ---------- */
[data-contrast="on"] {
  --paper: #FFFFFF; --white: #FFFFFF; --ink: #000000; --ink-2: #000000;
  --blue: #1A0AA8; --blue-press: #000000; --mint: #FFFFFF; --mint-50: #FFFFFF; --orange: #FFFFFF; --orange-50: #FFFFFF;
  --sky: #FFFFFF; --sky-50: #FFFFFF; --chip: #FFFFFF; --chip-hover: #E8E8E8;
  --glass: #FFFFFF; --glass-strong: #FFFFFF; --glass-hdr: #FFFFFF; --focus: #000000;
}
[data-contrast="on"] .glass, [data-contrast="on"] .hdr__bar, [data-contrast="on"] .mega, [data-contrast="on"] .dlg__box--search { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
[data-contrast="on"] .dock, [data-contrast="on"] .ncard, [data-contrast="on"] .ann, [data-contrast="on"] .tile,
[data-contrast="on"] .off, [data-contrast="on"] .gv, [data-contrast="on"] .soc, [data-contrast="on"] .social__panel,
[data-contrast="on"] .chip, [data-contrast="on"] .film__plate, [data-contrast="on"] .vctl, [data-contrast="on"] .acc,
[data-contrast="on"] .msheet__search, [data-contrast="on"] .msheet__contrast, [data-contrast="on"] .util__link,
[data-contrast="on"] .what__btn, [data-contrast="on"] .hdr__sveden { box-shadow: inset 0 0 0 2px #000; }
[data-contrast="on"] .hdr__bar { box-shadow: 0 2px 0 #000; }
[data-contrast="on"] .tile--program, [data-contrast="on"] .off--main, [data-contrast="on"] .quote, [data-contrast="on"] .msheet__sveden { background: #000; color: #fff; }
[data-contrast="on"] .tile--program .tile__go, [data-contrast="on"] .off--main .off__ico, [data-contrast="on"] .off--main .off__go { background: #fff; color: #000; }
[data-contrast="on"] .ftr { background: #000; }
[data-contrast="on"] .ftr__h { color: #fff; }
[data-contrast="on"] .soc__handle, [data-contrast="on"] .ann__date { color: #000; }
[data-contrast="on"] .ann__title, [data-contrast="on"] .ncard__title, [data-contrast="on"] .gv__name, [data-contrast="on"] .mega__links a { text-decoration: underline; text-underline-offset: 3px; }
[data-contrast="on"] .logo, [data-contrast="on"] .cta__chev { color: #000; }
[data-contrast="on"] .cta { background: #000; }
[data-contrast="on"] .quote__tab[aria-selected="true"] { background: #fff; color: #000; }
[data-contrast="on"] .tile--brand .tile__mark { fill: #000; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
