/* ================================================================
   site-unify.css — общие токены и лёгкая косметика
   Главная / каталог / карточки. Без смены логики.
   ================================================================ */

:root {
  --gd-coral: #fe5b3f;
  --gd-coral-hover: #e64a30;
  --gd-ink: #1a1a1a;
  --gd-muted: #666;
  --gd-line: #ece9e4;
  --gd-surface: #fff;
  --gd-bg: #f5f5f5;
  --gd-radius: 14px;
  --gd-radius-pill: 999px;
  --gd-font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-h: 'Montserrat', system-ui, sans-serif;
  --font-b: 'Montserrat', system-ui, sans-serif;
}

/* Типографика каталога / premium-страниц */
body.page-catalog-unified,
body.page-catalog-entrance,
body.pe-page,
body.op-page,
body.gd-product {
  font-family: var(--gd-font);
}

body.page-catalog-unified h1,
body.page-catalog-entrance h1 {
  font-family: var(--gd-font) !important;
  letter-spacing: -0.02em;
}

/* ---- Факты / преимущества на главной ---- */
.hp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 28px;
}

.hp-fact {
  background: #fff;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  padding: 16px 18px;
  min-height: 88px;
  box-sizing: border-box;
}

.hp-fact__value {
  font-family: var(--gd-font);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  color: var(--gd-ink);
  letter-spacing: -0.02em;
}

.hp-fact__label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gd-muted);
  font-weight: 500;
}

.hp-facts-note {
  margin: -12px 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: #777;
  max-width: 640px;
}

@media (max-width: 900px) {
  .hp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
  .hp-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hp-fact { padding: 12px 12px; min-height: 0; }
  .hp-fact__value { font-size: 18px; }
  .hp-fact__label { font-size: 12px; }
}

/* ---- Пояснение под ценой ---- */
.gd-price-final {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.55;
  color: #666;
  font-weight: 500;
}

/* ---- Формы: фокус, тач-цели ---- */
.mosaic-form__text,
.mosaic-form input[type="text"],
.mosaic-form input[type="tel"],
.mosaic-form input[type="email"],
.pe-form input,
.op-measure input,
#zamer-name,
#zamer-phone {
  min-height: 44px;
  font-family: var(--gd-font);
}

.mosaic-form__text:focus,
.mosaic-form input:focus,
.pe-form input:focus,
.op-measure input:focus,
#zamer-name:focus,
#zamer-phone:focus {
  outline: 2px solid rgba(254, 91, 63, 0.45);
  outline-offset: 1px;
  border-color: var(--gd-coral) !important;
}

.mosaic-form__button,
.pe-form button[type="submit"],
.op-measure button[type="submit"],
button[type="submit"] {
  min-height: 44px;
}

/* Согласие — читаемее */
.mosaic-form__field--u-iknoxmi9n,
.pd-consent,
.consent-row {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
}

/* Карточка товара: шапка не перекрывает контент */
body.gd-product .wrap {
  margin-top: 24px;
  margin-bottom: 60px;
  max-width: 1240px;
  width: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body.gd-product .wrap {
    margin-top: 12px;
    padding: 0 12px;
    margin-bottom: 96px;
  }
}
