/* =========================================================
   Компоненты страниц в стиле буклета: /about/, /education/,
   /campus/, /careers/, /pupils/, /articles/ и блоки главной
   ========================================================= */

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.page main { display: block; }

/* ---------- Hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: #fff;
  background: var(--grad-cover);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
  min-height: 420px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.page-hero__eyebrow {
  margin: 0 0 18px;
  font-size: var(--fs-small);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}

.page-hero h1, .page-hero .page-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: manual;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-hero__lead {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: var(--fs-text);
  line-height: 1.5;
  color: #fff;
}

.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero__media {
  position: relative;
  align-self: stretch;
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* «Таблетки» — фирменный декоративный элемент буклета */
.pills { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.pills i {
  position: absolute;
  width: var(--w, 34px);
  height: var(--h, 80px);
  border-radius: 12px;
  background: var(--grad-pill);
  opacity: var(--o, .9);
}

.pills i:nth-child(1) { --w: 44px; --h: 96px; top: 12%; right: 46%; }
.pills i:nth-child(2) { --w: 44px; --h: 96px; top: calc(12% + 60px); right: calc(46% - 26px); --o: .75; }
.pills i:nth-child(3) { --w: 18px; --h: 54px; top: 8%; right: 4%; }
.pills i:nth-child(4) { --w: 12px; --h: 40px; top: calc(8% + 40px); right: calc(4% + 14px); --o: .6; }
.pills i:nth-child(5) { --w: 30px; --h: 70px; bottom: -20px; left: 2%; --o: .7; }

@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .page-hero__media { min-height: 220px; border-radius: 20px; }
  .pills i:nth-child(1), .pills i:nth-child(2) { right: 6%; top: 4%; --h: 60px; --w: 28px; }
}

/* ---------- Секции ---------- */
.psection { padding: 72px 0; margin: 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.psection--white { background: #fff; }
.psection--dark { background: var(--grad-cover); color: #fff; }
.psection--dark h2 { color: #fff; }
.psection--dark p { color: #fff; }

.psection > .wrap > h2,
.psection__title {
  margin: 0 0 14px;
  text-transform: uppercase;
}

.psection__lead {
  max-width: 760px;
  margin: 0 0 40px;
  font-size: var(--fs-text);
  color: var(--ink-soft);
}

.psection h3 { margin: 32px 0 12px; color: var(--ink); }
.psection--dark h3 { color: #fff; }

.prose p, .prose li { font-size: var(--fs-text); line-height: 1.6; }
.prose ul { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--violet); }
.prose span { font-weight: inherit; }

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .psection { padding: 52px 0; }
  .cols-2 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Цифры ---------- */
.stat-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.stat-group {
  padding: 26px 26px 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-group__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--violet);
}

.stat {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.stat b {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--fs-sub);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}

.stat span { font-weight: 400; font-size: var(--fs-text); line-height: 1.3; color: var(--ink-soft); }

.big-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.big-stats li {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--lilac-100);
}

.psection--dark .big-stats li { background: rgba(255, 255, 255, .08); }

.big-stats b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-num);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-pill-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big-stats span { font-weight: 400; font-size: var(--fs-text); line-height: 1.35; }

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
}


.card h3 { margin: 0 0 10px; font-size: var(--fs-text); }
.card p { margin: 0 0 12px; font-size: var(--fs-text); line-height: 1.5; color: var(--ink-soft); }
.card__link { margin-top: auto; font-weight: 600; color: var(--violet); }

.card.card--accent { background: var(--grad-cover); color: #fff; }
.card.card--accent h3 { color: #fff; }
.card.card--accent p { color: #fff; }
.card--accent .card__link { color: var(--mint); }

a.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26, 22, 45, .16); }

.card__num {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-num);
  font-weight: 700;
  line-height: 1;
  color: var(--violet);
}

.card--accent .card__num { color: var(--mint); }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lilac-100);
  color: var(--indigo);
  font-size: var(--fs-small);
  font-weight: 600;
}

.card--accent .tag { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Фото ---------- */
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lilac-100);
}

.photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.photo figcaption { padding: 10px 14px; font-size: var(--fs-small); color: var(--ink-soft); background: #fff; }

.photo-band {
  height: clamp(220px, 34vw, 440px);
  margin: 0;
  overflow: hidden;
}

.photo-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Лауреаты ---------- */
.laureates { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.laureates li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.laureates__year {
  font-family: var(--font-display);
  font-size: var(--fs-num);
  font-weight: 700;
  color: var(--violet);
  line-height: 1;
}

.laureates h3 { margin: 0 0 6px; font-size: var(--fs-text); }
.laureates p { margin: 0; font-size: var(--fs-text); color: var(--ink-soft); }

@media (max-width: 600px) {
  .laureates li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Цитата ---------- */
.quote-block {
  position: relative;
  margin: 0;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--grad-cover);
  color: #fff;
  overflow: hidden;
}

.quote-block p { font-size: var(--fs-sub); line-height: 1.5; color: #fff; }
.quote-block footer { margin-top: 18px; color: var(--mint); font-size: var(--fs-text); }

/* ---------- Отзывы выпускников ---------- */
.testimonials { display: grid; gap: 28px; }

.testimonial {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.testimonial:nth-child(even) { grid-template-columns: 1fr 140px; }
.testimonial:nth-child(even) .testimonial__photo { order: 2; }

.testimonial__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--lilac-200);
}

.testimonial__photo img { width: 100%; height: 100%; object-fit: cover; }

.testimonial h3 { margin: 0 0 6px; font-size: var(--fs-sub); }
.testimonial__role { margin: 0 0 14px; font-size: var(--fs-small); color: var(--ink-soft); }
.testimonial blockquote { margin: 0; font-size: var(--fs-text); line-height: 1.55; color: var(--violet); }

@media (max-width: 700px) {
  .testimonial, .testimonial:nth-child(even) { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .testimonial:nth-child(even) .testimonial__photo { order: 0; }
  .testimonial__photo { width: 104px; height: 104px; }
}

/* ---------- Таймлайн обучения ---------- */
.timeline {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.timeline__grid {
  position: relative;
  min-width: 640px;
  padding: 0 44px 22px 0;
  display: grid;
  grid-template-columns: 170px repeat(6, 1fr);
  row-gap: 18px;
  align-items: center;
}

.timeline__year {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  text-align: center;
  border-left: 1px dashed var(--lilac-200);
}

.timeline__label { font-weight: 600; font-size: var(--fs-small); padding-right: 10px; }

.timeline__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--grad-pill-h);
}

.timeline__bar--muted { background: var(--lilac-200); }

.timeline__mark {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--violet);
  font-style: normal;
}

.timeline__mark span {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.timeline__note { margin: 26px 0 0; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- Таблица баллов ---------- */
.score-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.score-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  font-size: var(--fs-text);
}

.score-table th,
.score-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--lilac-100); }
.score-table thead th { background: var(--indigo); color: #fff; font-weight: 600; }
.score-table tbody th { text-align: left; font-weight: 600; }
.score-table td:last-child { font-weight: 700; color: var(--violet); }

/* ---------- Кольцевая диаграмма баллов ---------- */
.donut-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }

.donut {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: conic-gradient(
    #2A2055 0 24.39%,
    #4F4580 24.39% 48.78%,
    #7A72A6 48.78% 73.17%,
    #A9A3C8 73.17% 97.56%,
    #D5D1E6 97.56% 100%
  );
}

.donut::after {
  content: '';
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: #fff;
}

.donut__center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.donut__center b {
  font-family: var(--font-display);
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--ink);
}

.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-text); }
.legend i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); }
.legend b { font-family: var(--font-display); font-size: var(--fs-text); }

@media (max-width: 700px) {
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
}

/* ---------- Отделения ---------- */
.division {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background: var(--dept, var(--indigo));
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.division__body { padding: 40px 44px; }
.division__body h3 { margin: 0 0 18px; color: #fff; text-transform: uppercase; font-size: var(--fs-sub); }
.division__body p { font-size: var(--fs-text); line-height: 1.6; color: #fff; }

.division__side {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .18);
}

.division__img { height: 220px; margin: 0; }
.division__img img { width: 100%; height: 100%; object-fit: cover; }

.division__list { padding: 26px 30px 32px; }
.division__list h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .7);
}

.division__list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.division__list li { position: relative; padding-left: 18px; font-size: var(--fs-text); line-height: 1.35; }
.division__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--mint);
}

.division-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.division-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: var(--fs-small);
  color: var(--ink);
}

.division-index a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dept); }

@media (max-width: 860px) {
  .division { grid-template-columns: 1fr; }
  .division__body { padding: 28px 24px; }
}

/* ---------- Чипы / логотипы работодателей ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--lilac-200);
  font-size: var(--fs-text);
  font-weight: 600;
}

.chips a { color: inherit; }

/* ---------- Ссылки-кнопки (QR из буклета) ---------- */
.link-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--lilac-200);
  color: var(--ink);
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease;
}

.link-list a::after { content: '→'; color: var(--violet); }
.link-list a:hover { border-color: var(--hover); color: var(--hover); }

/* ---------- Адрес и карта ---------- */
.address-card {
  padding: 30px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.address-card p { margin: 0 0 8px; }

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA-полоса ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 28px;
  background: var(--grad-cover);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: #fff; }
.cta-band .pills i:nth-child(1) { right: 34%; top: -30px; }
.cta-band .pills i:nth-child(2) { right: calc(34% - 26px); top: 30px; }

/* ---------- Главная: разделы сайта ---------- */
.home-sections { padding: 72px 0; background: #fff; }
.home-sections h2 { text-transform: uppercase; margin-bottom: 32px; }

.home-hero-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  font-size: var(--fs-small);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ---------- Статьи ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.article-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(26, 22, 45, .16); }

.article-card__img { aspect-ratio: 16 / 9; background: var(--grad-cover); overflow: hidden; }
.article-card__img img { width: 100%; height: 100%; object-fit: cover; }

.article-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.article-card__date { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 8px; font-weight: 400; }
.article-card h2 {
  margin: 0 0 10px;
  font-size: var(--fs-sub);
  line-height: 1.25;
  text-transform: none;
  color: var(--ink);
}
.article-card p { margin: 0 0 16px; font-size: var(--fs-text); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__more { margin-top: auto; font-weight: 600; color: var(--violet); }

.articles-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px dashed var(--violet);
  border-radius: 14px;
  background: #fff;
  font-size: var(--fs-small);
}

.articles-empty { padding: 40px; border-radius: 22px; background: #fff; text-align: center; color: var(--ink-soft); }

/* Страница статьи — типографика в духе Telegraph */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article__back { display: inline-block; margin-bottom: 20px; color: var(--violet); font-weight: 600; }

.article__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-head);
  line-height: 1.12;
  color: var(--ink);
}

.article__meta { margin: 0 0 28px; color: var(--ink-soft); font-size: var(--fs-small); }

.article__cover { margin: 0 0 32px; border-radius: 22px; overflow: hidden; }
.article__cover img { width: 100%; height: auto; display: block; }

.article__body { font-size: var(--fs-text); line-height: 1.7; color: var(--ink); }
.article__body p { font-size: inherit; line-height: inherit; margin: 0 0 18px; }
.article__body p:empty { display: none; }
.article__body h2,
.article__body h3,
.article__body h4 {
  margin: 40px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sub);
  line-height: 1.3;
  text-transform: none;
  color: var(--ink);
}
.article__body h4:empty { display: none; }
.article__body a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article__body span { font-weight: inherit; }
.article__body img { width: 100%; height: auto; border-radius: 16px; }
.article__body figure { margin: 28px 0; }
.article__body figcaption { margin-top: 8px; text-align: center; font-size: var(--fs-small); color: var(--ink-soft); }
.article__body figcaption:empty { display: none; }
.article__body blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--indigo);
  background: var(--lilac-100);
  font-style: italic;
}
.article__body ul, .article__body ol { padding-left: 1.3em; margin: 0 0 18px; }
.article__body li { margin-bottom: 6px; }

.article__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--lilac-200);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Главная: первый экран в стиле обложки буклета ---------- */
.home-hero .page-hero__inner { min-height: 560px; }

.home-hero__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 1.6rem + 5.4vw, 6rem);
  line-height: .95;
  text-transform: uppercase;
  color: #fff;
}

.home-hero .page-hero__media .swiper,
.home-hero .page-hero__media .swiper-wrapper,
.home-hero .page-hero__media .swiper-slide { height: 100%; }

.home-hero .page-hero__media .swiper { position: absolute; inset: 0; }
.home-hero .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .home-hero .page-hero__inner { min-height: 0; }
  .home-hero .page-hero__media { min-height: 320px; }
}

/* Декор внутри цитаты и CTA — под текстом, приглушённый и по краям */
.quote-block > :not(.pills),
.cta-band > :not(.pills) { position: relative; z-index: 2; }
.quote-block .pills,
.cta-band .pills { z-index: 0; opacity: .45; }
.quote-block .pills i:nth-child(1),
.cta-band .pills i:nth-child(1) { top: -40px; right: 8%; }
.quote-block .pills i:nth-child(2),
.cta-band .pills i:nth-child(2) { top: 20px; right: calc(8% - 26px); }

.photo--wide img { aspect-ratio: 21 / 9; object-position: center 35%; }
@media (max-width: 700px) { .photo--wide img { aspect-ratio: 4 / 3; } }

/* main.css делает все h2 капсом через !important — в статьях обычный регистр */
.article-card h2,
.article__body h2,
.article__body h3 { text-transform: none !important; }

/* =========================================================
   Правки ноября 2026: акценты, шкала шрифтов, плашки
   ========================================================= */

/* Заголовки: крупно и плотно, длинные слова не рвём посреди слога */
.page-hero h1, .page-hero .page-hero__title, .psection h2, .card h3 { text-wrap: balance; }
.page-hero__lead, .psection__lead, .prose p, .card p { text-wrap: pretty; }
.card h3 { font-size: var(--fs-text); line-height: 1.25; overflow-wrap: break-word; hyphens: manual; }
.psection__lead { font-size: var(--fs-text); }

/* Текст на тёмных плашках — чисто белый */
.page-hero__lead,
.psection--dark p, .psection--dark li,
.card.card--accent p,
.cta-band p,
.quote-block p,
.division__body p { color: #fff; }

/* Карточки без тени: плоские плашки на цвете секции */
.card, .stat-group, .laureates li, .address-card { box-shadow: none; }
.psection--white .card,
.home-sections .card { background: var(--lilac-50); }
.psection--white .card.card--accent,
.home-sections .card.card--accent { background: var(--grad-cover); }
a.card:hover { transform: none; box-shadow: none; background: var(--lilac-100); }
a.card.card--accent:hover { background: var(--grad-cover); }
a.card .card__link { transition: transform .6s var(--expo); }
a.card:hover .card__link { transform: translateX(8px); }

/* Цифры в карточках: шрифт заголовков, подпись мелким */
.card__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: var(--fs-num); letter-spacing: -0.03em; }
.card__num small {
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.tag { font-weight: 400; }

/* «Физфак сегодня»: цифры фиолетовым, подписи в одну линию */
.stat-groups { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.stat-group__title { font-size: var(--fs-small); color: var(--ink-soft); letter-spacing: .02em; }
.stat-group__title--next { margin-top: 28px; }
.stat { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.stat b { font-size: var(--fs-sub); color: var(--violet); letter-spacing: -0.02em; }
.stat span { font-size: var(--fs-text); }

/* Цитата декана: фото и плашка одной высоты */
.psection--quote { padding-top: 40px; }
.quote-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.quote-duo .photo { height: 100%; }
.quote-duo .photo img { height: 100%; min-height: 280px; }
.quote-duo .quote-block { display: flex; flex-direction: column; justify-content: center; padding: 40px; border-radius: var(--radius); }
.quote-block p { margin: 0; line-height: 1.45; }
.quote-block footer { margin-top: 22px; font-size: var(--fs-small); }
@media (max-width: 860px) {
  .psection--quote { padding-top: 28px; }
  .quote-duo { grid-template-columns: 1fr; }
  .quote-duo .photo img { min-height: 0; aspect-ratio: 3 / 2; }
  .quote-duo .quote-block { padding: 28px 24px; }
}

/* Лауреаты: год крупно, строки на линейках вместо карточек */
.laureates { gap: 0; }
.laureates li {
  grid-template-columns: minmax(120px, 190px) 1fr;
  align-items: baseline;
  padding: 22px 0;
  border-radius: 0;
  background: none;
  border-top: 1px solid var(--lilac-200);
}
.laureates li:last-child { border-bottom: 1px solid var(--lilac-200); }
.laureates__year { font-size: var(--fs-num); letter-spacing: -0.03em; }
.laureates h3 { font-size: var(--fs-sub); }
.laureates p { font-size: var(--fs-text); }

/* Списки-чипы и ссылки внутри .prose не должны получать отступ маркированного списка */
.prose .chips, .prose .link-list { padding-left: 0; }
.prose .chips li, .prose .link-list li { margin-bottom: 0; font-size: var(--fs-text); line-height: 1.3; }
.chips li { font-weight: 400; background: none; border-color: var(--lilac-200); }
.psection--dark .chips li { color: #fff; border-color: rgba(255, 255, 255, .4); }
.link-list--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Питание: текст, цифры и два фото столовых */
.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.food-grid .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-stats b { letter-spacing: -0.03em; }
.photo-duo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 9fr); gap: 20px; }
.photo-duo .photo { height: clamp(240px, 36vw, 460px); }
.photo-duo .photo img { height: 100%; }
@media (max-width: 860px) {
  .food-grid { grid-template-columns: 1fr; }
  .photo-duo { gap: 12px; }
}
@media (max-width: 520px) {
  .food-grid .big-stats { grid-template-columns: 1fr; }
}

/* CTA и цитата — без «таблеток» */
.cta-band { border-radius: var(--radius); }

/* ---------- Сроки обучения ---------- */
.tl {
  margin: 20px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-text);
}
.tl__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tl__tab {
  padding: 10px 20px;
  border: 1.5px solid var(--lilac-200);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 var(--fs-text) / 1.2 var(--font-text);
  cursor: pointer;
  transition: background .5s var(--expo), color .5s var(--expo), border-color .5s var(--expo);
}
.tl__tab:hover { border-color: var(--violet); }
.tl__tab[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.tl__tab:focus-visible, .tl__step:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.tl__panel + .tl__panel { margin-top: 40px; }
.tl.is-ready .tl__panel { margin-top: 0; }
.tl.is-ready .tl__panel:not(.is-active) { display: none; }

.tl__head { margin: 0; font-size: var(--fs-text); line-height: 1.3; color: var(--ink-soft); }
.tl__head b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: var(--fs-sub); letter-spacing: -0.02em; color: var(--ink); }

.tl__stage { margin: 34px 0 0; padding: 0 10px; }
.tl__rail { position: relative; height: 8px; border-radius: 4px; background: var(--lilac-100); }
.tl__fill {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(var(--from) / 6 * 100%);
  width: calc((var(--to) - var(--from)) / 6 * 100%);
  border-radius: 4px;
  background: var(--grad-pill-h);
  transform-origin: left center;
}
/* отметки — «таблетки» из буклета */
.tl__mark {
  position: absolute;
  top: 50%;
  left: calc(var(--at) / 6 * 100%);
  width: 14px;
  height: 36px;
  margin: -18px 0 0 -7px;
  border-radius: 7px;
  background: var(--grad-pill);
  box-shadow: 0 0 0 4px #fff;
  transition: transform .7s var(--expo);
}
.tl__mark.is-hot { transform: scaleY(1.45); }

.tl__years { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 20px; }
.tl__years span { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); color: var(--ink); }
.tl__years span.is-off { color: var(--lilac-200); }
.tl__years-cap { margin-top: 2px; text-align: center; font-size: var(--fs-small); color: var(--ink-soft); }

.tl__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.tl__step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--lilac-50);
  font-size: var(--fs-text);
  line-height: 1.3;
  transition: background .5s var(--expo);
}
.tl__step.is-hot { background: var(--lilac-100); }
.tl__when { font-size: var(--fs-small); color: var(--violet); }
.tl__step b { font-weight: 600; }
.tl__text { font-size: var(--fs-small); color: var(--ink-soft); }

@keyframes tl-grow { from { transform: scaleX(0); } }
@keyframes tl-pop { from { transform: scaleY(0); } }
@keyframes tl-rise { from { clip-path: inset(0 0 100% 0); transform: translateY(18px); } to { clip-path: inset(0); transform: none; } }
.tl.is-ready .tl__panel.is-active .tl__fill { animation: tl-grow 1.2s var(--expo) both; }
.tl.is-ready .tl__panel.is-active .tl__mark { animation: tl-pop .9s var(--expo) both; animation-delay: calc(.25s + var(--n) * .16s); }
.tl.is-ready .tl__panel.is-active .tl__step { animation: tl-rise 1s var(--expo) both; animation-delay: calc(.3s + var(--n) * .16s); }
.tl.is-ready:not(.is-seen) .tl__fill,
.tl.is-ready:not(.is-seen) .tl__mark,
.tl.is-ready:not(.is-seen) .tl__step { animation-play-state: paused !important; }

@media (max-width: 600px) {
  .tl { padding: 20px 16px; }
  .tl__tab { padding: 9px 14px; font-size: var(--fs-small); }
  .tl__steps { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Появление: через маску, expo, без прозрачности ---------- */
.js-rv [data-rv] {
  clip-path: inset(0 0 100% 0);
  transform: translateY(26px);
  transition: clip-path 1.1s var(--expo) var(--d, 0s), transform 1.1s var(--expo) var(--d, 0s);
}
.js-rv [data-rv].is-in { clip-path: inset(-60px); transform: none; }

/* заголовок выезжает из-под строки */
.js-rv [data-rv="line"] { clip-path: inset(-.1em 0 -.15em 0); transform: none; transition: none; }
.js-rv [data-rv="line"] > .rv-in { display: block; transform: translateY(115%); transition: transform 1.2s var(--expo) var(--d, 0s); }
.js-rv [data-rv="line"].is-in > .rv-in { transform: none; }

/* фото раскрывается шторкой, кадр внутри чуть отъезжает */
.js-rv [data-rv="curtain"] { clip-path: inset(0 100% 0 0); transform: none; transition: clip-path 1.4s var(--expo) var(--d, 0s); }
.js-rv [data-rv="curtain"].is-in { clip-path: inset(0); }
.js-rv [data-rv="curtain"] img { transform: scale(1.18); transition: transform 1.8s var(--expo) var(--d, 0s); }
.js-rv [data-rv="curtain"].is-in img { transform: none; }

/* «таблетки» первого экрана вырастают при загрузке */
.js-rv .page-hero .pills i { transform: scaleY(0); transform-origin: center bottom; transition: transform 1.3s var(--expo); }
.js-rv .page-hero.is-in .pills i { transform: none; }
.js-rv .page-hero .pills i:nth-child(1) { transition-delay: .35s; }
.js-rv .page-hero .pills i:nth-child(2) { transition-delay: .5s; transform-origin: center top; }
.js-rv .page-hero .pills i:nth-child(3) { transition-delay: .6s; }
.js-rv .page-hero .pills i:nth-child(4) { transition-delay: .7s; transform-origin: center top; }
.js-rv .page-hero .pills i:nth-child(5) { transition-delay: .8s; }

@media (prefers-reduced-motion: reduce) {
  .js-rv [data-rv], .js-rv [data-rv] > .rv-in, .js-rv [data-rv] img, .js-rv .page-hero .pills i {
    clip-path: none !important; transform: none !important; transition: none !important;
  }
  .tl * { animation: none !important; transition: none !important; }
}

/* мелкие исправления переполнения на телефоне */
.faq-crosslink a { box-sizing: border-box; max-width: 100%; }
.js-rv [data-rv="curtain"] { overflow: hidden; }
/* 5 и 6 карточек — ровными рядами, без «сирот» во второй строке */
@media (min-width: 1000px) {
  .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
  .cards:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
  .cards:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.psection h2 + .cards, .psection h2 + .big-stats { margin-top: 28px; }
main { overflow-x: clip; }
.content { min-width: 0; }
/* телефон: «таблетки» уходят от заголовка к фотографии */
@media (max-width: 900px) {
  .page-hero .pills i:nth-child(1) { top: auto; bottom: 96px; right: 5%; }
  .page-hero .pills i:nth-child(2) { top: auto; bottom: 56px; right: calc(5% - 12px); }
  .page-hero .pills i:nth-child(3), .page-hero .pills i:nth-child(4) { display: none; }
}

/* ---------- Спокойнее: никаких выплывающих плашек и фото ---------- */
[data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
.tl.is-ready .tl__panel.is-active .tl__fill,
.tl.is-ready .tl__panel.is-active .tl__mark,
.tl.is-ready .tl__panel.is-active .tl__step { animation: none !important; }

/* ---------- Главная: рейтинги ---------- */
.home-rank__say {
  max-width: 21em;
  margin: 0 0 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-rank__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; padding: 0; list-style: none; }
.home-rank__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 28px; align-items: start; padding-top: 24px; border-top: 1px solid var(--lilac-200); }
.home-rank__num {
  grid-row: 1 / span 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 4rem + 11vw, 13rem);
  line-height: .78;
  letter-spacing: -0.06em;
  color: var(--violet);
}
.home-rank__place { margin: 6px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.home-rank__src { margin: 0 0 16px; font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }
.home-rank__text { margin: 0; font-size: var(--fs-text); line-height: 1.5; color: var(--ink); }

/* ---------- Главная: сообщество — тёмное поле и лента фото без зазоров ---------- */
.home-comm { padding-bottom: 0; }
.home-comm__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.home-comm__say {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1rem + 4.6vw, 5rem);
  line-height: .98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
}
.home-comm__text p { margin: 0; font-size: var(--fs-text); line-height: 1.5; color: #fff; }
.home-comm__text p + p { margin-top: 12px; }
.home-comm__strip { display: flex; height: 420px; margin: 56px 0 0; padding: 0; list-style: none; }
.home-comm__strip li { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transition: flex-grow .9s var(--expo); }
.home-comm__strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-comm__strip li::after { content: ''; position: absolute; inset: 0; background: var(--indigo); mix-blend-mode: color; opacity: .85; transition: opacity .9s var(--expo); }
.home-comm__strip li:hover, .home-comm__strip:not(:hover) li:first-child { flex-grow: 2.6; }
.home-comm__strip li:hover::after, .home-comm__strip:not(:hover) li:first-child::after { opacity: 0; }

@media (max-width: 900px) {
  .home-rank__say { margin-bottom: 36px; }
  .home-rank__list { grid-template-columns: 1fr; gap: 32px; }
  .home-rank__list li { gap: 0 18px; }
  .home-comm__head { grid-template-columns: 1fr; gap: 24px; }
  .home-comm__strip { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; margin-top: 36px; }
  .home-comm__strip li { aspect-ratio: 3 / 2; }
  .home-comm__strip li:first-child { grid-column: 1 / -1; }
  .home-comm__strip li::after { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-comm__strip li, .home-comm__strip li::after { transition: none; }
}

/* ---------- Сроки обучения: на широком экране три дорожки подряд на общей шкале, без плашек ---------- */
@media (min-width: 901px) {
  .tl { padding: 0; background: none; border-radius: 0; margin-top: 28px; border-bottom: 1px solid var(--lilac-200); }
  .tl .tl__tabs { display: none; }
  .tl .tl__panel, .tl.is-ready .tl__panel:not(.is-active) {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "head stage" "head steps";
    gap: 0 36px;
    margin: 0;
    padding: 26px 0 28px;
    border-top: 1px solid var(--lilac-200);
  }
  .tl__head { grid-area: head; font-size: var(--fs-small); }
  .tl__stage { grid-area: stage; margin: 14px 0 0; padding: 0 7px; }
  .tl__mark { box-shadow: none; }
  .tl__panel + .tl__panel .tl__years, .tl__panel + .tl__panel .tl__years-cap { display: none; }
  .tl__steps { grid-area: steps; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 24px 0 0; padding: 0 7px; }
  .tl__step { grid-column: var(--col) / var(--col-end); grid-row: 1; padding: 0 8px 0 0; border-radius: 0; background: none !important; font-size: 15px; }
  .tl__step.is-hot { background: none; }
  .tl__step.is-hot b { color: var(--violet); }
  .tl__step--end { padding: 0; text-align: right; }
}
.tl__name { display: none; }
@media (min-width: 901px) {
  /* ось лет — одна, над первой дорожкой */
  .tl__tabs + .tl__panel .tl__stage { display: flex; flex-direction: column-reverse; margin-top: 0; }
  .tl__tabs + .tl__panel .tl__years { margin: 0 0 22px; }
  .tl__tabs + .tl__panel .tl__years-cap { margin: 0 0 2px; }
  .tl__tabs + .tl__panel .tl__head { padding-top: 62px; }
  .tl__name { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
  .tl .tl__head b { margin-bottom: 2px; font-family: var(--font-text); font-weight: 600; font-size: var(--fs-small); letter-spacing: 0; }
}

/* ---------- Индивидуальные достижения: балл крупно, условие рядом ---------- */
.ach { margin: 24px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--lilac-200); }
.ach > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 36px; align-items: baseline; padding: 22px 0 24px; border-top: 1px solid var(--lilac-200); }
.ach__pts { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); white-space: nowrap; }
.ach__pts b { margin-right: 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; letter-spacing: -0.04em; color: var(--violet); }
.ach__what { margin: 0; font-weight: 600; font-size: var(--fs-sub); line-height: 1.3; color: var(--ink); }
.ach__when { margin: 6px 0 0; max-width: 40em; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.ach__scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; margin: 20px 0 0; }
.ach__scale > div { padding-top: 10px; border-top: 2px solid var(--violet); }
.ach__scale dt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); letter-spacing: -0.02em; color: var(--ink); }
.ach__scale dd { margin: 4px 0 0; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); }
.faq-crosslink { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .ach > li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0 20px; }
  .ach__scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
}

/* =========================================================
   ТЗ-2: сине-белая система, меньше плашек
   ========================================================= */

/* Кнопки: без градиента и свечения */
.btn-primary { color: var(--indigo); background: #fff; box-shadow: none; }
.btn-primary:hover { transform: none; box-shadow: none; background: var(--lilac-100); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px;
  font: 600 17px/1.2 var(--font-text); text-decoration: none; color: #fff; background: var(--violet);
  border: 1.5px solid var(--violet); transition: background .15s ease, border-color .15s ease;
}
.btn-solid:hover { background: var(--night); border-color: var(--night); color: #fff; }
.btn-ghost--dark { padding: 14px 26px; }

/* ---------- Поступление ---------- */
.adm-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; padding-top: 72px; padding-bottom: 64px; }
.adm-hero h1, .adm-hero .page-hero__title { max-width: 12em; }
.adm-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.adm-toc li { counter-increment: toc; border-top: 1px solid rgba(255, 255, 255, .22); }
.adm-toc a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; padding: 13px 0; color: #fff; font-size: var(--fs-text); font-weight: 500; line-height: 1.3; text-decoration: none; transition: color .3s var(--expo); }
.adm-toc a::before { content: counter(toc); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--mint); }
.adm-toc a:hover, .adm-toc a:focus-visible { color: var(--mint); }

.prog { margin: 36px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--lilac-200); }
.prog > li { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 0 40px; align-items: start; padding: 30px 0 32px; border-top: 1px solid var(--lilac-200); }
.prog__abbr { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 1.3vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--violet); }
.prog__body h3 { margin: 0 0 10px; font-size: var(--fs-sub); color: var(--ink); }
.prog__body p { margin: 0; max-width: 40em; font-size: var(--fs-text); line-height: 1.55; color: var(--ink); }
.prog__body .prog__link { margin-top: 10px; }
.prog__link a { color: var(--violet); text-underline-offset: 4px; }
.prog__meta { margin: 0; font-size: var(--fs-small); line-height: 1.35; color: var(--ink-soft); }
.prog__meta b { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; letter-spacing: -0.03em; color: var(--indigo); }
.prog__meta span { display: block; margin-top: 8px; color: var(--ink); font-weight: 600; }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 48px 0 0; }
.terms > div { padding-top: 20px; border-top: 1px solid var(--lilac-200); }
.terms dt { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); color: var(--ink); }
.terms dd { margin: 0; font-size: var(--fs-text); line-height: 1.55; color: var(--ink); }

.adm-plan__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.adm-plan__list li { padding: 4px 24px 0; border-left: 1px solid rgba(255, 255, 255, .22); }
.adm-plan__list li:first-child { padding-left: 0; border-left: 0; }
.adm-plan__list b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.adm-plan__list span { display: block; margin-top: 14px; max-width: 14em; font-size: var(--fs-text); line-height: 1.3; color: #fff; }
.adm-plan .faq-crosslink { margin-top: 40px; }
.adm-more { margin: 24px 0 40px; }

.rowlinks { margin: 32px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--lilac-200); }
.rowlinks li { border-top: 1px solid var(--lilac-200); }
.rowlinks a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; gap: 24px; align-items: baseline; padding: 24px 0; color: var(--ink); text-decoration: none; }
.rowlinks a::after { content: '→'; font-size: var(--fs-sub); color: var(--violet); transition: transform .5s var(--expo); }
.rowlinks b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; transition: color .3s var(--expo); }
.rowlinks span { font-size: var(--fs-text); color: var(--ink-soft); }
.rowlinks a:hover b, .rowlinks a:focus-visible b { color: #fff; }
.rowlinks a:hover::after, .rowlinks a:focus-visible::after { transform: translateX(6px); }

/* «Остались вопросы?» — строка во всю ширину контейнера, без плашки */
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 32px; border-top: 2px solid var(--indigo); }
.ask h2 { margin: 0; }
.ask__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

@media (max-width: 900px) {
  .adm-hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; padding-bottom: 40px; }
  .prog > li { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 26px; }
  .prog__meta b { display: inline; margin-right: 8px; font-size: 1.75rem; }
  .terms { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; }
  .adm-plan__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .adm-plan__list li { padding: 0 16px 0 0; border-left: 0; }
  .rowlinks a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 0; }
  .rowlinks b, .rowlinks span { grid-column: 1; }
  .rowlinks a::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ask { flex-direction: column; align-items: flex-start; }
}

.prog__abbr { font-size: clamp(1.3rem, 1rem + .8vw, 1.5rem); }
.psection--dark .faq-crosslink a { color: #fff; background: none; border-color: rgba(255, 255, 255, .45); }
.psection--dark .faq-crosslink a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Подвал: кнопки соцсетей в схеме сайта */
.footer-buttons .btn, .footer-buttons .btn.telegram, .footer-buttons .btn.vk, .footer-buttons .btn.mgu.mgu__white {
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; box-shadow: none;
  transition: background .2s ease, border-color .2s ease;
}
.footer-buttons .btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; opacity: 1; transform: none; }
.footer-buttons .btn.mgu__white svg { filter: brightness(0) invert(1); }

/* ---------- Отделения и кафедры: без цветных плашек ---------- */
.dept-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 28px 0 72px; padding: 0; list-style: none; }
.dept-index a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--lilac-200); color: var(--ink); font-size: var(--fs-text); font-weight: 600; text-decoration: none; text-transform: capitalize; transition: color .3s var(--expo); }
.dept-index a::first-letter { text-transform: uppercase; }
.dept-index a { text-transform: none; }
.dept-index span { font-size: var(--fs-small); font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.dept-index span::after { content: ' каф.'; }
.dept-index a:hover, .dept-index a:focus-visible { color: var(--hover); }

.division { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 64px; margin: 0 0 72px; padding: 32px 0 0; border-top: 2px solid var(--indigo); border-radius: 0; background: none; box-shadow: none; overflow: visible; color: var(--ink); }
.division:last-child { margin-bottom: 0; }
.division__body { padding: 0; }
.division__body h3 { margin: 0 0 20px; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); line-height: 1.1; letter-spacing: -0.02em; text-transform: none; color: var(--violet); }
.division__body p { max-width: 38em; color: var(--ink); }
.division__side { background: none; color: var(--ink); }
.division__img { height: 240px; border-radius: var(--radius); overflow: hidden; }
.division__list { padding: 24px 0 0; }
.division__list h4 { margin: 0 0 12px; font-family: var(--font-text); font-weight: 600; font-size: var(--fs-small); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.division__list ul { gap: 0; }
.division__list li { padding: 9px 0; border-top: 1px solid var(--lilac-200); color: var(--ink); }
.division__list li::before { display: none; }
@media (max-width: 860px) {
  .dept-index { grid-template-columns: 1fr; margin-bottom: 48px; }
  .division { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; padding-top: 24px; }
  .division__body { padding: 0; }
  .division__img { height: 200px; }
}

/* ---------- О физфаке ---------- */
.home-comm__head { align-items: center; }
.facts__top { margin-top: 40px; }
.facts__top .home-rank__num { font-size: clamp(6rem, 3.5rem + 8vw, 10rem); }
.facts { margin-top: 64px; border-bottom: 1px solid var(--lilac-200); }
.facts__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px; align-items: start; padding: 26px 0 28px; border-top: 1px solid var(--lilac-200); }
.psection .facts__row h3 { margin: 10px 0 0; font-size: var(--fs-sub); color: var(--ink); }
.facts__row ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; margin: 0; padding: 0; list-style: none; }
.facts__row b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; letter-spacing: -0.03em; color: var(--violet); white-space: nowrap; }
.facts__row span { display: block; margin-top: 8px; font-size: var(--fs-text); line-height: 1.3; color: var(--ink); }

.about-msu h2.home-comm__say { margin: 0; }
.about-msu__nums { display: grid; grid-template-columns: 1.3fr 1.5fr repeat(3, 1fr); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; }
.about-msu__nums li { padding: 4px 24px 0; border-left: 1px solid rgba(255, 255, 255, .22); }
.about-msu__nums li:first-child { padding-left: 0; border-left: 0; }
.about-msu__nums b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--mint); white-space: nowrap; }
.about-msu__nums span { display: block; margin-top: 12px; font-size: var(--fs-text); line-height: 1.3; color: #fff; }
.about-msu__note { max-width: 46em; margin: 40px 0 0; }

/* Цитата декана: белое поле, без градиентной плашки */
.psection--quote { padding-top: 72px; }
.quote-duo { gap: 56px; align-items: center; }
.quote-duo .quote-block, .quote-block { padding: 0; border-radius: 0; background: none; color: var(--ink); overflow: visible; }
.quote-duo .quote-block { padding-left: 32px; border-left: 3px solid var(--violet); }
.quote-block .pills { display: none; }
.quote-block p { font-size: var(--fs-sub); line-height: 1.5; color: var(--ink); }
.quote-block footer { margin-top: 24px; font-size: var(--fs-text); font-weight: 600; color: var(--violet); }

.laureates__year { color: var(--violet); }
.laureates h3 { color: var(--ink); }

/* Как добраться: текст на одной левой линии, без плашки */
.address-card { padding: 0; border-radius: 0; background: none; }
.psection .address-card h3:first-child { margin-top: 0; }
.map-frame { box-shadow: none; }

@media (max-width: 900px) {
  .facts { margin-top: 44px; }
  .facts__row { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 24px; }
  .psection .facts__row h3 { margin: 0; }
  .facts__row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 20px; }
  .about-msu__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; margin-top: 36px; }
  .about-msu__nums li { padding: 0 16px 0 0; border-left: 0; }
  .psection--quote { padding-top: 48px; }
  .quote-duo { gap: 28px; }
  .quote-duo .quote-block { padding: 0 0 0 20px; }
  .laureates li { grid-template-columns: 1fr; gap: 10px; }
  .loc { gap: 28px; }
}
.loc { margin-top: 28px; }
@media (max-width: 900px) { .about-msu .home-comm__strip li:last-child { display: none; } }

/* Крупные цифры: линейка сверху вместо плашки, сплошной синий без градиента */
.big-stats { gap: 0 40px; }
.big-stats li, .psection--dark .big-stats li { padding: 20px 0 0; border-radius: 0; background: none; border-top: 2px solid var(--indigo); }
.psection--dark .big-stats li { border-top-color: rgba(255, 255, 255, .4); }
.big-stats b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--violet); line-height: 1; margin-bottom: 12px; white-space: nowrap; }
.psection--dark .big-stats b { color: var(--mint); }
.big-stats span { display: block; }

/* ---------- Карьера ---------- */
#jobs .big-stats { margin: 36px 0 48px; }
.paths { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; margin-top: 36px; align-items: start; }
.paths__main { padding-top: 26px; border-top: 2px solid var(--indigo); }
.psection .paths__main h3 { margin: 0 0 16px; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--violet); }
.paths__main p { margin: 0 0 28px; font-size: var(--fs-sub); line-height: 1.45; color: var(--ink); }
.paths__main .photo img { aspect-ratio: 4 / 3; }
.paths__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--lilac-200); }
.paths__list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 32px; padding: 26px 0 28px; border-top: 1px solid var(--lilac-200); }
.paths__list li:first-child { border-top: 2px solid var(--indigo); }
.psection .paths__list h3 { margin: 0; font-size: var(--fs-sub); line-height: 1.2; color: var(--ink); hyphens: manual; }
.paths__list p { margin: 0; font-size: var(--fs-text); line-height: 1.5; color: var(--ink); }

.employers { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 40px 0 0; padding: 0; list-style: none; }
.employers li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, .9rem + 1vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.employers li:nth-child(3n + 2) { color: var(--mint); }

.opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin: 36px 0 0; padding: 0; list-style: none; }
.opps li { padding-top: 24px; border-top: 2px solid var(--indigo); }
.psection .opps h3 { margin: 0 0 12px; font-size: var(--fs-sub); color: var(--ink); }
.opps p { margin: 0 0 14px; font-size: var(--fs-text); line-height: 1.5; color: var(--ink); }
.opps a { font-weight: 600; color: var(--violet); text-underline-offset: 4px; }
.opps + .faq-crosslink { margin-top: 36px; }

@media (max-width: 900px) {
  .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .paths { grid-template-columns: 1fr; gap: 36px; }
  .paths__list li { grid-template-columns: 1fr; gap: 8px; padding: 20px 0 22px; }
  .employers { gap: 10px 24px; margin-top: 28px; }
  .opps { grid-template-columns: 1fr; gap: 28px; }
}

/* Первый экран: фото без браузерных отступов figure — на телефоне ровно по ширине текста */
.page-hero__media { margin: 0; }
@media (max-width: 900px) {
  .page-hero .pills i:nth-child(1), .page-hero .pills i:nth-child(2) { display: none; }
}

/* ---------- Студенческая жизнь ---------- */
/* Общежитие: слева курс и название, справа описание, ниже лента фото */
.dorm-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 32px; align-items: start; margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--indigo); }
.dorm-item__when { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num); line-height: 1; letter-spacing: -0.03em; color: var(--violet); }
.psection .dorm-item h3 { margin: 0; font-size: var(--fs-sub); line-height: 1.15; color: var(--ink); }
.dorm-item__text p { margin: 0 0 12px; font-size: var(--fs-text); line-height: 1.5; }
.dorm-item__text p:last-child { margin-bottom: 0; }
.dorm-item__photos { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; }
.dorm-item__photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dorm-item__photos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dorm-photo { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--lilac-100); }
.dorm-item__photos--2 .dorm-photo { aspect-ratio: 16 / 9; }
.dorm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--expo); }
.dorm-photo:hover img { transform: scale(1.05); }
#dorm .faq-crosslink { margin-top: 36px; }

/* Спорт: слева условия, справа виды по группам — строками, без «чипов» */
.sport { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 72px; align-items: start; margin-top: 32px; }
.sport__text p { margin: 0 0 16px; }
.sport__text .sport__lead { margin-bottom: 22px; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.3; font-weight: 500; color: var(--ink); }
.sport__text p:last-child { margin: 26px 0 0; }
.sport__kinds { margin: 0; border-bottom: 1px solid var(--lilac-200); }
.sport__kinds > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 24px; align-items: baseline; padding: 18px 0 20px; border-top: 1px solid var(--lilac-200); }
.sport__kinds > div:first-child { border-top: 2px solid var(--indigo); }
.sport__kinds dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--violet); }
.sport__kinds dd { margin: 0; font-size: var(--fs-text); line-height: 1.45; color: var(--ink); }
.sport__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }

/* Столовые: текст и две цифры в одну линию по верху */
.food-grid { align-items: start; }
.food-grid h2 { margin-top: 0; }
.food-grid .big-stats { margin-top: 6px !important; }

/* Студенческие организации — строками */
.orgs { margin: 20px 0 0; padding: 0; list-style: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.orgs li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .25); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; color: #fff; }

@media (max-width: 900px) {
  .dorm-item { grid-template-columns: 1fr; gap: 14px; }
  .dorm-item__photos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dorm-item__photos--3 .dorm-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .sport { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .sport__kinds > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0 16px; }
  .sport__photos { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .food-grid .big-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orgs li { font-size: 17px; }
}

/* Истории выпускников: строки с линейкой вместо белых плашек, фото всегда слева */
.testimonials { gap: 0; margin-top: 36px; border-bottom: 1px solid var(--lilac-200); }
.testimonial, .testimonial:nth-child(even) { grid-template-columns: 96px minmax(0, 1fr); gap: 0 28px; align-items: start; padding: 28px 0 30px; border-radius: 0; background: none; box-shadow: none; border: 0; border-top: 1px solid var(--lilac-200); }
.testimonial:first-child { border-top: 2px solid var(--indigo); }
.testimonial:nth-child(even) .testimonial__photo { order: 0; }
.testimonial__photo { width: 96px; height: 96px; border: 0; box-shadow: none; padding: 0; }
.testimonial > div:last-child { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 40px; align-items: start; }
.psection .testimonial h3 { grid-column: 1; margin: 0 0 8px; color: var(--ink); }
.testimonial__role { grid-column: 1; margin: 0; line-height: 1.4; }
.testimonial blockquote { grid-column: 2; grid-row: 1 / span 2; color: var(--ink); line-height: 1.5; }
.food-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) {
  .testimonial, .testimonial:nth-child(even) { grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; padding: 22px 0 24px; }
  .testimonial__photo { width: 64px; height: 64px; }
  .testimonial > div:last-child { grid-template-columns: 1fr; }
  .testimonial blockquote { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .food-grid { grid-template-columns: 1fr; }
}
.testimonial > div:last-child { grid-template-rows: auto 1fr; }
@media (max-width: 900px) {
  .testimonial > div:last-child { grid-template-rows: none; }
  .food-grid .big-stats b { font-size: 1.55rem; }
  .site-footer::after { display: none; }
}

/* ---------- Материалы для подготовки ---------- */
.gd-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 72px; align-items: end; padding-top: 72px; padding-bottom: 60px; }
.gd-toc { border-bottom: 1px solid rgba(255, 255, 255, .25); }
.gd-toc a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 20px; align-items: baseline; padding: 16px 0 18px; border-top: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; }
.gd-toc b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); letter-spacing: -0.01em; transition: color .3s ease; }
.gd-toc span { font-size: var(--fs-small); line-height: 1.4; color: rgba(255, 255, 255, .82); }
.gd-toc a:hover b, .gd-toc a:focus-visible b { color: var(--mint); }

.gd-book { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 40px; align-items: end; margin-top: 36px; padding: 36px 40px; border-radius: 24px; background: var(--grad-cover); color: #fff; text-decoration: none; }
.gd-book__kind { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--mint); }
.gd-book b { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; }
.gd-book__text { grid-column: 1; max-width: 46em; font-size: var(--fs-text); line-height: 1.5; color: rgba(255, 255, 255, .88); }
.gd-book__go { grid-column: 2; grid-row: 2 / span 2; align-self: end; padding: 14px 26px; border-radius: 999px; background: #fff; color: var(--indigo); font-weight: 600; font-size: 17px; white-space: nowrap; transition: background .2s ease; }
.gd-book:hover .gd-book__go, .gd-book:focus-visible .gd-book__go { background: var(--mint); }

.psection h3.gd-sub { margin: 56px 0 6px; font-size: var(--fs-sub); color: var(--ink); }
.gd-note { margin: 0 0 20px; font-size: var(--fs-small); color: var(--ink-soft); }
.gd-years { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.gd-years a { display: block; padding: 16px 0 18px; border-top: 1px solid var(--lilac-200); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.gd-years li:nth-child(-n + 7) a { border-top: 2px solid var(--indigo); }
.gd-years a:hover, .gd-years a:focus-visible { color: var(--hover); border-top-color: var(--hover); }

.gd-part { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 40px; margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--indigo); }
.psection .gd-part > h3 { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--violet); hyphens: manual; }
.gd-topic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); gap: 0 32px; padding: 18px 0 20px; border-top: 1px solid var(--lilac-200); }
.gd-topic:first-child { padding-top: 0; border-top: 0; }
.gd-topic h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); }
.gd-topic__links p { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 8px; font-size: var(--fs-text); line-height: 1.5; }
.gd-topic__links p:last-child { margin: 0; }
.gd-topic__links span { flex: 0 0 8.2em; font-size: var(--fs-small); line-height: 1.85; color: var(--ink-soft); }
.gd-topic__links a { color: var(--violet); font-weight: 500; text-underline-offset: 4px; text-decoration-color: rgba(42, 32, 85, .35); }
.gd-topic__links a:hover { text-decoration-color: currentColor; }

.gd-olymps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 72px; margin: 40px 0; }
.gd-olymp { padding-top: 22px; border-top: 2px solid var(--indigo); }
.psection .gd-olymp h3 { margin: 0 0 14px; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.15; color: var(--ink); }
.gd-olymp ul { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--lilac-200); }
.gd-olymp a { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 0 16px; align-items: baseline; padding: 12px 0 13px; border-top: 1px solid var(--lilac-200); font-size: var(--fs-text); line-height: 1.4; color: var(--ink); text-decoration: none; transition: color .2s ease; }
.gd-olymp a span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--violet); }
.gd-olymp a:hover, .gd-olymp a:focus-visible { color: var(--hover); }
.gd-toc a:focus-visible, .gd-book:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.gd-years a:focus-visible, .gd-olymp a:focus-visible, .gd-topic__links a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

@media (max-width: 900px) {
  .gd-hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 36px; }
  .gd-toc a { grid-template-columns: 1fr; gap: 4px; padding: 14px 0 15px; }
  .gd-book { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 20px; }
  .gd-book__go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .psection h3.gd-sub { margin-top: 40px; }
  .gd-years { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
  .gd-years li:nth-child(-n + 7) a { border-top: 1px solid var(--lilac-200); }
  .gd-years li:nth-child(-n + 3) a { border-top: 2px solid var(--indigo); }
  .gd-part { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
  .gd-topic { grid-template-columns: 1fr; gap: 10px; }
  .gd-topic__links span { flex-basis: 100%; line-height: 1.4; }
  .gd-olymps { grid-template-columns: 1fr; gap: 40px; margin: 28px 0; }
  .gd-olymp a { grid-template-columns: 5.6em minmax(0, 1fr); gap: 0 12px; }
}
.gd-hero .pills i:nth-child(1), .gd-hero .pills i:nth-child(2) { display: none; }
.psection .gd-part > h3 { font-size: clamp(1.15rem, .9rem + .7vw, 1.4rem); }
.gd-topic__links p { position: relative; padding-left: 8.6em; }
.gd-topic__links span { position: absolute; left: 0; top: 0; }
@media (max-width: 900px) {
  .gd-topic__links p { padding-left: 0; }
  .gd-topic__links span { position: static; }
}

/* ---------- Вопросы ---------- */
.fq-hero__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 56px; }
.fq-type { min-height: 2.5em; margin: 36px 0 0; max-width: 22em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, .9rem + 1.6vw, 2.2rem); line-height: 1.22; letter-spacing: -0.02em; }
.fq-type a { color: var(--mint); text-decoration: none; }
.fq-type a:hover .fq-type__text, .fq-type a:focus-visible .fq-type__text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fq-type a:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
.fq-type__caret { display: none; width: .09em; height: .95em; margin-left: .12em; vertical-align: -0.08em; background: #fff; animation: fq-blink 1.1s steps(1) infinite; }
.fq-type.is-live .fq-type__caret { display: inline-block; }
.fq-type.is-typing .fq-type__caret { animation: none; }
@keyframes fq-blink { 50% { opacity: 0; } }
.fq-hero.page-hero .pills i:nth-child(1) { top: 16%; right: 12%; }
.fq-hero.page-hero .pills i:nth-child(2) { top: calc(16% + 60px); right: calc(12% - 26px); }

.fq-toc ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.fq-toc a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; height: 100%; box-sizing: border-box; padding: 14px 0 16px; border-top: 1px solid var(--lilac-200); font-weight: 600; font-size: var(--fs-text); line-height: 1.3; color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.fq-toc li:nth-child(-n + 4) a { border-top: 2px solid var(--indigo); }
.fq-toc a span { font-family: var(--font-display); font-size: var(--fs-small); color: var(--violet); }
.fq-toc a:hover, .fq-toc a:focus-visible { color: var(--hover); border-top-color: var(--hover); }
.fq-note { max-width: 52em; margin: 36px 0 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.fq-note a { color: var(--violet); }

.page--faq .fq-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 56px; align-items: start; margin: 72px 0 0; padding-top: 28px; border-top: 2px solid var(--indigo); }
.fq-sec__head { position: sticky; top: calc(var(--header-h) + 24px); }
.page--faq .fq-sec h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; color: var(--violet); hyphens: manual; overflow-wrap: break-word; }
.page--faq .faq-section-link { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.page--faq .faq-section-link a, .page--faq .faq-answer a { color: var(--violet); border-bottom-color: rgba(42, 32, 85, .35); }
.page--faq .faq-list { gap: 0; border-bottom: 1px solid var(--lilac-200); }
.page--faq .faq-item { background: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--lilac-200); overflow: visible; }
.page--faq .faq-item:first-child { border-top: 0; }
.page--faq .faq-item:hover { background: none; box-shadow: none; }
.page--faq .faq-item::before { display: none; }
.page--faq .faq-item.faq-targeted { background: none; animation: none; }
.page--faq .faq-item.faq-targeted .faq-q-text { color: var(--violet); }
.page--faq .faq-question { padding: 18px 0 19px; gap: 24px; font-family: var(--font-text); font-size: var(--fs-sub); font-weight: 600; line-height: 1.35; color: var(--ink); }
.page--faq .faq-item:first-child .faq-question { padding-top: 0; }
.page--faq .faq-question:hover .faq-q-text, .page--faq .faq-question[aria-expanded="true"] .faq-q-text { color: var(--hover); }
.page--faq .faq-question:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.page--faq .faq-arrow { width: 22px; height: 22px; margin-top: 3px; color: var(--violet); transition: transform .45s var(--expo); }
.page--faq .faq-answer { padding: 0 46px 0 0; }
.page--faq .faq-answer.active { padding-bottom: 22px; }
.page--faq .faq-answer > * { transform: none; transition: opacity .35s ease .08s; }
.page--faq .faq-answer p, .page--faq .faq-answer li { font-size: var(--fs-text); line-height: 1.55; color: var(--ink); }
.fq-ask { margin-top: 88px; }

@media (max-width: 900px) {
  .fq-hero__inner { padding-top: 40px; padding-bottom: 36px; }
  .fq-type { min-height: 3.7em; margin-top: 26px; }
  .fq-hero.page-hero .pills i { display: none; }
  .fq-toc ul { grid-template-columns: 1fr; }
  .fq-toc li:nth-child(-n + 4) a { border-top: 1px solid var(--lilac-200); }
  .fq-toc li:first-child a { border-top: 2px solid var(--indigo); }
  .fq-toc a { padding: 12px 0 13px; }
  .page--faq .fq-sec { grid-template-columns: 1fr; gap: 22px; margin-top: 52px; padding-top: 22px; }
  .fq-sec__head { position: static; }
  .page--faq .faq-question { font-size: var(--fs-text); gap: 14px; padding: 15px 0 16px; }
  .page--faq .faq-answer { padding-right: 0; }
  .fq-ask { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .fq-type__caret { animation: none; } }
@media (min-width: 901px) { .page--faq .fq-sec h2 { font-size: clamp(1.1rem, .7rem + .9vw, 1.5rem); line-height: 1.12; overflow-wrap: normal; } }
@media (min-width: 901px) { .food-grid .big-stats b { font-size: clamp(1.8rem, 2.9vw, 2.55rem); } }

/* ---------- Олимпиады и ДВИ ---------- */
.ol-dvi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 72px; margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--indigo); }
.ol-dvi h3 { margin: 0 0 10px; color: var(--ink); }
.ol-dvi p { margin: 0; max-width: 34em; color: var(--ink-soft); }
.ol-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 0; }
.ol-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--indigo); scroll-margin-top: calc(var(--header-h) + 16px); }
.ol-group__head h3 { margin: 0 0 12px; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--indigo); }
.ol-group__head p { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-soft); }
.ol-list { margin: 0; padding: 0; list-style: none; }
.ol-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 190px; gap: 16px 32px; align-items: start; padding: 28px 0; border-top: 1px solid var(--lilac-200); }
.ol-row:first-child { padding-top: 0; border-top: 0; }
.ol-row__logo { width: 72px; height: 72px; object-fit: contain; }
.ol-row__main h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ol-row__main p { margin: 0; max-width: 40em; color: var(--ink-soft); }
.ol-row__main p + p { margin-top: 10px; }
.ol-row__side { display: grid; gap: 16px; justify-items: start; }
.ol-row__facts { display: grid; gap: 12px; margin: 0; }
.ol-row__facts dt { font-size: var(--fs-small); color: var(--ink-soft); }
.ol-row__facts dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sub); line-height: 1.1; color: var(--indigo); }
.ol-row__go { font-weight: 600; font-size: var(--fs-text); color: var(--indigo); text-decoration: underline; text-decoration-color: var(--lilac-200); text-underline-offset: 5px; transition: text-decoration-color .3s ease; }
.ol-row__go:hover, .ol-row__go:focus-visible { text-decoration-color: var(--indigo); }
.ol-row__go:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
.ol-cta { margin-top: 72px; }
.ol-cta > div:first-child { flex: 1 1 380px; max-width: 560px; }
@media (max-width: 900px) {
  .ol-dvi { grid-template-columns: 1fr; gap: 24px; }
  .ol-group { grid-template-columns: 1fr; margin-top: 44px; }
  .ol-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 16px; padding: 22px 0; }
  .ol-row__logo { width: 56px; height: 56px; }
  .ol-row__side { grid-column: 2; }
  .ol-row__facts { grid-auto-flow: column; justify-content: start; gap: 28px; }
  .ol-cta { margin-top: 48px; }
}
.gd-book:hover .gd-book__go, .gd-book:focus-visible .gd-book__go { background: var(--lilac-100); }

/* Олимпиады: шапка группы строкой, логотипы крупнее */
.ol-group { display: block; }
.ol-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-bottom: 32px; }
.ol-group__head h3 { margin: 0; }
.ol-group__head p { max-width: 40em; }
.ol-row { grid-template-columns: 132px minmax(0, 1fr) 190px; gap: 16px 40px; }
.ol-row__logo { width: 132px; height: 132px; }
@media (max-width: 900px) {
  .ol-group__head { margin-bottom: 24px; }
  .ol-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px 18px; }
  .ol-row__logo { width: 84px; height: 84px; }
}

/* Наведение на строки-ссылки: меняется только цвет */
.ol-row__go { transition: color .3s ease, text-decoration-color .3s ease; }
.ol-row__go:hover, .ol-row__go:focus-visible { color: var(--hover); text-decoration-color: var(--hover); }
.rowlinks a b, .dept-index a, .gd-years a, .gd-olymp a, .fq-toc a, .link-list a { transition: color .3s ease, border-color .3s ease; }

/* Между соседними светлыми разделами один отступ, а не два */
.psection:not(.psection--dark) + .psection:not(.psection--dark) { padding-top: 0; }

/* Достижения: текст вровень с числом, без опускания по базовой линии */
.ach > li { align-items: start; padding: 20px 0; }
.ach__body { padding-top: 9px; }
@media (max-width: 900px) { .ach__body { padding-top: 0; } }

/* Плашка на телефоне: узкие поля, текст во всю ширину */
@media (max-width: 900px) {
  .cta-band { padding: 26px 20px; gap: 18px; border-radius: 14px; }
  .cta-band .btn-primary, .cta-band .btn-ghost { padding: 12px 20px; }
}

/* Строки-ссылки: при наведении снизу поднимается фиолетовая заливка, текст становится белым */
.ct-links a, .rowlinks a, .dept-index a, .gd-olymp a, .gd-years a, .fq-toc a {
  background: linear-gradient(var(--hover), var(--hover)) no-repeat 0 100% / 100% 0;
  transition: background-size .6s var(--expo), color .35s ease, border-color .35s ease;
}
.ct-links a, .rowlinks a { margin-inline: -20px; padding-inline: 20px; }
.dept-index a, .gd-olymp a, .gd-years a, .fq-toc a { margin-inline: -10px; padding-inline: 10px; }
.ct-links a *, .rowlinks a *, .dept-index a *, .gd-olymp a *, .gd-years a *, .fq-toc a *,
.ct-links a::after, .rowlinks a::after { transition: color .35s ease; }
@media (hover: hover) {
  .ct-links a:hover, .rowlinks a:hover, .dept-index a:hover, .gd-olymp a:hover, .gd-years a:hover, .fq-toc a:hover { background-size: 100% 100%; color: #fff; border-top-color: var(--hover); }
  .ct-links a:hover *, .rowlinks a:hover *, .dept-index a:hover *, .gd-olymp a:hover *, .gd-years a:hover *, .fq-toc a:hover *,
  .ct-links a:hover::after, .rowlinks a:hover::after { color: #fff; }
}
.ct-links a:focus-visible, .rowlinks a:focus-visible, .dept-index a:focus-visible, .gd-olymp a:focus-visible, .gd-years a:focus-visible, .fq-toc a:focus-visible { background-size: 100% 100%; color: #fff; }
.ct-links a:focus-visible *, .rowlinks a:focus-visible *, .dept-index a:focus-visible *, .gd-olymp a:focus-visible *, .gd-years a:focus-visible *, .fq-toc a:focus-visible *,
.ct-links a:focus-visible::after, .rowlinks a:focus-visible::after { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ct-links a, .rowlinks a, .dept-index a, .gd-olymp a, .gd-years a, .fq-toc a { transition: none !important; }
}

/* Плашки-ссылки в ряд: одной высоты, даже если текст перенёсся */
.link-list--row li { display: flex; }
.link-list--row a { flex: 1; }

/* Отделения: у каждого свой цвет фона, как в буклете */
.division { gap: 0 56px; margin-bottom: 20px; padding: 40px 44px; border-top: 0; border-radius: var(--radius); background: var(--dept, var(--indigo)); color: #fff; }
.division__body h3, .division__body p, .division__side, .division__list li { color: #fff; }
.division__list h4 { color: rgba(255, 255, 255, .75); }
.division__list li { border-top-color: rgba(255, 255, 255, .28); }
.dept-index { margin-bottom: 48px; }
@media (max-width: 860px) {
  .division { margin-bottom: 14px; padding: 26px 20px; }
}

/* Заголовок группы олимпиад: на широком экране пояснение стоит справа от заголовка */
@media (min-width: 901px) {
  .ol-group__head { flex-wrap: nowrap; }
  .ol-group__head h3 { flex: none; }
  .ol-group__head p { flex: 1 1 0; min-width: 0; }
}

/* Фон — тёплая бумага вместо чистого белого; таблицы и карточки остаются белыми */
.psection--white, .home-sections { background: var(--paper); }

/* ---------- Шкала масштабов «От кварков до Вселенной» ---------- */
.scale {
  padding: 44px 44px 30px;
  border-radius: 28px;
  background: var(--dept, var(--indigo));
  color: #fff;
  transition: background-color 1s ease;
}
.scale__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 56px; align-items: end; }
.scale__head h2 { margin: 0; color: #fff; }
.scale__head p { margin: 0; color: #fff; }
.scale__view { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: start; margin-top: 48px; min-height: 236px; }
.scale__size { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.scale__size sup { font-size: .5em; vertical-align: baseline; position: relative; top: -.72em; margin-left: .04em; letter-spacing: -0.02em; }
.scale__info h3 { margin: 6px 0 10px; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); line-height: 1.1; color: #fff; }
.scale__info p { margin: 0; max-width: 34em; color: #fff; }
.scale__dept { display: block; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; }
.scale__dept b { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-text); line-height: 1.25; }
.scale__dept b::after { content: ' →'; white-space: nowrap; }
.scale__dept span { display: block; margin-top: 6px; font-size: var(--fs-small); line-height: 1.4; color: rgba(255, 255, 255, .82); }
.scale__dept:hover b, .scale__dept:focus-visible b { text-decoration: underline; text-underline-offset: 4px; }
.scale__dept:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }

.scale__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scale__axis { position: relative; margin-top: 36px; padding: 0 22px; }
.scale__track { position: relative; height: 84px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.scale__track::before { content: ''; position: absolute; left: -22px; right: -22px; top: 24px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.scale__fill { position: absolute; left: -22px; top: 24px; height: 4px; width: 0; padding-left: 22px; box-sizing: content-box; border-radius: 4px; background: var(--grad-pill-h); transition: width 1s cubic-bezier(.65, 0, .35, 1); }
.scale__tick { position: absolute; top: 0; width: 44px; height: 84px; margin-left: -22px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .7); font: inherit; cursor: pointer; }
.scale__tick::before { content: ''; position: absolute; left: 50%; top: 19px; width: 2px; height: 14px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.scale__tick span { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap; }
.scale__tick sup { font-size: .7em; vertical-align: baseline; position: relative; top: -.6em; }
.scale__tick.is-on { color: #fff; }
.scale__tick.is-on span { font-size: 15px; }
.scale__tick.is-past::before, .scale__tick.is-on::before { background: #fff; }
.scale__thumb { position: absolute; left: 0; top: 4px; width: 22px; height: 44px; margin-left: -11px; border-radius: 9px; background: var(--grad-pill); box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 0 0 2px #fff; pointer-events: none; transition: left 1s cubic-bezier(.65, 0, .35, 1); }
.scale.is-drag .scale__thumb, .scale.is-drag .scale__fill { transition-duration: .12s; }
.scale__sr:focus-visible ~ .scale__track .scale__thumb { outline: 2px solid #fff; outline-offset: 4px; }
.scale__ends { display: flex; justify-content: space-between; margin: 2px -22px 0; font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }
.scale__note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: var(--fs-small); color: rgba(255, 255, 255, .82); }
.scale__note a { color: #fff; text-underline-offset: 3px; }
.scale:not(.is-ready) .scale__axis { display: none; }

@media (max-width: 860px) {
  .scale { padding: 28px 20px 22px; border-radius: var(--radius); }
  .scale__head, .scale__view { grid-template-columns: 1fr; }
  .scale__view { margin-top: 28px; min-height: 330px; align-content: start; }
  .scale__axis { margin-top: 20px; padding: 0 14px; }
  .scale__track::before, .scale__fill { left: -14px; }
  .scale__track::before { right: -14px; }
  .scale__fill { padding-left: 14px; }
  .scale__ends { margin: 0 -14px; }
  .scale__tick span { display: none; }
  .scale__tick.is-on span { display: block; }
  .scale__track { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .scale, .scale__thumb, .scale__fill { transition: none; }
}

/* ---------- 404: цифры из частиц на пружинах ---------- */
.e404 { margin: 0; background: var(--indigo); color: #fff; padding: 28px 0 72px; }
.e404__stage { position: relative; height: clamp(190px, 34vw, 430px); touch-action: pan-y; cursor: crosshair; }
.e404__num { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(110px, 33vw, 420px); line-height: 1; letter-spacing: -0.02em; background: var(--grad-pill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.e404__stage.is-ready .e404__num { visibility: hidden; }
.e404__stage.is-ready .e404__canvas { display: block; }
.e404__body { max-width: 720px; margin: 8px auto 0; text-align: center; }
.e404__body h1 { margin: 0 0 12px; font-size: var(--fs-hero); line-height: 1.05; color: #fff; }
.e404__lead { margin: 0; color: #fff; }
.e404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.e404__links a { display: block; padding: 12px 22px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none; transition: background .15s ease, color .15s ease; }
.e404__links li:first-child a, .e404__links a:hover { background: #fff; border-color: #fff; color: var(--night); }
.e404__links a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .e404 { padding: 16px 0 48px; } .e404__links a { padding: 10px 16px; } }

/* Таблицы остаются чисто белыми на бумажном фоне */
.tuf-table__grid, .olymp-benefits__table tbody { background: #fff; }

/* Шкала: смена содержимого — короткое затухание, пока ползунок едет */
.scale__view { transition: opacity .28s ease; }
.scale.is-swap .scale__view { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .scale__view { transition: none; } }

/* ---------- Сроки обучения: полоса заливается по годам, отметки вырастают, когда заливка до них доходит ---------- */
.tl.is-ready .tl__panel { --yr: .55s; --pd: 0s; }
.tl.is-ready:not(.is-done) .tl__fill {
  transition: transform calc((var(--to) - var(--from)) * var(--yr)) cubic-bezier(.45, 0, .55, 1) var(--pd);
}
.tl.is-ready:not(.is-done) .tl__mark {
  transition: transform .7s cubic-bezier(.3, 1.7, .5, 1) calc(var(--pd) + (var(--at) - var(--from)) * var(--yr) * .92);
}
.tl.is-ready:not(.is-seen) .tl__fill { transform: scaleX(0); }
.tl.is-ready:not(.is-seen) .tl__mark { transform: scaleY(0); }
@media (min-width: 901px) {
  .tl.is-ready .tl__panel:nth-child(3) { --pd: .5s; }
  .tl.is-ready .tl__panel:nth-child(4) { --pd: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  .tl.is-ready .tl__fill, .tl.is-ready .tl__mark { transform: none !important; }
}

/* кольцо вокруг отметок — в цвет бумаги */
.tl__mark { box-shadow: 0 0 0 4px var(--paper); }
@media (min-width: 901px) { .tl__mark { box-shadow: none; } }

/* ---------- Все карточки — тёмный индиго, как шапка ---------- */
.card, .psection--white .card, .home-sections .card { background: var(--indigo); color: #fff; }
.card h3, .card p, .card .card__link, .card .card__num { color: #fff; }
.card .tag { background: rgba(255, 255, 255, .14); color: #fff; }
a.card:hover, a.card.card--accent:hover { background: var(--night); }

/* ---------- Подвал: броуновское движение на фоне ---------- */
.brown { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.site-footer--brown .footer-container { position: relative; z-index: 1; }
.site-footer--brown::after { display: none; }

/* ---------- Физические эффекты на фоне тёмных разделов ---------- */
[data-fx] { position: relative; overflow: hidden; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
[data-fx] > :not(.fx):not(.hidden) { position: relative; z-index: 1; }

/* Без тёплого фона: мелкие подложки белые с тонкой рамкой */
@media (max-width: 900px) { .tl__step { border: 1px solid var(--lilac-200); } }

/* Подпись к эффекту: печатается в правом углу блока */
.fx-cap { display: block; margin-top: 22px; margin-bottom: 0; padding-left: 45%; text-align: right; font-size: var(--fs-small); line-height: 1.4; color: rgba(255, 255, 255, .78); }
.fx-cap__rest { visibility: hidden; }
.fx-cap.is-typing .fx-cap__rest::before { content: ''; display: inline-block; width: 7px; height: 1em; margin: 0 -7px -2px 0; background: #fff; visibility: visible; }
.fx-cap + .home-comm__strip { margin-top: 22px; }
@media (max-width: 860px) { .fx-cap { padding-left: 20px; text-align: left; } }

/* Первый экран с эффектом-полосой: место под волну над подписью, без «таблеток» */
.page-hero[data-fx-strip] .pills { display: none; }
.page-hero[data-fx-strip] .fx-cap { margin-top: 150px; padding-bottom: 22px; }
@media (max-width: 860px) { .page-hero[data-fx-strip] .fx-cap { margin-top: 112px; } }

/* Шапка на узких экранах: обёртка была 90% + поля и вылезала на 1px */
@media (max-width: 980px) { .header .wrapper { width: auto; } }

/* Главная, «Цифры и факты»: ниже 1240px слайдер занимает оставшуюся ширину и не обрезается */
@media (max-width: 1240px) {
  .facts-wrapper { max-width: 1100px; margin: 0 auto; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); }
  .facts-right, .facts-swiper { width: auto; min-width: 0; }
  .fact-item { max-width: none; margin-left: 0; }
  .facts-title { width: min-content; }
}
@media (max-width: 700px) {
  .facts-section { padding-left: 20px; padding-right: 20px; }
  .facts-wrapper { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .facts-left { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
  .facts-title { width: min-content; margin: 0; }
  .facts-nav { flex: none; }
}

/* Поступление, проходные баллы: на телефоне таблица помещается целиком, без прокрутки вбок */
@media (max-width: 700px) {
  .tuf-table__grid { min-width: 0; }
  .tuf-table__grid th, .tuf-table__grid td { padding: 10px 2px; border-width: 1px; text-align: center; }
  .tuf-table__grid .tuf-table__label { padding: 10px 6px; text-align: left; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
  .tuf-table__col-label { width: 36%; }
  .tuf-table__col-year { width: 10.66%; }
  .tuf-table__year, td.tuf-table__num, .tuf-table__label--big { font-size: 13px; }
}

/* Таблица олимпиад на телефоне: помещается целиком, без прокрутки вбок */
@media (max-width: 700px) {
  .olymp-benefits__table { min-width: 0; }
  .olymp-benefits__col-track { width: 23%; }
  .olymp-benefits__col-profile { width: 22%; }
  .olymp-benefits__col-level { width: 14%; }
  .olymp-benefits__col-status { width: 20%; }
  .olymp-benefits__col-right { width: 21%; }
  .olymp-benefits__table thead th { padding: 0 0 6px; font-size: 8px; font-weight: 400; letter-spacing: 0; overflow-wrap: normal; hyphens: none; }
  .olymp-benefits__table tbody th, .olymp-benefits__table tbody td { padding: 8px 0; border-width: 1px; font-size: min(2.7vw, 12px); font-weight: 400; line-height: 1.2; overflow-wrap: normal; hyphens: none; }
  .olymp-benefits__table tbody .olymp-benefits__track { padding: 8px 4px !important; font-size: min(2.7vw, 12px) !important; line-height: 1.2 !important; overflow-wrap: anywhere; hyphens: auto; }
}
