/* =========================================================
   Интеллектуальный Мегаполис — оформление сайта
   Значения цветов, шрифтов и отступов — из концепта (_new_concept/Main.dc.html)
   ========================================================= */

:root {
  --navy-900: #16264c; --navy-800: #1c3160; --navy-700: #23386b; --navy-500: #3a5a8f;
  --teal-400: #5fd0d8; --teal-600: #1597a3; --teal-700: #0f6c76; --teal-800: #0b545c;
  --accent-600: #c0492e; --accent-700: #a83e2c; --accent-100: #fbe9e4;
  --ink-900: #1c2130; --ink-700: #3a4152; --ink-600: #5c6675; --ink-500: #7a8494; --ink-400: #8a93a3;
  --paper: #ffffff; --paper-alt: #f4f6fa; --line: #e2e6ef; --line-strong: #cfd6e4;
  --ok-100: #e5f4ef; --ok-700: #1f6f57;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: 40px;
  --radius: 16px;
  --radius-s: 10px;
  --header-h: 76px;
  --t: .3s;
  --ease: ease;
  --shadow: 0 10px 30px rgba(22, 38, 76, .08);
  --shadow-l: 0 20px 50px rgba(22, 38, 76, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink-900);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: var(--navy-900); line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
p + p { margin-top: 14px; }
a { color: var(--accent-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-700); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(21, 151, 163, .55); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: linear-gradient(120deg, var(--navy-900), var(--navy-500)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--accent-600); font-family: var(--font-head); }
.section-dark .eyebrow, .hero .eyebrow { color: var(--teal-400); }
.h2 { font-size: 32px; font-weight: 800; letter-spacing: -.01em; margin-top: 10px; }
.h3 { font-size: 20px; font-weight: 800; }
.lead { color: var(--ink-600); font-size: 16.5px; line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head .lead { margin-top: 14px; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.muted { color: var(--ink-600); }
.small { font-size: 14px; }

/* ---------- Иконки ---------- */
.icon { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }
.icon--s { width: 16px; height: 16px; }
.icon--l { width: 28px; height: 28px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-s);
  font-weight: 700; font-size: 15px; font-family: var(--font-head); cursor: pointer; white-space: nowrap; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s; line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-600); color: #fff; }
.btn-primary:hover { background: var(--accent-700); color: #fff; }
.btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-secondary:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--navy-800); }
.btn-outline:hover { border-color: var(--navy-500); color: var(--navy-900); }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-s { padding: 9px 16px; font-size: 14px; }
.btn .icon { width: 18px; height: 18px; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--navy-900); font-family: var(--font-head); }
.link-more .icon { width: 16px; height: 16px; transition: transform .15s; }
.link-more:hover { color: var(--accent-600); }
.link-more:hover .icon { transform: translateX(3px); }

/* ---------- Карточки, чипы, бейджи ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--ink-700); cursor: pointer;
  font-family: var(--font-head); transition: border-color .15s, background .15s, color .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--navy-500); color: var(--navy-900); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 700; color: var(--ink-700); background: #fff; font-family: var(--font-head); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 5px 8px; border-radius: 8px; font-weight: 700; font-size: 13.5px; font-family: var(--font-head); line-height: 1.2; }
.badge-off { background: var(--paper-alt); color: var(--ink-400); }
.badge-mid { background: var(--accent-100); color: var(--accent-700); }
.badge-top { background: var(--accent-600); color: #fff; }

/* =========================================================
   Шапка
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--teal-400), var(--teal-700)); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name > span:first-child { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: -.005em; }
.brand-name small { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-400); margin-top: 2px; }
.brand-name small .sep { opacity: .6; padding: 0 2px; }

.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.primary-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-link { color: rgba(255, 255, 255, .88); font-weight: 700; font-size: 14.5px; white-space: nowrap; font-family: var(--font-head); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; border-bottom-color: var(--accent-600); }
.nav-icon { color: rgba(255, 255, 255, .88); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.nav-icon:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-bar .btn-primary { flex: none; }
.nav-cta--mobile { display: none; }

.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; cursor: pointer; padding: 0; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-menu { display: none; }
.menu-open .menu-toggle .i-close { display: inline-block; }

/* Объявление над страницей */
.notice { background: var(--accent-100); border-bottom: 1px solid #f2cfc4; color: var(--accent-700); }
.notice .wrap { display: flex; gap: 12px; align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.notice .icon { color: var(--accent-600); margin-top: 1px; }
.notice-body { font-size: 15px; line-height: 1.5; color: var(--ink-900); }
.notice-body strong { color: var(--accent-700); }
.notice-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Первый экран
   ========================================================= */
.hero { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-500) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; right: -120px; top: -80px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 208, 216, .16), rgba(95, 208, 216, 0) 65%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 84px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -.015em; line-height: 1.12; margin-top: 16px; max-width: 780px; }
.hero-lead { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.6; margin-top: 22px; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .14); list-style: none; padding-left: 0; margin-bottom: 0; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { color: rgba(255, 255, 255, .72); font-size: 14.5px; }

/* Заголовок внутренних страниц */
.page-head { background: linear-gradient(120deg, var(--navy-900), var(--navy-500)); color: #fff; }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-head h1 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.01em; margin-top: 12px; }
.page-head .eyebrow { color: var(--teal-400); }
.page-head .lead { color: rgba(255, 255, 255, .8); margin-top: 14px; max-width: 760px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, .65); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: #fff; }

/* =========================================================
   Быстрые карточки (расписание, площадки, прокторинг)
   ========================================================= */
.quick { padding: 56px 0; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quick-card { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s, transform .2s; }
.quick-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.quick-card .icon { color: var(--accent-600); width: 26px; height: 26px; margin-bottom: 10px; }
.quick-card h3 { font-size: 17px; font-weight: 800; }
.quick-card p { color: var(--ink-600); font-size: 15px; line-height: 1.6; flex: 1; }
.quick-card .link-more { margin-top: 6px; }

/* =========================================================
   О конкурсе
   ========================================================= */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 30px; }
.about-text { color: var(--ink-700); font-size: 16.5px; line-height: 1.7; }
.about-text p + p { margin-top: 18px; }
.doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy-900); font-weight: 700; font-family: var(--font-head); font-size: 14.5px; line-height: 1.35; transition: border-color .15s, box-shadow .15s; height: 100%; }
.doc-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--navy-900); }
.doc-link .icon { color: var(--accent-600); }
.doc-link small { display: block; font-weight: 500; color: var(--ink-600); font-family: var(--font-body); font-size: 13px; margin-top: 3px; }

.facts { background: var(--navy-900); color: #fff; border-radius: var(--radius); padding: 26px 28px 12px; box-shadow: var(--shadow-l); }
.facts .eyebrow { color: var(--teal-400); margin-bottom: 8px; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15.5px; color: rgba(255, 255, 255, .82); }
.facts li:last-child { border-bottom: 0; }
.facts b { color: #fff; font-family: var(--font-head); font-weight: 800; white-space: nowrap; text-align: right; }

/* =========================================================
   Номинации
   ========================================================= */
.nom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nom-list { display: contents; list-style: none; }
.nom-list > li { min-width: 0; }
.nom-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; height: 100%; transition: border-color .15s, box-shadow .15s; }
.nom-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.nom-card h3 { font-size: 15.5px; font-weight: 800; color: var(--ink-900); }
.nom-card p { color: var(--ink-600); font-size: 13.5px; line-height: 1.5; }
.nom-card--more { justify-content: center; align-items: center; text-align: center; color: var(--ink-500); font-weight: 700; font-family: var(--font-head); font-size: 14.5px; }
.nom-card--more:hover { color: var(--accent-600); }

/* Методические основания */
.metoda-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.metoda-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metoda-list li { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.metoda-list b { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: #fff; }
.metoda-list span { color: rgba(255, 255, 255, .72); font-size: 14px; }
@media (max-width: 820px) { .metoda-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 420px) { .metoda-list { grid-template-columns: 1fr; } }

/* =========================================================
   Отзывы вузов
   ========================================================= */
.quotes { position: relative; }
.quote-list { list-style: none; margin: 0; padding: 0; }
.quote { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; align-items: start; }
.quotes.is-ready .quote:not(.is-active) { display: none; }
.quote-photo { width: 96px; height: 96px; border-radius: 50%; background: var(--line); overflow: hidden; display: block; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-photo.k-img--empty { display: grid; place-items: center; background: var(--navy-900); }
.quote-photo.k-img--empty::after { content: '\201C'; color: var(--teal-400); font-family: var(--font-head); font-size: 56px; font-weight: 800; line-height: 1; padding-top: 18px; }
.quote-text { font-style: italic; color: var(--ink-700); font-size: 17px; line-height: 1.65; }
.quote-text p + p { margin-top: 10px; }
.quote-author { margin-top: 16px; font-weight: 800; font-family: var(--font-head); color: var(--ink-900); font-size: 15px; }
.quote-role { color: var(--ink-600); font-size: 14px; margin-top: 2px; }
.quote-more { margin-top: 10px; }
.quote-more button { background: none; border: 0; padding: 0; color: var(--accent-600); font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font-head); }
.quote.is-collapsed .quote-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.quotes-nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.quotes-dots { display: flex; gap: 8px; }
.quotes-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; }
.quotes-dots button.is-active { background: var(--accent-600); }
.quotes-arrows { display: flex; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--navy-900); cursor: pointer; display: inline-grid; place-items: center; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--navy-500); color: var(--accent-600); }
.icon-btn .icon { width: 18px; height: 18px; }
.quotes-count { color: var(--ink-500); font-size: 13.5px; }
.quotes-videos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; padding: 0; }
.quotes-videos a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-700); font-weight: 600; font-size: 13.5px; }
.quotes-videos a:hover { border-color: var(--line-strong); color: var(--accent-600); }
.quotes-videos .icon { width: 16px; height: 16px; color: var(--accent-600); }

/* =========================================================
   Вузы-партнёры
   ========================================================= */
.vuz-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-bottom: 18px; }
.search { position: relative; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.input, .select {
  width: 100%; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: #fff; color: var(--ink-900);
  font: inherit; font-size: 15px; padding: 0 16px; transition: border-color .15s, box-shadow .15s;
}
.search .input { padding-left: 44px; }
.input:focus, .select:focus { outline: none; border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(58, 90, 143, .15); }
.select { appearance: none; padding-right: 44px; font-weight: 700; font-family: var(--font-head); font-size: 14.5px; color: var(--navy-900);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316264c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.year-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.year-switch .select { width: auto; min-width: 220px; }

.vuz-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.vuz-head, .vuz-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1.5fr) 110px; gap: 20px; align-items: center; padding: 18px 22px; }
.vuz-head { background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; font-family: var(--font-head); padding-top: 22px; padding-bottom: 22px; }
.vuz-item { border-bottom: 1px solid var(--line); }
.vuz-item:last-child { border-bottom: 0; }
.vuz-item.is-hidden { display: none; }
.vuz-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vuz-toggle { justify-content: flex-start; background: none; border: 0; padding: 4px 0; margin: 0; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-900); font-weight: 800; font-family: var(--font-head); font-size: 15px; line-height: 1.3; }
.vuz-toggle .icon { width: 16px; height: 16px; color: var(--ink-400); transition: transform .2s; flex: none; }
.vuz-item.is-open .vuz-toggle .icon { transform: rotate(180deg); }
.vuz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vuz-marks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vuz-marks .badge { cursor: default; }
.vuz-rules { display: flex; gap: 6px; }
.vuz-rules a { color: var(--accent-600); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; }
.vuz-rules a:hover { background: var(--accent-100); }
.vuz-details { display: none; padding: 0 22px 20px; color: var(--ink-600); font-size: 14.5px; line-height: 1.6; }
.vuz-item.is-open .vuz-details { display: block; }
.vuz-details dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 10px 0 0; }
.vuz-details dt { color: var(--ink-500); }
.vuz-details dd { margin: 0; color: var(--ink-700); }
.vuz-details .full { color: var(--ink-700); }
.vuz-empty { padding: 36px 22px; text-align: center; color: var(--ink-600); }
.vuz-more { display: flex; justify-content: center; margin-top: 24px; }
.vuz-note { margin-top: 18px; color: var(--ink-600); font-size: 13.5px; }
.cell-label { display: none; }

/* =========================================================
   Инструкции (тёмный блок с вкладками)
   ========================================================= */
.tabs { display: flex; gap: 36px; border-bottom: 1px solid rgba(255, 255, 255, .16); margin: 36px 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 4px; font-weight: 700; font-size: 15px; font-family: var(--font-head); color: rgba(255, 255, 255, .55); border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tab:hover { color: rgba(255, 255, 255, .85); }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent-600); }
.tabs--light { border-bottom-color: var(--line); }
.tabs--light .tab { color: var(--ink-500); }
.tabs--light .tab:hover { color: var(--navy-900); }
.tabs--light .tab[aria-selected="true"] { color: var(--navy-900); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-family: var(--font-head); font-size: 15px; transition: background .15s; height: 100%; }
.doc-row:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.doc-row .icon { width: 18px; height: 18px; opacity: .8; }
.doc-row .lead-icon { width: 20px; height: 20px; color: var(--teal-400); opacity: 1; }
.doc-row > span { display: flex; align-items: center; gap: 12px; }
.tab-note { margin-top: 22px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.tab-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================
   Частые вопросы
   ========================================================= */
.faq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s; }
.faq-item.is-open { border-color: var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 22px 24px; text-align: left; cursor: pointer; font-weight: 800; font-family: var(--font-head); font-size: 16px; color: var(--ink-900); }
.faq-q .icon { width: 20px; height: 20px; color: var(--ink-500); transition: transform .2s, color .2s; flex: none; }
.faq-item.is-open .faq-q .icon { transform: rotate(180deg); color: var(--accent-600); }
.faq-a { display: none; padding: 0 24px 22px; color: var(--ink-600); font-size: 15px; line-height: 1.7; }
.faq-item.is-open .faq-a { display: block; }
.faq-a ul, .faq-a ol { padding-left: 20px; margin: 8px 0; }
.faq-a li + li { margin-top: 4px; }

/* =========================================================
   Партнёры
   ========================================================= */
.partners { padding: 56px 0; background: var(--paper-alt); }
.partners-title { text-align: center; font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-700); margin-bottom: 28px; }
.partner-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.partner { min-width: 130px; height: 64px; padding: 10px 18px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-500); font-weight: 800; font-family: var(--font-head); font-size: 13.5px; text-align: center; transition: border-color .15s, color .15s; }
a.partner:hover { border-color: var(--line-strong); color: var(--navy-900); }
.partner img { max-height: 40px; width: auto; }

/* =========================================================
   Подвал
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.site-footer h4 { color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: #fff; }
.footer-about { margin-top: 16px; line-height: 1.6; font-size: 14.5px; max-width: 320px; }
.footer-contacts li a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contacts .icon { width: 18px; height: 18px; color: rgba(255, 255, 255, .7); }
.footer-contacts .btn { margin-top: 10px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .6); flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .7); display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .icon { width: 16px; height: 16px; }

.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent-600); color: #fff; box-shadow: 0 10px 24px rgba(192, 73, 46, .35); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, background .15s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-700); }
.to-top .icon { width: 22px; height: 22px; }

/* =========================================================
   Стартовая страница (все проекты)
   ========================================================= */
.hub-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
.hub-hero h1 { font-size: 42px; max-width: 820px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.project { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.project:hover { box-shadow: var(--shadow-l); border-color: var(--line-strong); transform: translateY(-2px); }
.project-cover { aspect-ratio: 16 / 10; background: var(--paper-alt); display: grid; place-items: center; overflow: hidden; }
.project-cover { position: relative; }
.project-cover .k-img { position: absolute; inset: 0; display: grid; place-items: center; }
.project-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.project-cover .k-img--empty { background: linear-gradient(135deg, var(--navy-800), var(--navy-500)); }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body .eyebrow { font-size: 11.5px; }
.project-body h3 { font-size: 21px; font-weight: 800; }
.project-body p { color: var(--ink-600); font-size: 15px; line-height: 1.6; flex: 1; }
.project-link::after { content: ''; position: absolute; inset: 0; }
.project .link-more { position: relative; z-index: 1; pointer-events: none; }
.k-editing .project-link::after { display: none; }
.hub-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }

/* =========================================================
   Методические материалы
   ========================================================= */
.mo-toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mo-toolbar .chips { margin: 0; }
.mo-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.mo-side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mo-side a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-700); font-weight: 700; font-family: var(--font-head); font-size: 14.5px; }
.mo-side a:hover { background: var(--paper-alt); color: var(--navy-900); }
.mo-side a.is-active { background: var(--navy-900); color: #fff; }
.mo-class { margin-bottom: 48px; }
.mo-class > h2 { font-size: 26px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mo-class > h2 small { font-size: 14px; font-weight: 700; color: var(--ink-500); }
.mo-dirs { display: flex; flex-direction: column; gap: 16px; }
.mo-dir { padding: 24px 26px; }
.mo-dir > h3 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mo-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 16px; }
.mo-group h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.mo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mo-list a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink-900); font-size: 14.5px; line-height: 1.4; }
.mo-list a:hover { background: var(--paper-alt); color: var(--accent-700); }
.mo-list .icon { width: 18px; height: 18px; color: var(--accent-600); margin-top: 1px; }
.mo-list b { font-weight: 700; }
.mo-type > button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--ink-900); font-size: 14.5px; font-family: inherit; }
.mo-type > button:hover { background: var(--paper-alt); }
.mo-type > button .icon { width: 18px; height: 18px; color: var(--accent-600); }
.mo-type > button .chev { margin-left: auto; color: var(--ink-400); transition: transform .2s; width: 16px; height: 16px; }
.mo-type.is-open > button .chev { transform: rotate(180deg); }
.mo-type > .mo-list { display: none; padding-left: 28px; }
.mo-type.is-open > .mo-list { display: flex; }
.mo-count { color: var(--ink-500); font-size: 13px; }
.mo-empty { color: var(--ink-500); font-size: 14.5px; margin-top: 10px; }
.mo-intro { margin-bottom: 30px; }

/* =========================================================
   Статистика
   ========================================================= */
.st-filters { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 22px; margin-bottom: 28px; }
.st-filters label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-600); font-family: var(--font-head); }
.st-summary { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 20px; color: var(--ink-600); font-size: 14.5px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.legend-dot--city { background: var(--navy-500); }
.legend-dot--school { background: var(--accent-600); }
.st-dir { margin-bottom: 18px; overflow: hidden; }
.st-dir > summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.st-dir > summary::-webkit-details-marker { display: none; }
.st-dir > summary .icon { color: var(--ink-400); transition: transform .2s; }
.st-dir[open] > summary .icon { transform: rotate(180deg); }
.st-dir-title small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); font-family: var(--font-head); }
.st-dir-title b { display: block; font-size: 18px; font-weight: 800; font-family: var(--font-head); color: var(--navy-900); margin-top: 4px; }
.st-dir-mini { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-body { padding: 0 26px 26px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.st-panel h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 12px; }
.st-panel + .st-panel { margin-top: 24px; }
.st-status { display: flex; flex-direction: column; gap: 10px; }
.st-status-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-700); }
.st-status-bars { display: flex; flex-direction: column; gap: 4px; }
.bar { height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 12.5px; font-weight: 700; min-width: 34px; white-space: nowrap; font-family: var(--font-head); }
.bar--city { background: var(--navy-500); }
.bar--school { background: var(--accent-600); }
.bar--p { background: #8fa3c4; }
.bar--r { background: var(--navy-500); }
.bar--w { background: var(--navy-900); }
.st-q { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.st-q:last-child { border-bottom: 0; }
.st-q-num { font-family: var(--font-head); font-weight: 800; color: var(--ink-500); font-size: 14px; padding-top: 2px; }
.st-q-text { font-size: 13.5px; color: var(--ink-700); line-height: 1.45; margin-bottom: 6px; }
.st-q-bars { display: flex; flex-direction: column; gap: 4px; }
.st-avg { display: flex; gap: 18px; align-items: flex-end; height: 180px; padding-top: 10px; }
.st-avg-col { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 110px; font-size: 13px; color: var(--ink-600); text-align: center; }
.st-avg-col .col { width: 100%; border-radius: 8px 8px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; color: #fff; font-weight: 800; font-family: var(--font-head); font-size: 15px; min-height: 36px; }
.st-materials { margin-top: 8px; }
.st-empty { padding: 36px; text-align: center; color: var(--ink-600); }
.nom-filter { margin-bottom: 20px; }

/* ---------- Таблицы и формы на служебных страницах ---------- */
.plain-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plain-table th, .plain-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plain-table th { font-family: var(--font-head); font-size: 13px; color: var(--ink-600); font-weight: 800; background: var(--paper-alt); }
.form-grid { display: grid; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 12px; background: var(--paper-alt); color: var(--ink-700); border: 1px solid var(--line); }
.alert--error { background: var(--accent-100); border-color: #f2cfc4; color: var(--accent-700); }
.alert--ok { background: var(--ok-100); border-color: #c4e5d8; color: var(--ok-700); }
.prose { color: var(--ink-700); font-size: 16px; line-height: 1.7; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose img { border-radius: 10px; border: 1px solid var(--line); margin: 10px 0; }

/* Вход для редакторов */
.login-box { max-width: 440px; margin: 0 auto; padding: 32px; }
.login-box label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; font-family: var(--font-head); color: var(--ink-700); margin-bottom: 16px; }
.login-box .btn { width: 100%; margin-top: 8px; }

/* =========================================================
   Плавные наведения: всё интерактивное меняется с ease
   ========================================================= */
a, button, .btn, .chip, .tag, .badge, .card, .icon-btn, .input, .select,
.nav-link, .nav-icon, .menu-toggle, .tab, .faq-item, .faq-q, .doc-link, .doc-row,
.partner, .vuz-item, .vuz-toggle, .vuz-rules a, .mo-side a, .mo-list a, .mo-type > button,
.quotes-videos a, .quotes-dots button, .footer-bottom a, .site-footer a, .notice-body a, .tab-note a,
.metoda-list li, .st-dir > summary, .crumbs a {
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t) var(--ease),
    text-decoration-color var(--t) var(--ease);
}
.icon, .link-more .icon, .vuz-toggle .icon, .faq-q .icon, .mo-type > button .chev, .st-dir > summary .icon {
  transition: transform var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.brand, .brand-mark { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.to-top { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t) var(--ease), background-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.to-top:hover { transform: translateY(-3px); }
.quick-card:hover, .nom-card:hover, .doc-link:hover, a.partner:hover { transform: translateY(-2px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); transition-duration: .08s; }
.primary-nav { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t) var(--ease); }
.nav-link { border-bottom-width: 2px; }
.project-cover img { transition: transform .5s var(--ease); }
.project:hover .project-cover img { transform: scale(1.04); }

/* Проявление при прокрутке */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible, .no-js .reveal, .k-editing .reveal { opacity: 1; transform: none; }
.reveal.is-visible { transition: opacity .6s var(--ease), transform .5s var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Адаптивность
   ========================================================= */
@media (max-width: 1400px) {
  .primary-nav .nav-icon { display: none; }
  .primary-nav ul { gap: 20px; }
  .primary-nav { gap: 16px; }
  .site-bar { gap: 22px; }
}
@media (max-width: 1180px) {
  .nom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-grid; }
  .site-bar > .btn-primary { display: none; }
  .primary-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--navy-900);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav .nav-link { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 17px; }
  .primary-nav .nav-icon { display: none; }
  .nav-cta--mobile { display: inline-flex; margin-top: 24px; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mo-layout { grid-template-columns: 1fr; }
  .mo-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .mo-side a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
  .st-body { grid-template-columns: 1fr; }
  .vuz-head, .vuz-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 1.3fr) 80px; gap: 14px; }
}

@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .h2 { font-size: 27px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 48px; }
  .hero h1, .hub-hero h1 { font-size: 34px; }
  .hero-lead { font-size: 16.5px; }
  .hero-stats { gap: 20px 32px; margin-top: 40px; padding-top: 28px; }
  .hero-stats b { font-size: 24px; }
  .page-head h1 { font-size: 30px; }
  .quick-grid { grid-template-columns: 1fr; }
  .nom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid, .doc-links { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .quote-photo { width: 64px; height: 64px; }
  .quote-text { font-size: 16px; }
  .vuz-tools { grid-template-columns: 1fr; }
  .vuz-head { display: none; }
  .vuz-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .vuz-details { padding: 0 18px 18px; }
  .cell-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; font-family: var(--font-head); }
  .vuz-cell { display: flex; flex-direction: column; align-items: flex-start; }
  .quotes-count { display: none; }
  .mo-groups { grid-template-columns: 1fr; }
  .st-filters { grid-template-columns: 1fr; }
  .st-dir > summary { flex-direction: column; align-items: flex-start; }
  .st-dir-mini { justify-content: flex-start; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .brand-name > span:first-child { font-size: 13.5px; }
  .brand-name small { font-size: 11px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero h1, .hub-hero h1 { font-size: 29px; }
  .hero-ctas .btn { width: 100%; }
  .nom-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .tabs { gap: 22px; }
  .facts { padding: 20px 20px 6px; }
  .st-body, .st-dir > summary { padding-left: 18px; padding-right: 18px; }
  .mo-dir { padding: 20px 18px; }
  .faq-q { padding: 18px; font-size: 15px; }
  .faq-a { padding: 0 18px 18px; }
  .year-switch .select { min-width: 0; width: 100%; }
}

@media print {
  .site-header, .to-top, .site-footer, .k-ui { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
