/* ==========================================================================
   ЕКТС — Екатеринбургский колледж транспортного строительства
   Дизайн-система главной страницы
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Цвет */
  --ink:        #0B1220;
  --ink-80:     #26303F;
  --navy-900:   #0C1B2E;
  --navy-800:   #12263F;
  --navy-700:   #1B3A5E;
  --navy-100:   #E8EEF5;

  --accent:     #D9491F;   /* сигнальный оранжево-кирпичный */
  --accent-600: #B93A16;
  --accent-100: #FCEDE7;
  --amber:      #E6A23C;

  --paper:      #FFFFFF;
  --sand:       #F6F4EF;   /* тёплый фон секций */
  --card:       #F3F4F6;
  --muted:      #5F6B7C;
  --muted-2:    #97A1AF;
  --line:       rgba(11, 18, 32, .10);
  --line-2:     rgba(11, 18, 32, .06);
  --line-dark:  rgba(255, 255, 255, .14);

  /* Типографика */
  --font-display: 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Раскладка */
  --container: 1280px;
  --gut: 24px;
  --pad-x: clamp(20px, 4vw, 48px);

  /* Радиусы */
  --r-chip: 999px;
  --r-card: 14px;
  --r-photo: 20px;
  --r-lg: 28px;

  /* Движение */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 200ms var(--ease);
  --t: 320ms var(--ease);
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'liga' 1, 'kern' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   3. Утилиты раскладки
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy-900); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.section--dark .eyebrow { color: rgba(255,255,255,.55); }

.h-display { font-size: clamp(36px, 5.2vw, 72px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.h-section { font-size: clamp(28px, 3.8vw, 50px); font-weight: 600; letter-spacing: -.028em; line-height: 1.06; }
.h-card    { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.015em; line-height: 1.24; }

.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.62; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: rgba(255,255,255,.7); }

.dim { color: var(--muted-2); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head > div { max-width: 720px; }

/* --------------------------------------------------------------------------
   4. Кнопки и ссылки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-chip);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-1px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy-800); transform: translateY(-1px); }

.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--navy-100); }

.btn--outline-light { border: 1px solid var(--line-dark); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }
.section--dark .link-arrow { color: #fff; border-color: var(--line-dark); }
.section--dark .link-arrow:hover { color: var(--amber); border-color: var(--amber); }

/* --------------------------------------------------------------------------
   5. Шапка
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  letter-spacing: -.005em;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { transition: color var(--t-fast); }
.topbar a:hover { color: #fff; }
.topbar__accessibility {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-dark); border-radius: var(--r-chip);
  padding: 4px 12px;
}
.topbar__accessibility svg { width: 15px; height: 15px; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__mark {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.brand__sub { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; margin-top: 3px; max-width: 260px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 9px 12px;
  border-radius: var(--r-chip);
  font-size: 14.5px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-80);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--card); color: var(--ink); }

.header__cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--navy-900); color: #fff;
  padding: 24px var(--pad-x) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 420ms var(--ease);
  overflow-y: auto;
}
.mobile-menu:not(.is-open) { visibility: hidden; }
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mobile-menu__close { width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 12px; display: grid; place-items: center; }
.mobile-menu__close svg { width: 20px; height: 20px; }
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500; letter-spacing: -.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }

/* --------------------------------------------------------------------------
   6. Герой
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 84px); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; top: -280px; right: -220px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,73,31,.09), transparent 66%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-100);
  color: var(--accent-600);
  border-radius: var(--r-chip);
  padding: 7px 16px 7px 8px;
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 24px;
}
.hero__badge b {
  background: var(--accent); color: #fff;
  border-radius: var(--r-chip);
  padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { margin-bottom: 32px; max-width: 54ch; }

.hero__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
}
.tile {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  font-weight: 600; font-size: 15.5px;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.tile__icon { width: 20px; height: 20px; flex: none; color: var(--accent); transition: color var(--t-fast); }
.tile__arrow { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--muted-2); transition: transform var(--t-fast), color var(--t-fast); }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile:hover .tile__arrow { transform: translate(3px, -3px); color: var(--ink); }
.tile--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile--accent .tile__icon { color: var(--amber); }
.tile--accent .tile__arrow { color: rgba(255,255,255,.6); }
.tile--accent:hover { background: var(--accent); border-color: var(--accent); }
.tile--accent:hover .tile__icon, .tile--accent:hover .tile__arrow { color: #fff; }

.hero__proof { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hero__proof-sep { width: 1px; align-self: stretch; background: var(--line); flex: none; }
.hero__proof-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.hero__proof-txt { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Фото-композиция героя */
.hero__media { position: relative; }
.hero__photo {
  border-radius: var(--r-photo);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--card);
  position: relative;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,17,29,.58), transparent 40%);
}
.hero__caption {
  position: absolute; left: 22px; right: 22px; top: 20px;
  color: #fff; z-index: 2;
  font-size: 14px; letter-spacing: -.005em;
  display: flex; align-items: center; gap: 9px;
}
.hero__caption svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.hero__caption span { text-wrap: balance; }

.hero__card {
  position: absolute; left: -28px; bottom: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
  width: 232px;
  box-shadow: 0 18px 44px -22px rgba(11,18,32,.34);
}
.hero__card-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.hero__card-value { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero__card-note { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* --------------------------------------------------------------------------
   7. Полоса статистики
   -------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat { padding: 34px 28px 34px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 28px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: .5em; color: var(--accent); top: -.7em; }
.stat__label { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.35; }

/* --------------------------------------------------------------------------
   8. Специальности
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { white-space: nowrap; }
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-80);
  background: var(--paper);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.program {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.program:hover { border-color: rgba(11,18,32,.22); transform: translateY(-3px); box-shadow: 0 22px 48px -30px rgba(11,18,32,.4); }
.program__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.program__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.program:hover .program__media img { transform: scale(1.05); }
.program__code {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--r-chip);
  padding: 5px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.program__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.program__title { margin-bottom: 6px; }
.program__qual { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.program__meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  margin-top: auto;
}
.program__meta div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-80); }
.program__meta svg { width: 15px; height: 15px; flex: none; color: var(--muted-2); }
.program__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.badge-free {
  font-size: 12px; font-weight: 600;
  color: #17683F; background: #E7F4EC;
  border-radius: var(--r-chip); padding: 5px 11px;
}
.badge-paid { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--card); border-radius: var(--r-chip); padding: 5px 11px; }

/* --------------------------------------------------------------------------
   9. Тёмная секция «Почему ЕКТС»
   -------------------------------------------------------------------------- */
.why { position: relative; overflow: hidden; }
.why__bg { position: absolute; inset: 0; opacity: .13; }
.why__bg img { width: 100%; height: 100%; object-fit: cover; }
.why__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-900) 0%, rgba(12,27,46,.6) 45%, var(--navy-900) 100%); }
.why .container { position: relative; z-index: 2; }

.reasons { display: grid; gap: 0; margin-top: clamp(32px, 4vw, 52px); }
.reason {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr) 232px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  transition: padding-left var(--t);
}
.reason:last-child { border-bottom: 1px solid var(--line-dark); }
.reason:hover { padding-left: 12px; }
.reason__num { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
.reason__title { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.reason__text { font-size: 15px; color: rgba(255,255,255,.66); line-height: 1.55; }
.reason__tag { justify-self: end; font-size: 12.5px; font-weight: 600; color: var(--amber); border: 1px solid rgba(230,162,60,.35); border-radius: var(--r-chip); padding: 6px 14px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   10. Бенто «Жизнь колледжа»
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 16px;
}
.bento__item {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.bento__item:hover img { transform: scale(1.05); }
.bento__item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(9,17,29,.88)); }
.bento__cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  color: #fff;
}
.bento__cap b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.bento__cap span { font-size: 13px; opacity: .78; }

.bento__item--wide { grid-column: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__item--fill {
  background: var(--accent); display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; color: #fff;
}
.bento__item--fill::after { display: none; }
.bento__item--fill .bento__big { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.bento__item--fill p { font-size: 14px; opacity: .92; line-height: 1.45; }
.bento__item--navy { background: var(--navy-800); }

/* --------------------------------------------------------------------------
   11. Работодатели
   -------------------------------------------------------------------------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.partner {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background var(--t-fast);
}
.partner:hover { background: var(--sand); }
.partner__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.partner__note { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   12. Приём: шаги
   -------------------------------------------------------------------------- */
.admission { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.018em; margin-bottom: 6px; }
.step__text { font-size: 15px; color: var(--muted); line-height: 1.55; }

.admission__panel {
  background: var(--navy-900); color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 44px);
  position: sticky; top: 100px;
}
.admission__panel h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }
.admission__panel p { color: rgba(255,255,255,.7); font-size: 15.5px; line-height: 1.6; }
.docs { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 0; }
.docs li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 15px; color: rgba(255,255,255,.86);
}
.docs li:last-child { border-bottom: 1px solid var(--line-dark); }
.docs svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--amber); }
.admission__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   13. Новости
   -------------------------------------------------------------------------- */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-item { display: flex; flex-direction: column; }
.news-item__media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; background: var(--card); margin-bottom: 18px; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.news-item:hover .news-item__media img { transform: scale(1.05); }
.news-item__cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.news-item__title { font-family: var(--font-display); font-size: 19.5px; font-weight: 600; letter-spacing: -.018em; line-height: 1.28; transition: color var(--t-fast); }
.news-item:hover .news-item__title { color: var(--accent); }
.news-item__date { font-size: 13.5px; color: var(--muted-2); margin-top: 12px; }

/* --------------------------------------------------------------------------
   14. Бегущая строка достижений
   -------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ach {
  display: flex; align-items: center; gap: 16px;
  min-width: 350px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 22px;
}
.ach__year {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--accent); font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--line); padding-right: 16px;
}
.ach__text { font-size: 14.5px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   15. Контакты и подвал
   -------------------------------------------------------------------------- */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  background: var(--paper);
}
.contact-card__label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.contact-card__value { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.contact-card__note { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 18px; font-family: var(--font-body); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #fff; }
.footer__brand .brand__mark { background: rgba(255,255,255,.1); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 26px; font-size: 13.5px; color: rgba(255,255,255,.44); }

/* --------------------------------------------------------------------------
   16. Появление при скролле
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1220px) {
  .header .brand__sub { display: none; }
  .nav__link { padding: 9px 10px; font-size: 14px; }
}

@media (max-width: 1160px) {
  /* Чипы не переносим: ниже этой ширины последний элемент повисает
     отдельной строкой — превращаем ряд в горизонтальную ленту. */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--pad-x) * -1);
    padding-inline: var(--pad-x);
  }
  .filters::-webkit-scrollbar { display: none; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__cta { margin-left: auto; }
  .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-item:last-child { display: none; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__card { left: auto; right: -12px; bottom: -28px; }
  .admission { grid-template-columns: minmax(0, 1fr); }
  .admission__panel { position: static; }
  .reason { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
  .reason__text, .reason__tag { grid-column: 2; }
  .reason__text { margin-top: 6px; }
  .reason__tag { justify-self: start; margin-top: 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .bento__item--tall { grid-row: span 1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header__cta .btn--primary { display: none; }
  .hero__badge { flex-wrap: wrap; border-radius: 14px; padding: 8px 14px 8px 8px; font-size: 13px; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__proof-sep { display: none; }
  .hero__proof > div + div { padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }
  .topbar__links { display: none; }
  .topbar__row { justify-content: space-between; }
  .programs { grid-template-columns: minmax(0, 1fr); }
  .hero__tiles { grid-template-columns: minmax(0, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 18px 24px 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; padding-left: 18px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: span 2; border-right: 0; padding-left: 0; }
  .partners { grid-template-columns: minmax(0, 1fr); }
  .news { grid-template-columns: minmax(0, 1fr); }
  .news-item:last-child { display: flex; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 190px; }
  .bento__item--wide { grid-column: span 1; }
  .hero__card { position: static; width: auto; margin-top: 16px; }
  .section-head { align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   18. Служебное
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }
.header.is-stuck { box-shadow: 0 12px 32px -26px rgba(11,18,32,.55); }
.hero__proof-num { white-space: nowrap; }

.footer__brand .brand__mark,
.mobile-menu__top .brand__mark { background: rgba(255,255,255,.10); border: 1px solid var(--line-dark); color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); max-width: none; }
