/* ═══════════════════════════════════════════════════════════
   components/typography.css — шрифтовые токены и правила.
   Owns: --font-* переменные, font-family/weight назначения.
   НЕ дублировать font-family в base.css или style.css.
   ═══════════════════════════════════════════════════════════ */

:root {
  --font-body:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono:  "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                "Liberation Mono", "Courier New", monospace;
  --font-price: var(--font-mono);
}

/* ─── Body ──────────────────────────────────────────────────── */
html, body {
  font-family: var(--font-body);
  overflow-x: clip;
}

body {
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─── Form elements inherit body font ───────────────────────── */
p, li,
input, textarea, select, label,
.wpforms-field-label,
.contact-form__note,
.contact-info__label,
.contact-info__value {
  font-family: var(--font-body);
}

/* ─── Headings ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.site-title, .site-title a,
.nav a, .main-navigation a, .menu a,
.section-title, .page-title,
.hero__title,
.about-hero__title,
.shipping-hero__title,
.contact-hero__title,
.privacy-hero__title,
.dag-contact-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
}

.hero__title,
.about-hero__title,
.shipping-hero__title,
.contact-hero__title,
.privacy-hero__title,
.dag-contact-hero__title {
  letter-spacing: .04em;
}

/* ─── UI / buttons ──────────────────────────────────────────── */
.btn, .contact-btn, .inventory-btn, .dag-btn,
.vehicle-card__cta, .cyp-btn, .ty-btn,
.wpforms-submit, .elementor-button,
button, input[type="submit"] {
  font-family: var(--font-ui);
  font-weight: 700;
}

/* ─── Card bodies ────────────────────────────────────────────── */
.dag-card__body,
.dag-inv-card__body,
.cyp-inv__body,
.team-card__body,
.vehicle-card__body {
  font-family: var(--font-head), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ─── Prices / numeric data ──────────────────────────────────── */
.price, .amount,
.woocommerce-Price-amount,
.dag-price, .car-price, .vehicle-price,
.vehicle-card__price, .inventory-card__price,
.home-featured__price,
.car-card__price,
.cyp-inv__price, .cyp-inv__price-val,
.cyp-inv__price-ask, .cyp-inv__price-sold,
.dag-inv-card__price, .dag-spec-mini__price,
[class*="mileage"], [class*="year"], [class*="stock"] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

body.single-car .dag-price,
body.single-car .dag-monthly__value,
.cyp-inv__price-val {
  font-family: var(--font-price);
  letter-spacing: -.01em;
}

/* ─── Font-head применяется к специфичным UI-блокам ─────────── */
.home-brands__item,
.home-featured__badge,
.dag-sold-badge,
.dag-price.is-sold,
.section-title,
.page-title {
  font-family: var(--font-head);
}
