/* Единая типографическая шкала мобильной версии */
:root {
    --type-body: .9375rem;
    --type-body-sm: .875rem;
    --type-caption: .8125rem;
    --type-label: .875rem;
    --type-control: .8075rem;
    --type-page-title: 1.2rem;
    --type-section-title: 1.125rem;
    --type-card-title: 1rem;
    --type-small-title: .9375rem;
    --type-line-body: 1.55;
    --type-line-heading: 1.2;
}

html { font-size: 16px; }

body,
.mobile-page {
    font-size: calc(var(--type-body) + 1px);
    line-height: var(--type-line-body);
}

body,
button,
input,
select,
textarea {
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--type-line-heading);
}

h1 { font-size: calc(var(--type-page-title) + 1px); }
h2 { font-size: calc(var(--type-section-title) + 1px); }
h3 { font-size: calc(var(--type-card-title) + 1px); }
h4, h5, h6 { font-size: calc(var(--type-small-title) + 1px); }

p { font-size: calc(var(--type-body) + 1px); }
small { font-size: calc(var(--type-caption) + 1px); }

button,
input,
select,
textarea {
    font-size: calc(var(--type-control) + 1px);
}

.mobile-page__title,
.mobile-create-listing-page .page-title {
    font-size: calc(var(--type-page-title) + 1px);
    line-height: var(--type-line-heading);
}

.mobile-surface__head h2,
.mobile-surface__head h3 {
    font-size: calc(var(--type-section-title) + 1px);
    line-height: var(--type-line-heading);
}

.mobile-managed-listing__title,
.mobile-review-card__identity strong {
    font-size: calc(var(--type-card-title) + 1px);
    line-height: var(--type-line-heading);
}

.mobile-page__subtitle,
.mobile-surface__head p,
.mobile-empty,
.mobile-field label {
    font-size: calc(var(--type-body-sm) + 1px);
}

.mobile-primary-button,
.mobile-outline-button,
.mobile-small-button,
.primary-button {
    font-size: calc(var(--type-control) + 1px);
}

.mobile-profile-page .btn,
.mobile-profile-page .form-group label,
.mobile-profile-page .form-group input,
.mobile-profile-page .form-group textarea,
.mobile-profile-page .profile-card__form input[type="email"],
.mobile-profile-page .profile-card__form input[type="text"],
.mobile-profile-page .profile-card__form select,
.mobile-profile-page .password-wrapper input {
    font-size: calc(var(--type-control) + 1px);
}
