/* Базовые стили страниц, целиком собранных на теме сайта (css/site-theme.css):
 * сброс, тёмный фон, типографика. Заменяет базовую часть устаревшего style.css.
 * НЕ подключать на страницах с собственной вёрсткой (М1 Про) — глобальный сброс
 * собьёт её отступы. Порядок: site-base.css → site-theme.css → стили страницы. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 92px) + 16px); }

body {
  min-height: 100vh;
  background: var(--site-page, #101113);
  color: var(--site-text, #f5f6f7);
  font-family: var(--site-font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--site-accent, #f5c655); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--site-accent, #f5c655);
  color: var(--site-on-accent, #17191c);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 600px) {
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
