/* АЗИМУТ — только читаемость и адаптивность текста.
   Без смены шрифтов, цветов, кнопок, фона и дизайна. */

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

body {
    overflow-x: hidden;
}

/* Нормальные переносы, чтобы текст не вылезал за экран */
.t-records h1,
.t-records h2,
.t-records h3,
.t-records p,
.t-records li,
.t-records .t-title,
.t-records .t-heading,
.t-records .t-name,
.t-records .t-descr,
.t-records .t-text {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Главные заголовки */
.t-records h1,
.t-records .t-title_xxl,
.t-records .t-title_xl,
.t-records .t-cover__title {
    font-size: clamp(2rem, 3.6vw, 3.25rem) !important;
    line-height: 1.1 !important;
}

/* Заголовки разделов */
.t-records h2,
.t-records .t-title_lg,
.t-records .t-heading_lg {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem) !important;
    line-height: 1.16 !important;
}

/* Средние заголовки */
.t-records h3,
.t-records .t-title_md,
.t-records .t-heading_md,
.t-records .t-name_xl,
.t-records .t-name_lg {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem) !important;
    line-height: 1.25 !important;
}

/* Названия карточек и небольшие заголовки */
.t-records .t-name,
.t-records .t-name_md,
.t-records .t-name_sm {
    font-size: clamp(1.05rem, 1.2vw, 1.25rem) !important;
    line-height: 1.3 !important;
}

/* Обычный текст */
.t-records p,
.t-records li,
.t-records .t-text,
.t-records .t-descr {
    font-size: clamp(0.95rem, 1vw, 1.0625rem) !important;
    line-height: 1.55 !important;
}

/* Крупное описание под заголовком */
.t-records .t-descr_xxl,
.t-records .t-descr_xl,
.t-records .t-text_xl,
.t-records .t-cover__descr {
    font-size: clamp(1rem, 1.25vw, 1.25rem) !important;
    line-height: 1.5 !important;
}

/* Меню без скачков */
.t-menu__link-item,
.t-menusub__link,
.t-menusub__list a {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
}

/* Поля форм: 16px минимум, чтобы телефон не зумил при вводе */
.t-records input,
.t-records textarea,
.t-records select,
.t-records .t-input,
.t-records .t-select {
    font-size: 1rem !important;
    line-height: 1.35 !important;
}

/* Телефон */
@media screen and (max-width: 640px) {
    .t-records h1,
    .t-records .t-title_xxl,
    .t-records .t-title_xl,
    .t-records .t-cover__title {
        font-size: clamp(1.75rem, 8vw, 2.2rem) !important;
        line-height: 1.12 !important;
    }

    .t-records h2,
    .t-records .t-title_lg,
    .t-records .t-heading_lg {
        font-size: clamp(1.45rem, 6.2vw, 1.85rem) !important;
        line-height: 1.16 !important;
    }

    .t-records h3,
    .t-records .t-title_md,
    .t-records .t-heading_md,
    .t-records .t-name_xl,
    .t-records .t-name_lg {
        font-size: clamp(1.15rem, 5vw, 1.4rem) !important;
        line-height: 1.25 !important;
    }

    .t-records p,
    .t-records li,
    .t-records .t-text,
    .t-records .t-descr {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
    }

    .t-menu__link-item,
    .t-menusub__link,
    .t-menusub__list a {
        font-size: 1rem !important;
        line-height: 1.35 !important;
    }
}
/* 1. Заголовок блока выбора программы — сделать легче */
.t-records h2,
.t-records .t-title_lg,
.t-records .t-heading_lg {
    font-weight: 500 !important;
}

/* 2. Меню и подменю — вернуть нормальный размер и вес */
.t-menu__link-item,
.t-menusub__link,
.t-menusub__list a {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}