﻿/* ========================================
   2. Типографика
======================================== */

/* Шрифты: Google Fonts в header.php (?display=swap).
   Font Awesome: media=print→all в header — не блокирует первый рендер (этап 5.13).
   Subset не делаем: иконки FA встречаются и в админке, и в CMS-контенте (динамические классы fa-…),
   реальный набор знать заранее невозможно; CDN отдаёт all.min.css с Brotli + долгим cache —
   стоимость подгрузки приемлема. Альтернатива (SVG-иконки в LCP-зоне) — отдельная задача под Lighthouse.
   При CLS: @font-face { size-adjust } для локального fallback (MDN: size-adjust). */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    color: var(--dark);
}

h1 {
    font-weight: var(--font-weight-hero);
    font-size: var(--page-title-size);
}
h2 {
    font-weight: var(--font-weight-section);
    font-size: var(--section-title-size);
}
h3, h4, h5, h6 {
    font-weight: var(--font-weight-card);
}
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

.section-title {
    font-size: var(--section-title-size);
    margin-bottom: 1.25rem;
    color: var(--dark);
    position: relative;
    font-weight: var(--font-weight-section);
    letter-spacing: 0.01em;
    line-height: var(--line-height-heading);
    font-family: var(--font-heading);
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xs);
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
}

/* Левое выравнивание полоски под заголовком, когда секция без text-center */
.section-header:not(.text-center) .section-title::after {
    margin-left: 0;
    margin-right: auto;
}

/* Цены и числа: ровные колонки цифр */
.booking-price .price-amount,
.sticky-price-amount,
.page-header-price .price-amount,
.room-card-price,
.booking-card .price-amount {
    font-variant-numeric: tabular-nums lining-nums;
}

.section-subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-section);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    position: relative;
    padding: 0 20px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 2px;
    background: var(--secondary-color);
}

.section-subtitle::before {
    left: 0;
}

.section-subtitle::after {
    right: 0;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray);
    max-width: min(65ch, 700px);
    margin: 0 auto;
    line-height: var(--line-height-loose);
}

