/*
 * MSCH59 — элегантная, компактная и облегченная типографика
 * Меняет только шрифт и параметры типографики.
 * Подключать ПОСЛЕ основного style.css темы fgbuz.
 *
 * Основной шрифт: Manrope
 * Кириллица поддерживается.
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --msch-font:
        "Manrope",
        "Segoe UI",
        Arial,
        sans-serif;
}

/* Базовая типографика */
html,
body,
button,
input,
select,
textarea {
    font-family: var(--msch-font);
}

html {
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.008em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Основной текст */
body {
    font-weight: 400;
    letter-spacing: -0.006em;
}

.content {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.008em;
}

.content p,
.content li,
.content td,
.content th {
    line-height: 1.65;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--msch-font);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 1.9rem;
    font-weight: 550;
}

h2 {
    font-size: 1.7rem;
    font-weight: 550;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.12rem;
}

h6 {
    font-size: 1rem;
}

/* Шапка и меню */
.header__logo,
.header__menu,
.header__phone,
.header__label,
.menu,
.menu__primary,
.menu__aside,
.menu__submenu {
    font-family: var(--msch-font);
}

.header__logo {
    font-weight: 500;
    letter-spacing: -0.018em;
}

.header__menu > ul > li > a {
    font-weight: 500;
    letter-spacing: -0.012em;
}

.header__phone {
    font-weight: 500;
    letter-spacing: -0.012em;
}

.header__label {
    letter-spacing: 0;
}

/* Главная */
.frontSlider__title,
.frontInfo__title,
.frontInfo__button,
.frontInfo__cardText,
.frontMenu__header,
.frontLicenses__rating h2 {
    font-family: var(--msch-font);
    letter-spacing: -0.022em;
}

.frontSlider__title,
.frontInfo__cardText {
    font-weight: 500;
}

.frontSlider__text,
.frontInfo__text {
    line-height: 1.58;
    letter-spacing: -0.006em;
}

/* Новости */
.newsCard__title,
.smallCard__title {
    font-family: var(--msch-font);
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.018em;
}

.newsCard__text,
.smallCard__text {
    line-height: 1.55;
    letter-spacing: -0.004em;
}

.newsCard__date,
.page__meta,
.breadcrumbs,
.small,
.tags span {
    letter-spacing: 0;
}

/* Кнопки и формы */
.btn,
.outlineBtn,
.input__input,
.select,
.searchBlock {
    font-family: var(--msch-font);
}

.btn,
.outlineBtn {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.input__input {
    letter-spacing: -0.008em;
}

/* Таблицы и документы */
table,
.document {
    font-family: var(--msch-font);
}

table {
    font-size: 0.95rem;
    line-height: 1.45;
    letter-spacing: -0.005em;
}

table thead th {
    font-weight: 500;
}

table tbody {
    font-weight: 400;
}

/* Ссылки */
strong,
b {
    font-weight: 600;
}

/* Мобильная версия */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .content {
        font-size: 15.5px;
        line-height: 1.62;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.48rem;
    }

    h3 {
        font-size: 1.28rem;
    }

    .header__menu > ul > li > a {
        letter-spacing: -0.014em;
    }
}
