/* Единая типографическая шкала desktop-версии */
:root {
    --type-body: 1rem;
    --type-body-sm: .9375rem;
    --type-caption: .8125rem;
    --type-label: .875rem;
    --type-control: .9375rem;
    --type-page-title: clamp(1.875rem, 2.2vw, 2.125rem);
    --type-section-title: 1.5rem;
    --type-card-title: 1.25rem;
    --type-small-title: 1.125rem;
    --type-line-body: 1.6;
    --type-line-heading: 1.2;
}

html { font-size: 16px; }

body {
    font-size: var(--type-body);
    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: var(--type-page-title); }
h2 { font-size: var(--type-section-title); }
h3 { font-size: var(--type-card-title); }
h4, h5, h6 { font-size: var(--type-small-title); }

p { font-size: var(--type-body); }
small { font-size: var(--type-caption); }

button,
input,
select,
textarea,
.form-group input,
.form-group select,
.form-group textarea,
.btn {
    font-size: var(--type-control);
}

.btn-sm { font-size: var(--type-caption); }

.page-title,
.cl-page-header h1,
.listing-detail-header h1,
.object-title h1,
.profile-name h1,
.home-hero-copy h1 {
    font-size: var(--type-page-title);
    line-height: var(--type-line-heading);
}

.section-header h2,
.similar-header h2,
.object-description h2,
.section-title {
    font-size: var(--type-section-title);
    line-height: var(--type-line-heading);
}

.card-content h3,
.contact-card h3,
.about-specialist h3,
.hot-header h3 {
    font-size: var(--type-card-title);
    line-height: var(--type-line-heading);
}

.form-group label,
.filter-field label {
    font-size: var(--type-label);
}

@media (max-width: 760px) {
    :root {
        --type-body: .9375rem;
        --type-body-sm: .875rem;
        --type-caption: .8125rem;
        --type-label: .875rem;
        --type-control: .9375rem;
        --type-page-title: 1.625rem;
        --type-section-title: 1.375rem;
        --type-card-title: 1.125rem;
        --type-small-title: 1rem;
    }

    .page-title,
    .cl-page-header h1,
    .listing-detail-header h1,
    .object-title h1,
    .profile-name h1,
    .home-hero-copy h1 {
        font-size: var(--type-page-title);
    }
}
