/* ==========================================================================
   АМЛ Занятость — стили портала
   Визуальный язык взят из логотипа Академии молодых лидеров: чернильный фон,
   изумрудное сияние, белый геометрический гротеск и вертикальная черта
   со скруглёнными концами. Черта повторяется как маркер: у заголовков разделов,
   типов предложений, пунктов списков.
   ========================================================================== */

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-var.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-var.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

/* --- Токены ------------------------------------------------------------- */

:root,
.plate,
.topbar {
  color-scheme: dark;
  --bg: #0c0a12;
  --surface: #15131d;
  --raise: #1e1b29;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f1;
  --muted: #a9a7b7;
  --accent: #2bd9a6;
  --btn-bg: #2bd9a6;
  --btn-bg-hover: #5be6bd;
  --btn-text: #04130e;
  --danger: #ff8a7a;
  --warn: #f1c761;
  --blue: #9dbdff;
  --focus: #8df5d3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --card-edge: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 45%, rgba(43, 217, 166, 0.22));
  --spot: rgba(43, 217, 166, 0.16);
  --page-glow: radial-gradient(58% 100% at 8% 0%, rgba(1, 131, 87, 0.34), rgba(1, 131, 87, 0) 70%),
    radial-gradient(36% 80% at 92% 0%, rgba(25, 224, 168, 0.1), rgba(25, 224, 168, 0) 70%);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f3ee;
  --surface: #ffffff;
  --raise: #e7e9e2;
  --line: rgba(12, 10, 18, 0.11);
  --line-strong: rgba(12, 10, 18, 0.3);
  --text: #0c0a12;
  --muted: #595766;
  --accent: #016f4a;
  --btn-bg: #018357;
  --btn-bg-hover: #016f4a;
  --btn-text: #ffffff;
  --danger: #b3261e;
  --warn: #7d5a00;
  --blue: #2a4fae;
  --focus: #018357;
  --shadow: 0 24px 60px rgba(12, 10, 18, 0.14);
  --card-edge: linear-gradient(160deg, rgba(12, 10, 18, 0.16), rgba(12, 10, 18, 0.06) 45%, rgba(1, 131, 87, 0.4));
  --spot: rgba(1, 131, 87, 0.1);
  --page-glow: radial-gradient(58% 100% at 8% 0%, rgba(1, 131, 87, 0.2), rgba(1, 131, 87, 0) 70%),
    radial-gradient(36% 80% at 92% 0%, rgba(25, 224, 168, 0.14), rgba(25, 224, 168, 0) 70%);
}
:root {
  --emerald: #018357;
  --ink: #0c0a12;
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1200px;
  --topbar-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* --- Основа ------------------------------------------------------------- */

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

[hidden] { display: none !important; }
/* кнопки, которые работают только со скриптами, без них не показываются */
html:not(.js) .js-only { display: none !important; }
.is-busy { opacity: 0.6; pointer-events: none; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; position: relative; isolation: isolate; }
/* мягкое изумрудное свечение в начале каждой внутренней страницы */
main::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 560px;
  background: var(--page-glow); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
}
.has-hero main::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 4.8vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.5rem); }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(43, 217, 166, 0.32); }

img, svg { max-width: 100%; }
/* длинные адреса и слова без пробелов переносятся, а не раздвигают страницу */
h1, h2, h3, p, li, dd, dt, label, legend, figcaption, .quote, .flash, .notice { overflow-wrap: anywhere; }
/* в таблицах слова не рвём посередине: очень длинное слово раздвинет таблицу, и она прокрутится внутри .table-wrap */
td, th { overflow-wrap: break-word; }
td p, td li { overflow-wrap: break-word; }
.vrow__main, .vrow__side, .app__main, .pf__main, .dash__main, .dash__side, .fb > *, .cols > *, .apply__box > *, .ctile > *, .chead > div { min-width: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inline { display: inline; }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.lead--tight { margin-bottom: 28px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* Заголовок раздела с чертой из логотипа */
.title { display: flex; align-items: center; gap: 0.5em; }
.title::before { content: ""; flex: none; width: 0.16em; min-width: 5px; height: 0.86em; border-radius: 0.1em; background: var(--accent); }

/* --- Кнопки -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.25s, transform 0.18s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: scale(0.98); }
.btn--lg { padding: 17px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 9px 16px; font-size: 0.9375rem; }
.btn--block { display: flex; width: 100%; }
.btn--glow { box-shadow: 0 0 0 0 rgba(43, 217, 166, 0), 0 10px 34px -8px rgba(43, 217, 166, 0.55); }
.btn--glow:hover { box-shadow: 0 0 0 6px rgba(43, 217, 166, 0.16), 0 14px 40px -6px rgba(43, 217, 166, 0.7); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--text); }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: var(--bg); }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.link-btn:hover { text-decoration-thickness: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1.5px solid transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn__label { display: none; }

/* --- Тёмная плашка: герой, подвал, декоративные блоки. Всегда как логотип -- */

.plate { position: relative; background: var(--bg); color: var(--text); isolation: isolate; overflow: hidden; }

/* зерно гасит полосы на тёмных градиентах и добавляет «плёночную» фактуру */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }
.grain > .aurora, .grain > .aurora-gl, .grain > .foot__mark { z-index: -1; position: absolute; }

/* Сияние на CSS: запасной вариант для героя и основной для небольших блоков */
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; display: block; border-radius: 50%; }
.aurora i:nth-child(1) {
  width: 150vmax; height: 96vmax; left: -72vmax; top: -30vmax;
  border: 10vmax solid var(--emerald); filter: blur(4.5vmax); opacity: 0.95; transform: rotate(-14deg);
}
.aurora i:nth-child(2) {
  width: 138vmax; height: 86vmax; left: -68vmax; top: -27vmax;
  border: 2.4vmax solid #19e0a8; filter: blur(3vmax); opacity: 0.38; transform: rotate(-14deg);
}
.aurora i:nth-child(3) {
  width: 60vmax; height: 46vmax; left: -28vmax; bottom: -34vmax;
  background: radial-gradient(closest-side, #00e3a9, rgba(0, 227, 169, 0) 100%); filter: blur(2vmax); opacity: 0.55;
}
/* вариант для блоков внутри страницы: та же дуга, но размеры считаются от самого блока */
.aurora--band i:nth-child(1) { width: 186%; height: 172%; left: -103%; top: -62%; border-width: 84px; filter: blur(44px); transform: none; }
.aurora--band i:nth-child(2) { width: 178%; height: 160%; left: -99%; top: -56%; border-width: 14px; filter: blur(22px); transform: none; opacity: 0.3; }
.aurora--band i:nth-child(3) { width: 60%; height: 90%; left: -22%; bottom: -55%; filter: blur(34px); opacity: 0.42; }

/* Холст с живым сиянием поверх запасного варианта */
.aurora-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: 0; transition: opacity 1.2s ease; }
.aurora-gl.is-on { opacity: 1; }
.aurora-gl.is-on ~ .aurora, .plate:has(.aurora-gl.is-on) > .aurora { visibility: hidden; }

/* --- Шапка --------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 50; color: var(--text);
  background: rgba(12, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s, border-color 0.25s;
}
:root[data-theme="light"] .topbar { background: rgba(12, 10, 18, 0.96); }
/* на главной шапка лежит поверх сияния и проявляется только при прокрутке */
.has-hero .topbar:not(.is-stuck) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.top { display: flex; align-items: center; gap: 28px; min-height: var(--topbar-h); position: relative; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: none; }
.brand .mark { width: 40px; height: auto; display: block; transition: transform 0.4s var(--ease); }
.brand:hover .mark { transform: translateY(-2px); }
.brand__bar { width: 3px; height: 40px; border-radius: 3px; background: currentColor; flex: none; }
.brand__name { font: 700 0.9375rem/1.08 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav a:not(.btn) { position: relative; color: var(--text); text-decoration: none; font-weight: 500; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__gap { flex: 1; }
.nav .link-btn { color: var(--muted); text-decoration: none; }
.nav .link-btn:hover { color: var(--text); }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: none; border: 1.5px solid var(--line-strong); color: var(--text); cursor: pointer; position: relative; }
.burger i, .burger i::before { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.burger i { top: 17px; }
.burger i::before { left: 0; right: 0; top: 7px; }
.burger i, .burger i::before { transition: transform 0.2s var(--ease), top 0.2s var(--ease); }
.burger[aria-expanded="true"] i { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i::before { top: 0; transform: rotate(-90deg); }

/* --- Герой: заголовок-форма и живые карточки ------------------------------ */

.plate--hero {
  margin-top: calc(-1 * var(--topbar-h) - 1px);
  padding-top: var(--topbar-h);
  min-height: min(100vh, 860px);
  display: flex; flex-direction: column;
}
.hero {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: clamp(28px, 4vw, 64px); align-items: center;
  padding-block: clamp(36px, 7vh, 84px) clamp(40px, 7vh, 80px);
}

.finder__sentence {
  font-family: var(--font-display);
  letter-spacing: -0.008em;
  margin: 0;
  font-size: clamp(1.75rem, 3.55vw, 2.875rem);
  line-height: 1.26;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  text-wrap: initial;
}
.finder__line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.28em; min-width: 0; min-height: 1.26em; }

.finder__select,
.finder__input {
  font: inherit;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-bottom: 0.07em solid currentColor;
  border-radius: 0;
  padding: 0 0 0.02em;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  text-shadow: 0 0 34px rgba(43, 217, 166, 0.45);
}
.finder__select {
  appearance: none; -webkit-appearance: none;
  padding-right: 0.75em;
  cursor: pointer;
  text-overflow: ellipsis;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232bd9a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.05em center / 0.45em auto;
  transition: color 0.2s;
}
.finder__select:hover { color: #7ff0cf; }
.finder__select option { font: 400 1rem var(--font-body); color: #f4f4f1; background: #15131d; text-shadow: none; }
.finder__input { width: 100%; text-overflow: ellipsis; }
.finder__input::placeholder { color: rgba(255, 255, 255, 0.4); text-shadow: none; }
.finder__select:focus-visible,
.finder__input:focus-visible { outline: none; border-bottom-color: #fff; }
.combo--inline { flex: 1 1 8em; min-width: 0; font-size: 1em; }

.finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 5vh, 44px); }
.finder__all { color: var(--text); }
.hero__note { margin-top: clamp(24px, 5vh, 48px); color: rgba(244, 244, 241, 0.74); max-width: 56ch; font-size: 0.9375rem; }

.live { display: grid; gap: 14px; }
.live__label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.9375rem; color: rgba(244, 244, 241, 0.8); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(43, 217, 166, 0.7); animation: pulse 2.4s ease-out infinite; }
.live__list { display: grid; gap: 12px; }
.lcard {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px;
  background: rgba(16, 14, 24, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.2s, background-color 0.2s;
}
a.lcard:hover { transform: translateX(-6px); border-color: rgba(43, 217, 166, 0.7); background: rgba(16, 14, 24, 0.74); }
.lcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.lcard__pay { color: rgba(244, 244, 241, 0.78); white-space: nowrap; }
.lcard__title { font: 600 1.125rem/1.25 var(--font-display); }
.lcard__meta { font-size: 0.875rem; color: rgba(244, 244, 241, 0.66); }
.lcard--empty { margin: 0; font-size: 0.9375rem; color: rgba(244, 244, 241, 0.8); }
.lcard.is-new { animation: card-in 0.5s var(--ease) both; }

/* Лента направлений */
.ticker { display: flex; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(12, 10, 18, 0.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ticker__label { flex: none; margin: 0; padding: 16px 22px 16px var(--gutter); font-size: 0.875rem; color: rgba(244, 244, 241, 0.7); border-right: 1px solid rgba(255, 255, 255, 0.1); }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; }
.ticker li::after { content: ""; width: 3px; height: 16px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); margin-inline: 22px; }
.ticker a { padding: 16px 0; color: rgba(244, 244, 241, 0.86); text-decoration: none; white-space: nowrap; font-size: 0.9375rem; }
.ticker a b { font-weight: 600; color: var(--accent); margin-right: 6px; }
.ticker a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }

/* Появление героя при загрузке — один согласованный момент */
.finder__line, .finder__actions, .hero__note, .live { animation: rise 0.9s var(--ease) both; }
.finder__line:nth-child(2) { animation-delay: 0.08s; position: relative; z-index: 6; }  /* в этой строке список специальностей: он должен быть поверх соседних блоков */
.finder__line:nth-child(3) { animation-delay: 0.16s; }
.finder__actions { animation-delay: 0.26s; }
.hero__note { animation-delay: 0.36s; }
.live { animation-delay: 0.3s; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes card-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(43, 217, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 217, 166, 0); } }

/* --- Сообщения ----------------------------------------------------------- */

.flashes { padding-top: 20px; display: grid; gap: 8px; position: relative; z-index: 2; }
.flash, .notice {
  margin: 0; padding: 14px 18px; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.flash--error, .notice--error { border-left-color: var(--danger); }
.flash--info, .notice--warn { border-left-color: var(--warn); }
.notice { margin-bottom: 24px; }

/* --- Страницы и секции --------------------------------------------------- */

.page { padding-block: clamp(36px, 5.5vw, 68px) clamp(56px, 8vw, 104px); }
.page--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.page__head { margin-bottom: clamp(28px, 4vw, 44px); }
.page__head h1 + .lead, .page__head h1 + .muted { margin-top: 16px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--surface); }
.section--flush { padding-bottom: 0; }
.section__lead { margin: -10px 0 26px; color: var(--muted); max-width: 64ch; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section > .wrap > h2, .section--flush > h2 { margin-bottom: 36px; }
.more { font-weight: 500; white-space: nowrap; }

.back { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back::before { content: "←"; margin-right: 8px; display: inline-block; transition: transform 0.2s var(--ease); }
.back:hover { color: var(--text); }
.back:hover::before { transform: translateX(-4px); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }

.empty { padding: clamp(28px, 4vw, 44px); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); max-width: 720px; }
.empty h2, .empty h3 { font-size: 1.375rem; margin-bottom: 10px; }
.empty .btn { margin-top: 8px; }

/* Карточка с тонкой градиентной кромкой и подсветкой под курсором */
.ctile, .format, .card, .apply__box, .invite, .panel, .stat {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--card-edge) border-box;
}
.section--tint .ctile, .section--tint .format { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--card-edge) border-box; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; }

/* --- Типы предложений, метки, статусы ------------------------------------ */

.kind { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.kind::before { content: ""; width: 4px; height: 1.05em; border-radius: 3px; background: currentColor; }
.kind--internship { color: var(--blue); }
.kind--parttime { color: var(--warn); }

.tag { display: inline-block; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8125rem; color: var(--muted); }
.tag--ok { color: var(--accent); border-color: currentColor; }

.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.status--invited { color: var(--blue); border-color: currentColor; }
.status--accepted { background: var(--btn-bg); color: var(--btn-text); border-color: transparent; }
.status--rejected { color: var(--danger); border-color: currentColor; }
.status--new { color: var(--text); }

/* --- Список предложений -------------------------------------------------- */

.vlist { border-top: 1px solid var(--line); }
.vrow {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
/* черта из логотипа выезжает слева, когда строка под курсором */
.vrow::before {
  content: ""; position: absolute; left: -18px; top: 26px; bottom: 26px; width: 4px; border-radius: 4px;
  background: var(--accent); transform: scaleY(0); transform-origin: center; transition: transform 0.3s var(--ease);
}
.vrow:hover::before, .vrow:focus-within::before { transform: scaleY(1); }
.vrow--internship::before { background: var(--blue); }
.vrow--parttime::before { background: var(--warn); }
.vrow__logo { display: block; align-self: start; text-decoration: none; position: relative; z-index: 1; }
.vrow__logo .clogo { transition: transform 0.3s var(--ease); }
.vrow:hover .vrow__logo .clogo { transform: scale(1.06); }
.vrow__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 8px; font-size: 0.9375rem; color: var(--muted); }
.vrow__title { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.vrow__title a { color: var(--text); text-decoration: none; }
/* вся строка кликабельна; остальные ссылки и кнопки лежат выше */
.vrow__title a::after { content: ""; position: absolute; inset: 0; }
.vrow:hover .vrow__title a { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.vrow__company { margin: 6px 0 0; color: var(--muted); }
.vrow__company a { color: var(--text); position: relative; z-index: 1; }
.vrow__summary { margin: 10px 0 0; max-width: 68ch; }
.vrow__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.vrow__facts li { padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.section--tint .vrow__facts li { background: var(--bg); }
.vrow__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 190px; }
.vrow__pay { margin: 0; font: 600 1.1875rem/1.3 var(--font-display); }
.vrow__pay--none { color: var(--muted); font-weight: 500; }
.vrow__deadline { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.fav { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--muted); font: 500 0.875rem var(--font-body); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.fav:hover { color: var(--text); border-color: var(--text); }
.fav.is-on { color: var(--accent); border-color: currentColor; }
.fav.is-on svg path { fill: currentColor; }
.fav--wide { width: 100%; justify-content: center; padding: 10px; margin-top: 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 32px; }

/* --- Три формата --------------------------------------------------------- */

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.format {
  --tone: var(--accent);
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
  padding: 30px; border-radius: var(--radius-xl); overflow: hidden;
  color: var(--text); text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.format--internship { --tone: var(--blue); }
.format--parttime { --tone: var(--warn); }
.format:hover { transform: translateY(-6px); }
/* свечение в углу — цветом своего формата */
.format::after {
  content: ""; position: absolute; left: -30%; bottom: -55%; width: 90%; height: 100%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tone), transparent); opacity: 0.2; filter: blur(20px);
  transition: opacity 0.35s, transform 0.5s var(--ease); pointer-events: none;
}
.format:hover::after { opacity: 0.42; transform: scale(1.15); }
.format__count { font: 600 clamp(3.5rem, 6vw, 5rem)/0.9 var(--font-display); color: var(--tone); letter-spacing: -0.02em; }
.format h3 { font-size: 1.75rem; margin-top: 18px; }
.format p { margin: 0; color: var(--muted); }
.format__link { font-weight: 600; color: var(--tone); margin-top: auto; padding-top: 10px; }

/* --- Компании ------------------------------------------------------------ */

.clogo {
  display: inline-grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 100%, #019a67 0%, #0c0a12 62%);
  color: #f4f4f1; font: 700 1.125rem/1 var(--font-display); letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.clogo--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 0.8125rem; }
.clogo--md { width: 52px; height: 52px; border-radius: 15px; font-size: 1.0625rem; }
.clogo--lg { width: 76px; height: 76px; border-radius: 21px; font-size: 1.5rem; }
.clogo--xl { width: 120px; height: 120px; border-radius: 30px; font-size: 2.375rem; }
/* Отступы заданы в пикселях: проценты считались бы от ширины родителя, а не самой плашки */
.clogo--img { background: #fff; padding: 7px; box-shadow: inset 0 0 0 1px rgba(12, 10, 18, 0.12); }
.clogo--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.clogo--sm.clogo--img { padding: 5px; }
.clogo--lg.clogo--img { padding: 11px; }
.clogo--xl.clogo--img { padding: 18px; }
.clogo--icon.clogo--img { padding: 5px; }
.clogo--sm.clogo--icon { padding: 4px; }
/* светлый логотип — на тёмной подложке цвета фона Академии */
.clogo--dark { background: #0c0a12; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
/* широкий логотип: плашка вытягивается по его пропорциям */
.clogo--wide { width: auto; max-width: 100%; align-self: flex-start; }
.clogo--w2 { aspect-ratio: 2 / 1; }
.clogo--w3 { aspect-ratio: 3 / 1; }
.clogo--w4 { aspect-ratio: 4 / 1; }
.clogo--lg.clogo--wide { height: 66px; border-radius: 18px; padding: 13px 20px; }
.clogo--xl.clogo--wide { height: 88px; border-radius: 24px; padding: 18px 26px; max-width: min(100%, 320px); }

.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.ctile { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--radius-xl); color: var(--text); text-decoration: none; transition: transform 0.35s var(--ease); }
.ctile:hover { transform: translateY(-6px); }
.ctile > .clogo { margin-bottom: 0; }
.ctile > .clogo.clogo--wide { margin-block: 5px; }  /* широкая плашка ниже квадратной на 10px — выравниваем */
.ctile h2, .ctile h3 { font-size: 1.625rem; margin-top: 14px; }
.ctile__industry { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.ctile__text { margin: 0; flex: 1; }
.ctile__cluster { display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font-size: 0.8125rem; font-weight: 600; }
.ctile__count { color: var(--accent); font-weight: 600; margin-top: 8px; }

.chead { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 40px; }
.chead > div { flex: 1; min-width: 240px; }
.chead__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 0; color: var(--muted); }
.cbody { max-width: 760px; }

.invite { margin-top: clamp(48px, 7vw, 80px); padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-xl); max-width: 860px; }
.invite h2 { font-size: 1.625rem; margin-bottom: 12px; }
.invite .btn { margin-top: 8px; }
.invite .cta { margin-top: 8px; gap: 4px 12px; }
.contacts__list { display: flex; flex-wrap: wrap; gap: 18px 44px; margin: 18px 0 0; }
.contacts__list dt { font-size: 0.875rem; color: var(--muted); margin-bottom: 2px; }
.contacts__list dd { margin: 0; font-weight: 600; font-size: 1.0625rem; overflow-wrap: break-word; }
.contacts__note { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.contacts__legal { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); max-width: 76ch; }
.contacts > .contacts__legal:first-of-type:nth-child(2) { border-top: 0; padding-top: 0; margin-top: 8px; }

.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.plist a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color 0.2s; }
.plist a:hover { border-color: var(--accent); }

/* --- Шаги: линия времени -------------------------------------------------- */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--line-strong) 85%); }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px;
  font: 600 1.5rem/1 var(--font-display); color: var(--accent);
  background: var(--surface); border: 2px solid var(--accent); position: relative;
  transition: background-color 0.25s, color 0.25s;
}
.steps li:hover::before { background: var(--accent); color: var(--btn-text); }
:root[data-theme="light"] .steps li:hover::before { color: #fff; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* --- Призыв к регистрации -------------------------------------------------- */

.band { border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 72px); min-height: 340px; display: flex; align-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.band__body { max-width: 640px; display: grid; gap: 18px; justify-items: start; }
.band h2 { font-size: clamp(1.625rem, 3.2vw, 2.5rem); }
.band p { margin: 0; color: rgba(244, 244, 241, 0.8); }
.band .btn { margin-top: 10px; }
/* раздел, который ещё готовится */
.band--soon { min-height: min(62vh, 560px); }
.band--soon h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); color: #f4f4f1; }
.band--soon p { font-size: 1.125rem; max-width: 52ch; }
.soon__tag { display: inline-flex; align-items: center; gap: 10px; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent) !important; }
.soon__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(43, 217, 166, 0.18); }
.soon__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band--soon .btn--ghost { color: #f4f4f1; border-color: rgba(244, 244, 241, 0.4); }
.band--soon .btn--ghost:hover { border-color: #f4f4f1; }

/* --- Каталог ------------------------------------------------------------- */

.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.filters { position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.filters__box > summary { display: none; }
.filters__box { display: grid; gap: 4px; }
.filters .field { margin-bottom: 18px; }
.filters__actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.js .filters [data-catalog-submit] { display: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 0 0 12px; color: var(--muted); text-decoration: none; font: 600 1.1875rem var(--font-display); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color 0.15s; }
.tabs a span { font: 400 0.875rem var(--font-body); margin-left: 4px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.results__count { color: var(--muted); margin-bottom: 4px; }
.results { min-width: 0; transition: opacity 0.15s; }
.results.is-loading { opacity: 0.45; }
.results .vlist { border-top: 0; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.chips-row a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 0.875rem; transition: border-color 0.15s; }
.chips-row a i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; color: var(--muted); }
.chips-row a:hover { border-color: var(--accent); }
.chips-row a:hover i { background: var(--raise); color: var(--text); }
.chips-row a.chips-row__reset { background: none; border-color: transparent; color: var(--accent); padding-inline: 8px; text-decoration: underline; }

/* --- Страница предложения ------------------------------------------------ */

.vacancy { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(28px, 5vw, 76px); align-items: start; }
.vacancy__head h1 { font-size: clamp(1.875rem, 3.8vw, 3rem); }
.vacancy__company { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--text); font-weight: 600; text-decoration: none; }
.vacancy__company:hover span:last-child { text-decoration: underline; }
.vacancy__body h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.vacancy__body .lead { margin-top: 28px; color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 32px; margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.875rem; }
.facts dd { margin: 2px 0 0; font-weight: 500; }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 68ch; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 4px; height: 0.9em; border-radius: 3px; background: var(--accent); }

.speclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.code { display: inline-block; min-width: 5.2em; font-weight: 600; font-variant-numeric: tabular-nums; }

.apply { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.apply__box { padding: 28px; border-radius: var(--radius-xl); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; box-shadow: var(--shadow); }
.apply__box p { margin: 0; }
.apply__pay { font: 600 1.75rem/1.2 var(--font-display); text-wrap: balance; }
.vacancy__jump { display: none; margin: 18px 0 0; }
.favform { display: contents; }
.apply__deadline { color: var(--muted); }
.apply__box form { display: grid; gap: 12px; margin-top: 6px; }
.apply__box .field { margin: 0; }
.apply__comment { padding: 12px 14px; border-radius: var(--radius-s); background: var(--raise); }
.match { font-size: 0.9375rem; color: var(--muted); }
.match--yes { color: var(--accent); font-weight: 600; }
.match--yes::before { content: "✓"; margin-right: 8px; }
.apply__more h2 { font-size: 1.125rem; margin-bottom: 12px; }
.apply__more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.apply__more li { display: grid; }
.apply__more .muted { font-size: 0.875rem; }

/* --- Тексты -------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 6px; }
.legal { font-size: 1rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.errorpage { text-align: left; padding-block: clamp(64px, 12vw, 140px); }
.errorpage__code { font: 600 clamp(5rem, 18vw, 12rem)/0.85 var(--font-display); margin: 0 0 20px; letter-spacing: -0.03em; color: transparent; background: linear-gradient(120deg, #2bd9a6, #018357 60%, rgba(1, 131, 87, 0.2)); -webkit-background-clip: text; background-clip: text; }
.errorpage .lead { margin-top: 16px; }

/* --- Формы --------------------------------------------------------------- */

.form { display: grid; gap: 20px; max-width: 460px; }
.authpage--wide .form, .form--wide { max-width: 860px; gap: 0; }
.authpage { max-width: calc(520px + 2 * var(--gutter)); }
.authpage--wide { max-width: calc(860px + 2 * var(--gutter)); }
.authpage__alt { margin-top: 28px; color: var(--muted); }

/* Вход: форма и декоративная панель со знаком Академии */
.auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.auth__form { padding-block: clamp(8px, 4vw, 48px); }
.auth__art { border-radius: var(--radius-xl); min-height: 520px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; }
.auth__lockup { display: flex; align-items: center; gap: 18px; }
.auth__lockup .mark { width: 84px; height: auto; }
.auth__lockup .brand__bar { height: 88px; width: 4px; }
.auth__lockup .lockup__name { font-size: 1.375rem; }
.auth__line { font: 600 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--font-display); max-width: 14em; margin: 0; }

.formset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 30px 0 14px; min-width: 0; }
.formset > legend:not(.sr) { font: 600 1.375rem/1.2 var(--font-display); padding: 0 16px 0 0; float: left; width: 100%; margin-bottom: 20px; }
.formset > legend + * { clear: both; }
.formset--plain { display: grid; gap: 10px; }
.formset .formset__note { margin: -8px 0 18px; }

.field { margin: 0 0 20px; min-width: 0; border: 0; padding: 0; }
.field label:not(.check), .field legend { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9375rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.8125rem; margin-left: 4px; }
.field__hint { margin: 6px 0 0; color: var(--muted); font-size: 0.875rem; }
.field__error { margin: 6px 0 0; color: var(--danger); font-size: 0.875rem; font-weight: 500; }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field--pair > .field__error { grid-column: 1 / -1; }
.field--pair-wide { grid-template-columns: minmax(0, 1fr) 132px; }
.field--pair-lead { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); }
.field--double { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field--triple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }

.input {
  display: block; width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.input::placeholder { color: var(--muted); opacity: 0.85; }
.input:hover { border-color: var(--muted); }
.input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 24%, transparent); border-radius: var(--radius-m); }
.input:disabled { opacity: 0.6; cursor: not-allowed; }
textarea.input { resize: vertical; min-height: 96px; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field--error .input, .field--error > .combo .input { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; margin: 0; cursor: pointer; font-weight: 400; font-size: 1rem; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--btn-bg); flex: none; }
.check--error span { color: var(--danger); }
.checks--scroll { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 8px 12px; scrollbar-width: thin; }
.checks--scroll .check { font-size: 0.9375rem; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 12px; }

/* Поле с подсказками */
.combo { position: relative; }
.combo__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  max-height: 320px; overflow: auto;
  background: var(--raise); border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  font: 400 1rem/1.35 var(--font-body); color: var(--text); text-align: left; letter-spacing: 0; text-shadow: none;
}
.combo--inline .combo__list { min-width: min(520px, 86vw); }
.combo__list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--surface); }
.combo__list .combo__code { font-weight: 600; font-variant-numeric: tabular-nums; }
.combo__list .combo__hint { grid-column: 2; color: var(--muted); font-size: 0.8125rem; }
.combo__list .combo__empty { display: block; color: var(--muted); cursor: default; }
.combo__list .combo__empty:hover { background: none; }

/* --- Кабинет ------------------------------------------------------------- */

.subnav { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 0 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color 0.15s; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: clamp(28px, 4vw, 60px); align-items: start; }
.dash__side { display: grid; gap: 20px; }
.card { padding: 26px; border-radius: var(--radius-l); }
.card h2 { font-size: 1.25rem; margin-bottom: 14px; }
.card--danger { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(160deg, color-mix(in srgb, var(--danger) 70%, transparent), transparent 70%) border-box; }
.mini { margin: 0 0 16px; display: grid; gap: 10px; }
.mini dt { color: var(--muted); font-size: 0.8125rem; }
.mini dd { margin: 0; }
.meter { height: 6px; border-radius: 6px; background: var(--raise); overflow: hidden; margin-bottom: 10px; }
.meter span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--emerald), var(--accent)); }
.card .btn--block { margin-top: 14px; }
.applist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.applist li { display: grid; gap: 2px; justify-items: start; }
.applist a { color: var(--text); font-weight: 600; }
.applist .status { margin-top: 4px; }

/* путь студента на странице «О проекте» */
.path { list-style: none; counter-reset: path; margin: 22px 0 26px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.path li { counter-increment: path; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.path li::before { content: counter(path, decimal-leading-zero); grid-row: 1 / span 2; font: 600 1.75rem/1 var(--font-display); color: var(--accent); padding-top: 2px; }
.path h3 { font-size: 1.25rem; margin: 0 0 6px; }
.path p { margin: 0; grid-column: 2; }
.tabs--spaced { margin-bottom: 32px; }
.subnav.has-more, .tabs.has-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.subnav.has-before, .tabs.has-before { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.subnav.has-before.has-more, .tabs.has-before.has-more { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* портфолио */
.pf { border-top: 1px solid var(--line); margin-bottom: 36px; }
.pf__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pf__item.is-editing { box-shadow: inset 3px 0 0 var(--accent); padding-left: 18px; }
.pf__item h2 { font-size: 1.25rem; }
.pf__kind { margin: 0 0 4px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.pf__item .muted { margin: 2px 0 0; }
.pf__text { margin: 10px 0 0; max-width: 68ch; white-space: pre-line; }
.pf__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.9375rem; }
.pf__form { scroll-margin-top: 110px; }
.pf + .pf__form .formset { border-top: 0; padding-top: 0; }
.empty + .pf__form { margin-top: 36px; }

/* печатный бланк */
.blank { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); }
.blank__title { text-align: center; font-size: 1.25rem; margin: 0 0 24px; }
.blank h3 { font-size: 1rem; margin: 20px 0 6px; }
.blank__line { display: inline-block; min-width: 180px; border-bottom: 1px solid currentColor; height: 1.1em; vertical-align: baseline; }
.blank__line--wide { min-width: min(100%, 460px); }
.blank__line--short { min-width: 110px; }
.blank__line--tiny { min-width: 34px; }
.blank__hint { font-size: 0.75rem; color: var(--muted); }
.blank__sign { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 36px; }
@media print { .blank { border: 0; padding: 0; background: none; } .blank__hint { color: #444; } }

/* выбор из двух-трёх вариантов крупными кнопками */
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice__item { position: relative; margin: 0; cursor: pointer; font-weight: 500; }
.choice__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__item span { display: block; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color 0.15s, background 0.15s, color 0.15s; }
.choice__item:hover span { border-color: var(--accent); }
.choice__item input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.choice__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
/* поля о законном представителе видны, только когда выбрано «Мне ещё нет 18» */
.guardian { display: none; margin-top: 18px; }
.age:has(input[value="minor"]:checked) .guardian { display: block; }
@supports not selector(:has(*)) { .guardian { display: block; } }

/* приглашение заполнить анкету — первая строка кабинета */
.nudge { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; padding: 16px 20px; border-radius: var(--radius-l); color: var(--text); text-decoration: none; background: linear-gradient(100deg, color-mix(in srgb, var(--emerald) 30%, transparent), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: border-color 0.2s, transform 0.3s var(--ease); }
.nudge:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.nudge__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.nudge__text { flex: 1; min-width: 0; }
.nudge__go { flex: none; font-weight: 600; color: var(--accent); white-space: nowrap; }
.nudge__go::after { content: " →"; }

/* анкета обратной связи */
.fb { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px 56px; align-items: start; }
.fb__side { position: sticky; top: 104px; }
.fb__side p { margin: 0 0 10px; }
.fb__spec { margin-top: -4px; }
.rate { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.rate > legend { font-weight: 600; font-size: 0.9375rem; padding: 0; margin-bottom: 8px; }
.rate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rate__item { position: relative; margin: 0; cursor: pointer; }
.rate__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rate__item span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 600 1.0625rem/1 var(--font-display); transition: border-color 0.15s, background 0.15s, color 0.15s; }
.rate__item:hover span { border-color: var(--accent); }
.rate__item input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.rate__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.rate__hint { color: var(--muted); font-size: 0.875rem; margin-left: 6px; }
.empty--done { border-style: solid; border-color: var(--accent); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.apps { border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.app h2 { font-size: 1.375rem; }
.app h2 a { color: var(--text); text-decoration: none; }
.app h2 a:hover { text-decoration: underline; }
.app__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.app__comment { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); max-width: 68ch; }
.app .muted { margin: 4px 0 0; }

.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; max-width: 920px; }
.settings .form { gap: 0; }

/* --- Подвал -------------------------------------------------------------- */

.foot { margin-top: auto; padding-block: clamp(48px, 7vw, 88px) 28px; background: radial-gradient(80% 130% at 0% 100%, rgba(1, 131, 87, 0.55) 0%, rgba(12, 10, 18, 0) 62%), var(--bg); }
.foot__mark { right: -4%; bottom: -18%; width: min(46vw, 560px); opacity: 0.05; pointer-events: none; }
.foot__mark .mark { width: 100%; height: auto; display: block; }
.foot a, .foot .link-btn { color: var(--text); text-decoration: none; }
.foot a:hover, .foot .link-btn:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.foot__support { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot__label { color: var(--muted); margin-bottom: 18px; }
.supporters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(24px, 5vw, 64px); }
.supporters a { font: 600 clamp(1.625rem, 3.4vw, 2.75rem)/1.1 var(--font-display); transition: color 0.2s; }
.supporters a:hover { color: var(--accent); text-decoration: none; }
.supporters__logo { display: inline-flex; padding: 10px 18px; border-radius: 14px; background: #fff; }
.supporters__logo img { height: 36px; width: auto; max-width: min(240px, 60vw); object-fit: contain; display: block; }
.supporters__logo { transition: transform 0.3s var(--ease); }
.supporters__logo:hover { transform: translateY(-3px); }
/* светлому логотипу подложка не нужна: подвал и так тёмный */
.supporters__logo--bare { background: none; padding: 10px 0; }
/* Логотип в один цвет: файл остаётся прежним, белым его делает фильтр — так ряд партнёров
   выглядит цельно и не спорит с сиянием. Нужен прозрачный фон. */
.supporters__logo--mono { background: none; padding: 10px 0; }
.supporters__logo--mono img { filter: brightness(0) invert(1); opacity: 0.82; transition: opacity 0.25s; }
.supporters__logo--mono:hover img { opacity: 1; }
.foot__grid { display: grid; grid-template-columns: 1.1fr 0.8fr 1.3fr 1.2fr; gap: 32px; }
.foot__grid nav { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot__contacts p { margin: 0 0 6px; }
.foot__hours { display: block; font-size: 0.875rem; color: var(--muted); }
.lockup { display: flex; align-items: center; gap: 16px; align-self: start; }
.lockup .mark { width: 62px; height: auto; }
.lockup .brand__bar { height: 66px; }
.lockup__name { font: 700 1rem/1.12 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.foot__copy { margin: 44px 0 0; color: var(--muted); font-size: 0.875rem; }

/* --- Cookie -------------------------------------------------------------- */

.cookie {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px));
  padding: 22px; border-radius: var(--radius-l);
  background: var(--raise); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 0.9375rem;
}
.cookie[hidden] { display: none; }
.cookie__title { font-size: 1.125rem; margin-bottom: 8px; }
.cookie__options { margin: 4px 0 12px; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }

/* --- Адаптив ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .live { display: none; }
  .finder__sentence { font-size: clamp(1.75rem, 5vw, 3rem); }
  .vacancy, .dash, .fb { grid-template-columns: minmax(0, 1fr); }
  .fb__side { position: static; }
  .apply { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .steps::before { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { min-height: 260px; order: -1; }
  .auth__line { font-size: 1.375rem; }
}

/* Верхнее меню: на узких ноутбуках и планшетах пункты стоят плотнее, ниже 1000px меню сворачивается */
@media (max-width: 1160px) {
  .nav { gap: 16px; font-size: 0.9375rem; }
}

@media (max-width: 1000px) {
  :root { --topbar-h: 68px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; z-index: 40; left: var(--gutter); right: var(--gutter); top: calc(100% + 4px); flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: var(--radius-l); background: var(--raise); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 1rem; }
  .nav.is-open { display: flex; }
  .nav { max-height: calc(100dvh - var(--topbar-h) - 16px); overflow-y: auto; }
  html:not(.js) .nav { display: flex; position: static; margin: 0 0 12px; }
  html:not(.js) .top { flex-wrap: wrap; }
  html:not(.js) .burger { display: none; }
  .nav .link-btn { color: var(--text); padding: 10px 8px; text-align: left; }
  .nav a:not(.btn) { padding: 10px 8px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 6px; }
  .nav__gap { display: none; }
  .nav .icon-btn { display: flex; align-items: center; align-self: stretch; width: auto; height: auto; gap: 10px; padding: 10px 8px; border: 0; border-radius: var(--radius-s); font: inherit; }
  .nav .icon-btn__label { display: inline; }
}

@media (max-width: 860px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .filters__box > summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 600; cursor: pointer; list-style: none; width: fit-content; margin-bottom: 16px; }
  .filters__box > summary::-webkit-details-marker { display: none; }
  .filters__box[open] > summary { border-color: var(--accent); color: var(--accent); }
  .js .filters [data-catalog-submit] { display: inline-flex; }
  .filters__actions { position: sticky; bottom: 0; padding: 12px 0; background: var(--bg); }
  .vacancy__jump { display: block; }
  .formats { grid-template-columns: 1fr; }
  .format { min-height: 0; }
  .ticker__label { display: none; }
}

@media (max-width: 640px) {
  .nudge { flex-wrap: wrap; }
  .nudge__go { width: 100%; padding-left: 26px; }
  .vrow { grid-template-columns: auto minmax(0, 1fr); }
  .vrow::before { display: none; }
  .vrow__side { grid-column: 1 / -1; }
  .app, .pf__item { grid-template-columns: minmax(0, 1fr); }
  .pf__actions { flex-direction: row; gap: 18px; }
  .vrow__side, .app__side { text-align: left; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
  .vrow__logo .clogo { width: 44px; height: 44px; border-radius: 13px; font-size: 0.9375rem; }
  .fav { margin-top: 0; }
  .field--pair, .field--double, .field--triple { grid-template-columns: 1fr; }
  .steps, .foot__grid { grid-template-columns: 1fr; }
  .finder__sentence { font-size: clamp(1.3rem, 6.2vw, 1.75rem); }
  .tabs, .subnav { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
  .tabs a, .subnav a { white-space: nowrap; }
  .combo--inline { flex-basis: 100%; }
  .finder__actions .btn--lg, .form__actions .btn--lg, .band .btn--lg { width: 100%; }
  .chead { gap: 18px; }
  .clogo--xl { width: 84px; height: 84px; border-radius: 23px; font-size: 1.75rem; }
  .clogo--xl.clogo--wide { width: auto; height: 72px; border-radius: 20px; padding: 15px 20px; }
  .plate--hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .ticker__view { overflow-x: auto; }
  @view-transition { navigation: none; }
}

@media print {
  .topbar, .plate, .cookie, .apply form, .fav, .back, .noprint, .flashes { display: none !important; }
  body { background: #fff; color: #000; }
  main::before { display: none; }
  .blank { font-size: 11.5pt; line-height: 1.45; color: #000; }
  .page { padding: 0; }
}
