/**
 * Prime Clinic — site-wide type matching the gold logo.
 *
 * Live mark (header /wp-content/themes/primeclinic-child/assets/img/prime-logo.svg):
 * geometric sans, all-caps «КЛИНИКА ПРАЙМ», monolinear bold strokes,
 * square terminals, circular bowl on the P/cross/heart, champagne gold.
 * Not a serif — Cormorant/Playfair would fight the letterforms.
 *
 * Pair (Google Fonts, subset=cyrillic,cyrillic-ext,latin):
 *   --pc-font-display: Onest  — geometric grotesque, Cyrillic-first, Gilroy-like
 *   --pc-font-body:    Manrope — quieter geometric sans for UI and running text
 *
 * Gold brand stays #c09c73 / #98774e. Layout/header/buttons are left to siblings.
 */

:root,
html {
  --pc-gold: #c09c73;
  --pc-gold-dark: #98774e;
  --pc-ink: #18212d;
  --pc-font-display: "Onest", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pc-font-body: "Manrope", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html,
body {
  font-family: var(--pc-font-body);
  font-weight: 400;
  color: var(--pc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Parent header.php sets * { font-family: "Montserrat" } before wp_head.
 * Same-specificity * here loads later and wins without !important.
 */
* {
  font-family: var(--pc-font-body);
}

body,
p,
li,
td,
th,
label,
input,
textarea,
select,
button,
.excerpt,
.content-single,
.content-single p,
.wpcf7,
.wpcf7-form,
.footer,
.top-footer-row,
.bottom-footer {
  font-family: var(--pc-font-body);
}

/* ---------- Headings: Onest, weight close to the logo caps ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.title-block h2,
.title-block h1,
.content-single h1,
.content-single h2,
.content-single h3,
.content-single h4,
.content-single h5,
.content-single h6,
.page-title,
.section-title,
.block-title,
.main-title,
.main-title h1,
.oh2,
.card-title,
.doctor-name,
.name-doc,
.title-doc {
  font-family: var(--pc-font-display) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.22;
}

h1,
.title-block h1,
.main-title h1,
.page-title {
  font-weight: 700;
}

/* ---------- Nav ---------- */
.main-menu,
.main-menu .lvl-1-link,
.main-menu .lvl-2-link,
.service-menu,
.service-menu .lvl-1-link,
.service-menu .lvl-2-link,
.pc-header,
.pc-header a,
.pc-header__nav,
.pc-header__nav a,
.menu .lvl-1-link,
.menu .lvl-2-link,
.contacts-header,
.contacts-header .tel,
.zvonok-header,
.main-address {
  font-family: var(--pc-font-body) !important;
}

.main-menu .lvl-1-link,
.pc-header__nav a,
.service-menu .lvl-1-link {
  font-weight: 500;
  letter-spacing: 0.015em;
}

/* ---------- Buttons / forms (family only — do not restyle gold chrome) ---------- */
.btn,
a.btn,
span.btn,
.btn.btn-main,
.btn.btn-red,
.btn.btn-header,
.btn.btn-zapis,
.btn.btn-omain,
.btn.btn-main-border,
.btn.btn-border,
.open-service-menu,
.open-service-menu.btn,
input.wpcf7-submit,
.wpcf7 input[type="submit"],
.wpcf7-submit,
button.wpcf7-submit,
.btn.btn-blue.submit-otpzvonok {
  font-family: var(--pc-font-body) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Slider / hero text ---------- */
.first-screen-main .title h1,
.first-screen-main .title h2,
.first-screen-main .title h2 a,
.first-screen-main .main-title h1,
.main_slider-block .title h1,
.main_slider-block .title h2,
.main_slider-block .title h2 a,
.prime-hero-title,
.prime-hero-title a,
.prime-hero-kicker,
.pc-cine-hero__title,
.pc-cine-hero__kicker,
.pc-cine-hero .title h1,
.action-item .title,
.action-item h2,
.action-item h3,
.vertical-actions-slider .title {
  font-family: var(--pc-font-display) !important;
  font-weight: 700;
  letter-spacing: 0.012em;
  line-height: 1.2;
}

.first-screen-main .excerpt,
.main_slider-block .excerpt,
.prime-hero-excerpt,
.pc-cine-hero__lead,
.action-item .excerpt,
.action-item p {
  font-family: var(--pc-font-body) !important;
  font-weight: 400;
  line-height: 1.5;
}

.prime-hero-kicker,
.pc-cine-hero__kicker {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-gold);
}

/* ---------- Keep gold links/brand; do not recast as Proud teal ---------- */
a {
  font-family: inherit;
}

/* ---------- Phone / small tablet: readable headings, no layout rebuild ---------- */
@media (max-width: 767px) {
  h1,
  h2,
  h3,
  .title-block h2,
  .first-screen-main .title h1,
  .main_slider-block .title h1,
  .pc-cine-hero__title,
  .prime-hero-title {
    letter-spacing: 0.005em;
    line-height: 1.25;
  }

  body,
  p,
  .excerpt,
  .content-single p,
  .pc-cine-hero__lead,
  .prime-hero-excerpt {
    line-height: 1.5;
  }
}
