/* Общий подвал и высота шапки — лендинг, хаб блога, рубрика, статьи (2026-10-12, владелец: «футер скачет, всё должно быть единым»).
   Источник — подвал лендинга (.pen PTixO на мобилке). Рабочая область — токены --container-max / --container-pad, как у лендинга.
   Подключать после основного <style> страницы. */

/* Шапка: одна высота на всех страницах (51 с линией снизу), даже если внутри плашка блога */
.site-nav__inner { min-height: 50px; }
.site-nav--blog .site-nav__inner { height: 50px; padding-block: 0; }

footer.site-footer { border-top: 1px solid var(--color-line); padding-block: var(--space-6); box-shadow: none; }
footer.site-footer .wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); font-size: var(--fs-small); line-height: 1.6; color: var(--color-ink-faint); }
footer.site-footer .wrap em { line-height: 0; font-size: calc(var(--wordmark-tld-scale) * 1em); font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--color-green-deep); }
footer.site-footer .footer__brand { color: inherit; text-decoration: none; }
footer.site-footer .footer__seo { font-size: var(--fs-micro); }
footer.site-footer .footer__social { display: flex; align-items: center; gap: var(--space-3); }
footer.site-footer .social-badge { width: 19px; height: 19px; border-radius: var(--radius-sm); background: var(--color-ink-faint); color: var(--color-ground); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; }
footer.site-footer .social-badge svg { width: 11px; height: 11px; flex-shrink: 0; }
@media (max-width: 860px) {
  footer.site-footer { padding-block: 32px; }
  footer.site-footer .wrap { padding-inline: 20px; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 18px; }
  footer.site-footer .wrap > span:first-child { line-height: 21px; }
  footer.site-footer .footer__seo { font-size: 13px; line-height: 16px; white-space: nowrap; }
  footer.site-footer .footer__social { gap: 12px; }
  footer.site-footer .social-badge { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
  footer.site-footer .social-badge svg { width: 14px; height: 14px; }
}
@media (max-width: 389px) { footer.site-footer .footer__seo { white-space: normal; } }

/* Ссылки на политики в подвале (2026-10-24) */
footer.site-footer .footer__legal { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); font-size: var(--fs-micro); }
footer.site-footer .footer__legal a { color: inherit; text-decoration: none; }
footer.site-footer .footer__legal a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { footer.site-footer .footer__legal { font-size: 13px; line-height: 16px; gap: 4px 16px; } }

/* Баннер согласия на cookie (assets/consent.js, 2026-10-24, по образцу dom.ru 2026-10-25): капсула по центру внизу в одну строку —
   печенька, короткий текст, «Хорошо» (зелёный pill, единственная primary) и «Подробнее» (светлый pill, ведёт на /cookies/, там отказ).
   Пока не нажали «Хорошо», Метрика не грузится. На ≤860px — карточка: текст сверху, две кнопки поровну снизу. */
.consent {
  position: fixed; z-index: 56; left: 50%; bottom: var(--space-5);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px); box-sizing: border-box;
  padding: 10px 10px 10px 20px; border-radius: var(--radius-pill); border: 1px solid var(--color-line);
  background: var(--color-ground); color: var(--color-ink); box-shadow: 0 16px 40px rgba(19, 18, 16, 0.12);
  font-family: var(--font-display);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.consent.is-shown { opacity: 1; transform: translate(-50%, 0); }
/* 3D-печенька в стиле иконок лендинга (shape-cookie.webp); тень по силуэту — Shape Drop-Shadow */
.consent__icon { flex: 0 0 28px; width: 28px; height: 28px; transform: rotate(-8deg); filter: drop-shadow(0 4px 8px rgba(19, 18, 16, 0.16)); }
.consent__text { margin: 0; font-size: 16px; line-height: 22px; color: var(--color-ink); }
.consent__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.consent__accept, .consent__more {
  border: none; border-radius: var(--radius-pill); padding: 11px 22px; font: inherit; font-size: 16px; font-weight: var(--fw-semibold); line-height: 20px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard);
}
.consent__accept { background: var(--color-green); color: var(--color-on-green); }
.consent__accept:hover { background: var(--color-green-deep); }
.consent__more { background: var(--color-surface); color: var(--color-ink); }
.consent__more:hover { background: var(--color-line); }
@media (max-width: 860px) {
  .consent {
    left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; border-radius: var(--radius-lg);
    transform: translateY(12px);
  }
  .consent.is-shown { transform: none; }
  .consent--above-bar { bottom: calc(68px + 12px + env(safe-area-inset-bottom)); }
  .consent__actions { grid-column: 1 / -1; }
  .consent__accept, .consent__more { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
/* Сведения о владельце сайта (149-ФЗ, ст. 10) — тихая строка на всю ширину */
footer.site-footer .footer__owner { flex-basis: 100%; font-size: var(--fs-micro); opacity: .75; }
@media (max-width: 860px) { footer.site-footer .footer__owner { font-size: 12px; line-height: 16px; margin-top: 4px; } }
footer.site-footer .footer__owner a { color: inherit; text-decoration: none; }
footer.site-footer .footer__owner a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
