/* ============================================================
   БИНТ / BIST — официальный сайт
   Стиль: российская университетская типографика (HSE / МГУ)
   Белый фон · почти чёрный текст · тонкие линии · без карточек
   ============================================================ */

/* ---------- 1. Переменные ---------- */
:root {
  --c-ink:        #1a1a1a;   /* основной текст */
  --c-ink-soft:   #404040;   /* вторичный текст */
  --c-muted:      #6f6f6f;   /* подписи, даты */
  --c-blue:       #1e56a0;   /* ссылки, акцент */
  --c-blue-dark:  #163f78;
  --c-navy:       #0b1f3f;   /* utility-полоса, подвал, активный пункт */
  --c-line:       #e2e2e2;   /* тонкие разделители */
  --c-line-dark:  #c9c9c9;
  --c-bg-soft:    #f6f6f6;   /* подложки таблиц, шапки боксов */
  --c-notice-bg:  #fff7e6;   /* объявления */
  --c-notice-line:#ead9ae;

  --f-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --f-sans:  "Segoe UI", "PT Sans", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --w-container: 1180px;
}

/* ---------- 2. Сброс и база ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  background: #fff;
}

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

a { color: var(--c-blue); }
a:hover { color: var(--c-blue-dark); }

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

h1, h2, h3, h4 { font-weight: 700; color: var(--c-ink); }

.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 20px;
}

.text-muted { color: var(--c-muted); }
.lead { font-size: 16.5px; color: var(--c-ink-soft); }

:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* ---------- 3. Верхняя служебная полоса ---------- */
.topbar {
  background: var(--c-navy);
  color: rgba(255, 255, 255, .75);
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 20px;
}

.top-links { display: flex; flex-wrap: wrap; list-style: none; padding: 0; }
.top-links li { margin: 0; }
.top-links a {
  display: inline-block;
  padding: 7px 0;
  margin-right: 22px;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}
.top-links a:hover { color: #fff; text-decoration: underline; }

.top-tools { display: flex; align-items: center; gap: 18px; }

/* Поиск в верхней полосе */
.search { position: relative; }
.search input[type="search"] {
  width: 170px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12.5px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
}
.search input[type="search"]::placeholder { color: rgba(255, 255, 255, .55); }
.search input[type="search"]:focus { border-color: #fff; outline: none; }

.search-drop {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--c-line-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
  z-index: 300;
}
.search-drop a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--c-ink);
  text-decoration: none;
  border-top: 1px solid #eee;
}
.search-drop a:first-child { border-top: 0; }
.search-drop a:hover { background: var(--c-bg-soft); }
.search-drop .search-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-muted);
}

/* Переключатель языка */
.lang-switch { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lang-switch button {
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { color: #fff; font-weight: 700; }
.lang-sep { color: rgba(255, 255, 255, .3); }

/* ---------- 4. Шапка: герб, название, контакты ---------- */
.masthead {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }
.brand-logo { width: 62px; height: 62px; flex: none; }

.brand-text { display: block; }
.brand-name {
  display: block;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--c-muted);
}

.masthead-contacts { text-align: right; font-size: 13px; color: var(--c-ink-soft); }
.mc-line + .mc-line { margin-top: 5px; }
.mc-address { max-width: 360px; font-size: 12.5px; color: var(--c-muted); }
.mc-label { color: var(--c-muted); }
.mc-phone a {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.mc-phone a:hover { color: var(--c-blue); }
.mc-email a { color: var(--c-blue); text-decoration: none; }
.mc-email a:hover { text-decoration: underline; }

/* ---------- 5. Главное меню ---------- */
.mainnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 2px solid var(--c-navy);
}
.mainnav .container { position: relative; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  padding: 12px 15px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-ink);
  text-decoration: none;
}
.nav-list a:hover { background: var(--c-bg-soft); }
.nav-list a.active { background: var(--c-navy); color: #fff; }

/* Гамбургер (мобильный) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 6px 0;
  background: none;
  border: 1px solid var(--c-line-dark);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--c-ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Шапка страницы: крошки + заголовок ---------- */
.page-head {
  border-bottom: 1px solid var(--c-line);
  padding: 10px 0 20px;
  margin-bottom: 30px;
}

.crumbs {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.crumbs a { color: var(--c-blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs-sep { margin: 0 6px; color: #b5b5b5; }

.page-title {
  font-family: var(--f-serif);
  font-size: 30px;
  line-height: 1.25;
  margin: 0;
}
.page-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: var(--c-muted);
}

/* ---------- 7. Сетка страницы: контент + боковая колонка ---------- */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding-bottom: 56px;
}

.page-main { min-width: 0; }
.page-side { min-width: 0; }

/* ---------- 8. Боковые блоки ---------- */
.side-box {
  border: 1px solid var(--c-line);
  margin-bottom: 22px;
  background: #fff;
}
.side-box-title {
  padding: 9px 15px;
  background: var(--c-navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.side-links { list-style: none; padding: 6px 0; margin: 0; }
.side-links li { margin: 0; }
.side-links a {
  display: block;
  padding: 7px 15px;
  font-size: 13.5px;
  color: var(--c-ink);
  text-decoration: none;
}
.side-links a:hover { background: var(--c-bg-soft); color: var(--c-blue); }

.side-contacts { list-style: none; padding: 10px 15px 12px; margin: 0; font-size: 13.5px; }
.side-contacts li { margin: 0 0 6px; }
.side-contacts a { color: var(--c-blue); text-decoration: none; }
.side-contacts a:hover { text-decoration: underline; }
.side-contacts .side-strong { font-weight: 700; color: var(--c-ink); }

/* Объявления в боковой колонке */
.side-ann-list { list-style: none; padding: 0; margin: 0; }
.side-ann { border-bottom: 1px solid #eee; padding: 9px 15px; }
.side-ann:last-child { border-bottom: 0; }
.side-ann-date {
  display: block;
  font-size: 11.5px;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.side-ann a { font-size: 13.5px; color: var(--c-ink); text-decoration: none; }
.side-ann a:hover { color: var(--c-blue); text-decoration: underline; }

/* ---------- 9. Заголовки разделов ---------- */
.block-title {
  font-family: var(--f-serif);
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
  padding-bottom: 10px;
  position: relative;
}
.block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  background: var(--c-navy);
}

.section { padding: 34px 0; }
.section-alt { background: var(--c-bg-soft); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 18px;
}
.section-head .block-title { border-bottom: 0; padding-bottom: 8px; margin-bottom: 0; }
.section-head .block-title::after { bottom: 0; }

.more-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-blue);
  text-decoration: none;
  white-space: nowrap;
}
.more-link:hover { text-decoration: underline; }
.more-link::after { content: " →"; }

/* ---------- 10. Объявления (полоса) ---------- */
.notice-strip {
  background: var(--c-notice-bg);
  border-bottom: 1px solid var(--c-notice-line);
}
.notice-inner {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
}
.notice-label {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a6d1d;
}
.notice-text { font-size: 14px; }
.notice-text a { color: var(--c-ink); text-decoration: none; }
.notice-text a:hover { color: var(--c-blue); text-decoration: underline; }

/* ---------- 11. Новости (список) ---------- */
.news-list { border-bottom: 1px solid var(--c-line); }
.news-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line);
}
.news-row:first-child { border-top: 0; }
.news-date { font-size: 12.5px; color: var(--c-muted); padding-top: 2px; }
.news-body { min-width: 0; }
.news-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}
.news-title a { color: var(--c-ink); text-decoration: none; }
.news-title a:hover { color: var(--c-blue); }
.news-excerpt { margin-top: 4px; font-size: 14px; color: var(--c-ink-soft); }

.news-thumb-row {
  display: grid;
  grid-template-columns: 96px 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.news-thumb { width: 150px; border: 1px solid var(--c-line); padding: 4px; background: #fff; }
.news-thumb img { width: 100%; height: 100px; object-fit: cover; }

.news-list-foot { padding: 12px 0 4px; text-align: right; }

/* ---------- 12. Блок «Об институте» (главная) ---------- */
.about-band {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 36px 0 30px;
}
.about-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 30px;
}
.about-photo {
  border: 1px solid var(--c-line-dark);
  padding: 8px;
  background: #fff;
}
.about-photo img { width: 100%; height: 300px; object-fit: cover; }
.about-photo figcaption {
  padding: 7px 3px 2px;
  font-size: 12px;
  color: var(--c-muted);
}

/* Ключевые цифры */
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.fact { padding: 14px 20px 16px; }
.fact + .fact { border-left: 1px solid var(--c-line); }
.fact-num {
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.1;
}
.fact-label { display: block; margin-top: 4px; font-size: 12.5px; color: var(--c-muted); }

/* ---------- 13. Таблицы ---------- */
.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th,
.data-table td {
  border: 1px solid #d8d8d8;
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--c-bg-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.data-table td a { color: var(--c-blue); text-decoration: none; }
.data-table td a:hover { text-decoration: underline; }

/* ---------- 14. Определения (реквизиты) ---------- */
.def-list { border-top: 1px solid var(--c-line); }
.def-list > div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.def-list dt { font-size: 13.5px; color: var(--c-muted); }
.def-list dd { margin: 0; }

/* ---------- 14а. Ценности (нумерованный список) ---------- */
.value-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--c-line); counter-reset: val; }
.value-list li {
  position: relative;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--c-line);
}
.value-list li::before {
  counter-increment: val;
  content: counter(val, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 17px;
  width: 36px;
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--c-navy);
  font-weight: 700;
}
.value-list strong { display: block; margin-bottom: 4px; font-size: 15px; }
.value-list p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--c-ink-soft); }

/* ---------- 15. История (таблица лет) ---------- */
.history-table { border-bottom: 1px solid var(--c-line); }
.history-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--c-line);
}
.history-row:first-child { border-top: 0; }
.history-year {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
}
.history-row h3 { font-size: 15.5px; margin: 0 0 3px; }
.history-row p { font-size: 14px; color: var(--c-ink-soft); margin: 0; }

.phase-row {
  grid-template-columns: minmax(0, 1fr);
  background: var(--c-bg-soft);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-navy);
}

/* ---------- 16. Состав преподавателей ---------- */
.stat-bars { border-bottom: 1px solid var(--c-line); }
.stat-bar { padding: 14px 0; border-top: 1px solid var(--c-line); }
.stat-bar:first-child { border-top: 0; }
.stat-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 14.5px;
}
.stat-bar-name { font-weight: 600; }
.stat-bar-value { font-family: var(--f-serif); font-size: 18px; font-weight: 700; color: var(--c-navy); white-space: nowrap; }
.stat-bar-note { font-size: 12.5px; color: var(--c-muted); margin-top: 4px; }
.bar {
  height: 10px;
  background: #ececec;
  border: 1px solid var(--c-line-dark);
}
.bar-fill { display: block; height: 100%; background: var(--c-blue); }

/* Кафедры */
.dept {
  border-top: 2px solid var(--c-navy);
  padding: 16px 0 6px;
  margin-bottom: 22px;
}
.dept h2 { font-family: var(--f-serif); font-size: 19px; margin: 0 0 6px; }
.dept-spec { font-size: 14px; color: var(--c-ink-soft); margin: 0 0 12px; }
.head-line { font-size: 14px; border-top: 1px solid var(--c-line); padding-top: 10px; }
.head-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.head-name { font-weight: 600; }

/* ---------- 17. Программы и лаборатории ---------- */
.prog { border-top: 2px solid var(--c-navy); padding: 18px 0 8px; margin-bottom: 24px; }
.prog h2 { font-family: var(--f-serif); font-size: 20px; margin: 0 0 4px; }
.prog-code {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.prog-desc { font-size: 14.5px; color: var(--c-ink-soft); }
.prog h3 { font-size: 15px; margin: 16px 0 8px; }

.cols-2 { columns: 2; column-gap: 36px; }
.cols-2 li { break-inside: avoid; font-size: 14px; }

/* ---------- 18. Поступление: шаги ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  margin: 0 0 22px;
  padding-left: 56px;
  counter-increment: step;
  font-size: 14.5px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-navy);
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  background: #fff;
}
.steps strong { display: block; margin-bottom: 2px; }
.steps p { color: var(--c-ink-soft); margin: 0; }

.docs-list { list-style: none; padding: 0; margin: 0; border-bottom: 1px solid var(--c-line); }
.docs-list li {
  margin: 0;
  padding: 9px 0 9px 22px;
  position: relative;
  border-top: 1px solid var(--c-line);
  font-size: 14.5px;
}
.docs-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c-blue);
}

/* ---------- 19. Галерея ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 8px 0;
  margin-bottom: 22px;
}
.filter-btn {
  background: none;
  border: 0;
  padding: 4px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--c-ink);
  cursor: pointer;
}
.filter-btn:hover { color: var(--c-blue); }
.filter-btn.active {
  font-weight: 700;
  color: var(--c-navy);
  box-shadow: inset 0 -2px 0 var(--c-navy);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--c-line-dark);
  padding: 8px;
  background: #fff;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 8px 3px 2px; font-size: 13px; color: var(--c-ink-soft); }
.gallery-cat {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.gallery-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--c-line-dark);
  padding: 36px;
  text-align: center;
  font-size: 14px;
  color: var(--c-muted);
}

/* ---------- 20. Формы ---------- */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 14.5px;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line-dark);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--c-blue);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }

.btn {
  display: inline-block;
  padding: 11px 28px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--c-navy);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--c-blue-dark); color: #fff; }

.map-note {
  border: 1px solid var(--c-line-dark);
  background: var(--c-bg-soft);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--c-ink-soft);
}
.map-note a { color: var(--c-blue); }

/* ---------- 21. Подвал ---------- */
.site-footer {
  background: var(--c-navy);
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding: 40px 0 34px;
}
.footer-col h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-about-text { font-size: 13px; line-height: 1.7; }
.footer-motto { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: 14px; color: rgba(255,255,255,.85); }
.footer-links, .footer-contacts { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contacts li { margin: 0 0 7px; }
.footer-links a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: 13.5px;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contacts a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 14px 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-bottom a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- 22. Адаптивность ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .page-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
  .masthead-contacts { display: none; }
  .about-band-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { columns: 1; }
}

@media (max-width: 860px) {
  .top-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 2px solid var(--c-navy);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  }
  .mainnav.open .nav-list { display: block; }
  .nav-list a { border-top: 1px solid #eee; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .def-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .history-row, .news-row, .news-thumb-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .news-thumb, .news-thumb img { width: 100%; height: auto; }
  .brand-name { font-size: 17px; }
  .page-title { font-size: 25px; }
}

@media (max-width: 620px) {
  .page-side { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .search input[type="search"] { width: 118px; }
  .notice-inner { flex-direction: column; gap: 2px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .facts-row { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--c-line); }
  .steps li { padding-left: 0; padding-top: 44px; }
}
