/* =============================================================================
   Подвал и правовой блок публичных SSR — подмножество footer.css.
   Замер 14.08.2026: footer.css весил 11,9 КБ и блокировал показ КАЖДОЙ публичной
   страницы, а живыми на SSR были 30 правил из 46 — 4,8 КБ, ровно то, что ниже.
   Ряд юрдокументов `.site-footer__docs` — живой на обеих поверхностях (28.08.2026).
   Мёртвые шестнадцать — гостевой ряд справочников `.site-footer__dirs*`,
   `--solo`-вариант полосы и `.site-footer__copy span`: их печатает только SPA.

   ПОЧЕМУ ОТДЕЛЬНЫЙ ЛИСТ, А НЕ ПЕРЕЕЗД В seo-public-apple.css, как у watchlist.css.
   Этот лист подключается РОВНО ТАМ, где стоял footer.css, поэтому каскад не двигается
   вовсе. Попытка положить те же правила в конец головы стоила двух молчаливых
   переворотов, и оба нашлись только замером:
     • `.site-footer__link` против `.site-footer__link-btn` из cookie-consent.css —
       у кнопки «Настройки cookie» оба класса сразу, специфичность равна, и решал
       порядок: вес 500 и полоска под текстом вернулись бы к кнопке;
     • `html:not(.guest-landing-boot):not(.guest-landing-active) .page-wrapper`
       против `body.seo-public-body.vd-dist-page > .page-wrapper` из
       vendor-directory.css — обе 0-3-1, и на страницах поставщика, бренда, лендинга
       и пары обёртка получила бы `flex-grow: 0` вместо `1` на всех ширинах ≤920px.
   Второй не виден на /privacy: там у body нет класса `vd-dist-page`. Именно поэтому
   проверка идёт по всем типам страниц, а не по одной.

   ПОЧЕМУ НЕ ОБРЕЗАН САМ footer.css: его подключают index.html и admin.html, где живо
   и всё остальное. Правила здесь — КОПИЯ, и расхождение с оригиналом ловит
   test_seo_public_blocking_css.py (сверка по каждому правилу, а не по факту наличия).

   `@keyframes footer-catalog-spin` переехал вместе с правилом, которое его зовёт:
   селекторная проба видит только правила со селектором и про @-правила не знает
   вовсе — без этих трёх строк спиннер счётчика в подвале замер бы молча.
   ============================================================================= */

.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: auto;
  flex-shrink: 0;
  z-index: 10;
  /* На всю ширину окна: подвал — прямой потомок body (как на главной), не внутри .page-wrapper с overflow-x: clip */
  width: 100%;
  box-sizing: border-box;
}
.site-footer__bar {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  box-sizing: border-box;
}

@media (min-width: 921px) {
  .site-footer__bar {
      transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  html[data-layout-width="wide"] .site-footer__bar {
      max-width: 100%;
  }
}

@media (min-width: 921px) and (prefers-reduced-motion: reduce) {
  .site-footer__bar {
      transition: none;
  }
}
.site-footer__count {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 0;
}
.site-footer__count svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-secondary);
  flex-shrink: 0;
}
.site-footer__count--loading svg {
  animation: footer-catalog-spin 2s linear infinite;
}

@keyframes footer-catalog-spin {
  to { transform: rotate(360deg); }
}

.site-footer__report-btn {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  border: none;
  padding: 12px 12px;
  cursor: pointer;
  background: none;
  transition: color 0.2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.site-footer__report-btn:hover {
  color: var(--text);
}
.site-footer__report-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}
.site-footer__mid {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 0;
  font-size: 11px;
  color: var(--text-tertiary);
}
.site-footer__copy {
  font-size: inherit;
  color: inherit;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Ряд юрдокументов — отдельная строка ПОД .site-footer__bar, видимая ВСЕМ.
   Почему не внутрь .site-footer__legal: та группа живёт в .site-footer__mid с
   flex-wrap: nowrap, где копирайт обрезается многоточием, — там уже пять элементов, и
   шестой съел бы копирайт на ноутбучной ширине (тот же разбор, что у .site-footer__dirs
   выше). Почему отдельно от .site-footer__dirs: справочники прячутся у залогиненных, а
   правовые документы обязаны быть доступны всем и всегда — их прячут только вместе с
   самим подвалом.
   Зачем вообще: до 28.08.2026 подвал вёл на ДВА документа из пяти. Соглашение, правила
   платных услуг и согласие на обработку данных публичных ссылок не имели вовсе, и
   реквизиты ИП (они внутри этих документов) оказывались в двух кликах вместо одного —
   при том что 149-ФЗ требует сведения о владельце сайта в свободном доступе. */
.site-footer__docs {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 8px;
  row-gap: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-tertiary);
}

@media (min-width: 921px) {
  html[data-layout-width="wide"] .site-footer__docs {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .site-footer__docs {
    padding-bottom: 10px;
    column-gap: 6px;
  }
}

.site-footer__link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-footer__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.seo-legal-disclaimer.seo-legal-disclaimer--in-flow {
  width: 100%;
  max-width: none;
  margin: 16px 0;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .seo-legal-disclaimer.seo-legal-disclaimer--in-flow {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.seo-public-body .site-footer.site-footer--after-legal {
  margin-top: 0;
}
.seo-legal-disclaimer--in-flow .seo-legal-disclaimer__inner {
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: left;
}
.seo-legal-disclaimer--in-flow .seo-legal-disclaimer__inner p {
  margin: 0;
}

@media (max-width: 520px) {
  .seo-legal-disclaimer.seo-legal-disclaimer--in-flow {
      margin: 16px 0;
      padding: 14px;
      border-radius: 12px;
  }
}

@media (max-width: 920px) {
  html:not(.guest-landing-boot):not(.guest-landing-active) .page-wrapper {
      flex: 0 1 auto;
  }
  html:not(.guest-landing-boot):not(.guest-landing-active) .page-main {
      flex: 0 1 auto;
      padding-bottom: 8px;
  }
  html:not(.guest-landing-boot):not(.guest-landing-active) .site-footer {
      margin-top: 0;
  }
  .site-footer__bar {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-rows: auto auto;
      row-gap: 6px;
      column-gap: 12px;
      min-height: auto;
      padding-top: 10px;
      padding-bottom: 12px;
  }
  .site-footer__count {
      grid-column: 1;
      grid-row: 1;
  }
  .site-footer__report-btn {
      grid-column: 2;
      grid-row: 1;
      padding: 6px 0 6px 8px;
  }
  .site-footer__mid {
      grid-column: 1 / -1;
      grid-row: 2;
      flex-wrap: wrap;
      row-gap: 4px;
      padding: 4px 0 8px;
  }
  .site-footer__copy {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__count--loading svg {
      animation: none;
  }
}

