/* ==========================================================================
   ВСЦМ Мониторинг ВО · база: шрифты, сброс, каркас.
   Mobile-first: базовые стили — телефон, ширина слояется через min-width.
   ========================================================================== */

/* --- Hauora Sans (OFL 1.1, WCYS & Co.) — полный файл, кириллица включена --- */
@font-face {
  font-family: "Hauora Sans";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Hauora-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hauora Sans";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Hauora-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hauora Sans";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Hauora-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hauora Sans";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Hauora-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Unbounded (OFL 1.1, Google Fonts) — вариативный, подсети --- */
@font-face {
  font-family: "Unbounded";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Unbounded-var-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Unbounded-var-cyrillic-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Unbounded";  /* ds-allow-hardcode: объявление @font-face */
  src: url("../fonts/Unbounded-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Сброс --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: var(--space-05);
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: var(--focus-outline-w) solid var(--color-accent);
  outline-offset: var(--space-05);
}

::selection {
  background: var(--color-accent-soft);
}

/* --- Каркас страницы --- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.page-main {
  flex: 1;
  padding-block: var(--space-8);
}

.page-main > .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Заголовок отчета */
.report-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.report-head__title {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.report-head__sub {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Заголовок с пояснением в одну колонку */
.report-head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.report-head__sub--base {
  font-size: var(--text-base);
  line-height: var(--leading-base);
}

/* Заголовок раздела */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--color-text);
}

.section-head__sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Сноска под блоком */
.footnote {
  font-size: var(--text-xs);
  line-height: var(--leading-xs);
  color: var(--color-text-secondary);
}

/* Визуально скрытый текст для скринридеров */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Планшет и десктоп --- */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-6);
  }

  .report-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .report-head__title {
    font-size: var(--display-lg);
    line-height: 1.375;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .section-head__title {
    font-size: var(--display-md);
    line-height: 1.3333;
  }
}

@media (min-width: 1360px) {
  .container {
    padding-inline: 0;
  }
}