/* Local Fonts - Montserrat */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2'),
       url('../fonts/Montserrat-Regular.woff') format('woff'),
       url('../fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2'),
       url('../fonts/Montserrat-Bold.woff') format('woff'),
       url('../fonts/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Montserrat-Italic.woff2') format('woff2'),
       url('../fonts/Montserrat-Italic.woff') format('woff'),
       url('../fonts/Montserrat-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Montserrat-BoldItalic.woff2') format('woff2'),
       url('../fonts/Montserrat-BoldItalic.woff') format('woff'),
       url('../fonts/Montserrat-BoldItalic.ttf') format('truetype');
}

/* Local Fonts - Open Sans */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/OpenSans-Light.woff2') format('woff2'),
       url('../fonts/OpenSans-Light.woff') format('woff'),
       url('../fonts/OpenSans-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
       url('../fonts/OpenSans-Regular.woff') format('woff'),
       url('../fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
       url('../fonts/OpenSans-SemiBold.woff') format('woff'),
       url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2'),
       url('../fonts/OpenSans-Bold.woff') format('woff'),
       url('../fonts/OpenSans-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenSans-Italic.woff2') format('woff2'),
       url('../fonts/OpenSans-Italic.woff') format('woff'),
       url('../fonts/OpenSans-Italic.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/OpenSans-BoldItalic.woff2') format('woff2'),
       url('../fonts/OpenSans-BoldItalic.woff') format('woff'),
       url('../fonts/OpenSans-BoldItalic.ttf') format('truetype');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/OpenSans-SemiBoldItalic.woff2') format('woff2'),
       url('../fonts/OpenSans-SemiBoldItalic.woff') format('woff'),
       url('../fonts/OpenSans-SemiBoldItalic.ttf') format('truetype');
}

/* Alias for Roboto to use Open Sans (for compatibility) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/OpenSans-Light.woff2') format('woff2'),
       url('../fonts/OpenSans-Light.woff') format('woff'),
       url('../fonts/OpenSans-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
       url('../fonts/OpenSans-Regular.woff') format('woff'),
       url('../fonts/OpenSans-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
       url('../fonts/OpenSans-SemiBold.woff') format('woff'),
       url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2'),
       url('../fonts/OpenSans-SemiBold.woff') format('woff'),
       url('../fonts/OpenSans-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/OpenSans-Bold.woff2') format('woff2'),
       url('../fonts/OpenSans-Bold.woff') format('woff'),
       url('../fonts/OpenSans-Bold.ttf') format('truetype');
}

/* Typography Rules - Определение шрифтов для элементов */

/* Заголовки - Montserrat Bold */
h1, h2, h3, h4, h5, h6,
.t-title, .t-title_xs, .t-title_xxs, .t-title_sm, .t-title_md, .t-title_lg, .t-title_xl,
.t-text-impact, .t-text-impact_xs, .t-text-impact_sm, .t-text-impact_md, .t-text-impact_lg,
.t-heading, .t-heading_xs, .t-heading_sm, .t-heading_md, .t-heading_lg {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
}

/* Основной текст - Open Sans Regular */
body, p,
.t-text, .t-text_xs, .t-text_sm, .t-text_md, .t-text_lg,
.t-descr, .t-descr_xs, .t-descr_sm, .t-descr_md, .t-descr_lg {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-weight: 400;
}

/* Кнопки - Open Sans SemiBold/Bold */
button, .btn, .t-btn, .t-submit, .t281__submit,
a.button, .button,
[type="submit"], [type="button"] {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-weight: 600;
}

/* Жирный текст - Open Sans Bold */
strong, b, .bold, .font-weight-bold {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-weight: 700;
}

/* Курсив */
em, i, .italic {
  font-style: italic;
}

/* Легкий вес - Open Sans Light */
.font-weight-light, .light {
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  font-weight: 300;
}

