/* Витрина методических материалов — стили страницы (базовый стиль: ../assets/site.css) */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.count {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Список материалов ---------- */

.mat-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.mat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.mat__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.19px;
}
.mat__desc {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.224px;
  color: var(--ink-2);
}
.mat__side {
  flex: 0 0 auto;
  padding-top: 2px;
  white-space: nowrap;
}
.mat__link { font-size: 15px; letter-spacing: -0.224px; }

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  vertical-align: 1px;
}

/* ---------- Галерея карточек и схем ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.gcard {
  display: block;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gcard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-alt);
  display: block;
}
.gcard__body { padding: 16px 18px 18px; }
.gcard h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.19px;
}
.gcard p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.12px;
  color: var(--ink-3);
}

/* ---------- Подгруппа внутри раздела ---------- */

.subhead {
  margin: 34px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .mat { flex-direction: column; gap: 12px; }
  .gallery { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gcard { transition: none; }
  .gcard:hover { transform: none; }
}

/* ---------- Страницы разделов ---------- */

.hero--page { padding: 56px 0 0; }

.crumb {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--link);
}

.section--tight { padding-top: 56px; }

/* Навигация вниз: другие разделы */
.nextnav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; }
.nextnav a { font-size: 15px; letter-spacing: -0.224px; }
.nextnav .is-current { color: var(--ink-3); }

/* В шапке на узких экранах прячем пункт «Обзор» — на витрину ведёт логотип */
@media (max-width: 860px) {
  .nav__hide-sm { display: none; }
  .nav__links { gap: 14px; }
  .nav__links a { font-size: 11px; }
}

/* Текущий раздел в шапке */
.nav__links a.is-active { color: #fff; font-weight: 600; }

/* Подвал прижат к низу, даже если страница короткая */
body { display: flex; flex-direction: column; min-height: 100vh; }
.footer { margin-top: auto; }


