/* === Демо: шрифты для заголовков (временный файл) === */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bitter-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bitter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/prata-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/prata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/forum-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Forum';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/forum-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/alegreya-cyr.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/alegreya-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === Пресеты === */
html[data-head='manrope'] {
  --demo-head: 'Manrope', system-ui, -apple-system, sans-serif;
  --demo-head-weight: 800;
  --demo-head-track: -0.02em;
}

html[data-head='lora'] {
  --demo-head: 'Lora', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: 0;
}

html[data-head='playfair'] {
  --demo-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: 0;
}

html[data-head='cormorant'] {
  --demo-head: 'Cormorant', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: 0;
}

html[data-head='literata'] {
  --demo-head: 'Literata', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: -0.01em;
}

html[data-head='bitter'] {
  --demo-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 500;
  --demo-head-track: -0.01em;
}

html[data-head='prata'] {
  --demo-head: 'Prata', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 400;
  --demo-head-track: 0;
}

html[data-head='forum'] {
  --demo-head: 'Forum', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 400;
  --demo-head-track: 0.01em;
}

html[data-head='plex'] {
  --demo-head: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: -0.01em;
}

html[data-head='alegreya'] {
  --demo-head: 'Alegreya', Georgia, 'Times New Roman', serif;
  --demo-head-weight: 600;
  --demo-head-track: 0;
}

/* === Применение к заголовкам демо === */
.fontdemo .hero__title,
.fontdemo .section__title,
.fontdemo .page__title,
.fontdemo .program__title,
.fontdemo .benefits__title,
.fontdemo .noinfo__item-title,
.fontdemo .price__value,
.fontdemo .about__fact-value,
.fontdemo .faq__question-text,
.fontdemo .popup__title {
  font-family: var(--demo-head);
  font-weight: var(--demo-head-weight);
  letter-spacing: var(--demo-head-track);
}

/* === Панель переключения === */
.fontbar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.fontbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
}

.fontbar__label {
  margin-right: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fontbar__button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.fontbar__button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fontbar__button.is_active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

/* === Демо-блоки === */
.fontdemo__hero {
  padding: 56px 40px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.fontdemo__hero .hero__title {
  max-width: 820px;
}

.fontdemo__hero .hero__subtitle {
  max-width: 620px;
}

.fontdemo__hero .hero__badge {
  margin-bottom: 18px;
}

.fontdemo__hero .hero__actions {
  margin-top: 28px;
}

.fontdemo__text {
  max-width: 760px;
}

.fontdemo__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.fontdemo__row {
  display: flex;
  align-items: baseline;
  column-gap: 12px;
}

.fontdemo__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
