/* ============================================================
   БЬОРК — ГЛАВНАЯ «терминал с лицами» (канон v2, утверждён 26.08.2026)
   Грузится из первого блока главной: <link> на static.bjork-beauty.ru.
   Префикс bjg- (страничный слой главной). Глобальные --bjrk-* токены
   шапки/подвала/SmartBar не трогаем: они живут в HEAD и site.css.
   Макет-эталон: артефакт a229b57b (Claude Design canvas).
   ============================================================ */

/* ===== Golos Text, самохост со static (вариативные сабсеты) ===== */
@font-face {
  font-family: 'Golos Text';
  src: url('https://static.bjork-beauty.ru/fonts/golos-text-cyrillic-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('https://static.bjork-beauty.ru/fonts/golos-text-latin-variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Токены главной ===== */
:root {
  --bjg-paper:    #FAFAF8;
  --bjg-card:     #FFFFFF;
  --bjg-graphite: #1C1C1A;
  --bjg-ghover:   #33332F;
  --bjg-coal:     #4A4A46;
  --bjg-hair:     #E3E3DF;
  --bjg-honey:    #9C6B3F;
  --bjg-oak:      #D8BE93;
  --bjg-leaf:     #4E7C3F;
  --bjg-brick:    #C0392B;
  --bjg-font: 'Golos Text', -apple-system, 'Segoe UI', Arial, sans-serif;
  /* Секционный шов (DESIGN.md «Вертикальный ритм»): несёт padding-bottom
     предыдущей секции, padding-top следующей ~0. 48px моб / 96px десктоп. */
  --bjg-sect: 48px;
}
@media (min-width: 960px) {
  :root { --bjg-sect: 96px; }
}

/* ===== База секций ===== */
.bjg { font-family: var(--bjg-font); color: var(--bjg-graphite); background: var(--bjg-paper); }
.bjg * { box-sizing: border-box; margin: 0; padding: 0; }
.bjg a { color: var(--bjg-graphite); text-decoration: none; }
.bjg a:hover { color: var(--bjg-ghover); }
.bjg img { display: block; max-width: 100%; }

.bjg-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.bjg-h1 {
  font-size: 42px; font-weight: 600; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--bjg-graphite);
}
.bjg-h2 { font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--bjg-graphite); }
.bjg-meta { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--bjg-coal); }
.bjg-names { font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--bjg-coal); }
.bjg-oakline { width: 48px; height: 2px; background: var(--bjg-oak); }

.bjg-card {
  background: var(--bjg-card);
  border: 1px solid var(--bjg-hair);
  border-radius: 14px;
}
.bjg-hairtop { border-top: 1px solid var(--bjg-hair); }

.bjg-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 14px;
  font-family: var(--bjg-font); font-size: 16px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bjg-btn-p { background: var(--bjg-graphite); color: #FFFFFF !important; }
.bjg-btn-p:hover { background: var(--bjg-ghover); }
.bjg-btn-s { background: transparent; border: 1.5px solid var(--bjg-hair); color: var(--bjg-coal) !important; }
.bjg-btn-s:hover { border-color: var(--bjg-coal); }

.bjg-photo {
  display: block; width: 100%; object-fit: cover;
  border: 2px solid var(--bjg-oak); border-radius: 10px;
}

.bjg-rowlink {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; font-size: 15px; font-weight: 500; color: var(--bjg-coal) !important;
}
.bjg-rowlink:hover { color: var(--bjg-graphite) !important; }
.bjg-arrow { flex-shrink: 0; }

/* ===== Заход ===== */
.bjg-zahod .bjg-wrap {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 28px; padding-bottom: var(--bjg-sect);
}
.bjg-zahod-facts { font-size: 13px; line-height: 1.55; color: var(--bjg-coal); }
.bjg-zahod-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bjg-zahod-price {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; font-size: 15px; font-weight: 500; color: var(--bjg-coal) !important;
}
.bjg-zahod-price:hover { color: var(--bjg-graphite) !important; }

/* ===== Каталог ===== */
.bjg-katalog .bjg-wrap {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 0; padding-bottom: var(--bjg-sect);
}
.bjg-katalog-head { display: flex; flex-direction: column; gap: 6px; }
.bjg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.bjg-dir { display: flex; flex-direction: column; padding: 10px; }
.bjg-dir .bjg-photo { height: 186px; border-radius: 10px; }
.bjg-dir-body { display: flex; flex-direction: column; padding: 12px 8px 8px; flex-grow: 1; }
.bjg-dir-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 6px; font-size: 18px; font-weight: 600; line-height: 1.25;
}
.bjg-tarif {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 38px; border-top: 1px solid var(--bjg-hair);
}
.bjg-tarif-n { font-size: 14px; color: var(--bjg-coal); }
.bjg-tarif-p { font-size: 15px; font-weight: 600; color: var(--bjg-graphite); flex-shrink: 0; }
.bjg-dir .bjg-names { padding-top: 8px; margin-top: auto; }

.bjg-mini-stack { display: flex; flex-direction: column; gap: 14px; }
.bjg-mini {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; min-height: 44px; flex-grow: 1;
}
.bjg-mini-text { display: flex; flex-direction: column; gap: 3px; }
.bjg-mini-name { font-size: 16px; font-weight: 600; }
.bjg-mini-price { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 16px; font-weight: 600; }

/* ===== Специалисты ===== */
.bjg-spec .bjg-wrap {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 4px; padding-bottom: var(--bjg-sect);
}
.bjg-spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bjg-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bjg-spec-card { display: flex; flex-direction: column; padding: 8px; gap: 8px; }
.bjg-spec-card .bjg-photo { height: 204px; border-radius: 8px; object-position: 50% 22%; }
.bjg-spec-nophoto {
  height: 204px; border: 2px solid var(--bjg-oak); border-radius: 8px;
  background: var(--bjg-paper);
  display: flex; align-items: center; justify-content: center;
}
.bjg-spec-nophoto img { height: 64px; width: auto; opacity: 0.25; border: none; }
.bjg-spec-text { display: flex; flex-direction: column; gap: 4px; padding: 2px 6px 6px; }
.bjg-spec-name { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 37px; }
.bjg-spec-role { font-size: 13px; line-height: 1.4; color: var(--bjg-coal); min-height: 55px; }

/* ===== Доверие ===== */
.bjg-trust .bjg-wrap { padding-top: 0; padding-bottom: var(--bjg-sect); }
.bjg-trust-list { display: flex; flex-direction: column; padding: 4px 16px; }
.bjg-trust-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 0;
}
.bjg-trust-row + .bjg-trust-row { border-top: 1px solid var(--bjg-hair); }
.bjg-trust-fact { display: flex; flex-direction: column; gap: 3px; }
.bjg-trust-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.bjg-trust-badge { flex-shrink: 0; }
.bjg-trust-badge iframe { display: block; border: 0; }
.bjg-award-2gis { height: 76px; width: auto; }

/* ===== Вопросы ===== */
.bjg-faq .bjg-wrap {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 0; padding-bottom: var(--bjg-sect);
}
.bjg-faq-list { display: flex; flex-direction: column; padding: 2px 16px; }
.bjg-faq-item + .bjg-faq-item { border-top: 1px solid var(--bjg-hair); }
.bjg-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 52px; padding: 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--bjg-font); font-size: 15px; font-weight: 600; color: var(--bjg-graphite);
}
.bjg-faq-q svg { flex-shrink: 0; transition: transform 0.2s; }
/* Раскрытие через grid-rows: без JS-правок и перевставки блока даёт
   анимируемую высоту (слой «Движение»); без .bj-motion — мгновенно. */
.bjg-faq-item { display: grid; grid-template-rows: auto 0fr; }
.bjg-faq-item.bjg-open { grid-template-rows: auto 1fr; }
.bjg-faq-a {
  display: block; overflow: hidden; min-height: 0;
  visibility: hidden; opacity: 0;
  font-size: 14px; line-height: 1.5; color: var(--bjg-coal); padding: 0;
}
.bjg-faq-a::after { content: ''; display: block; height: 14px; }
.bjg-faq-item.bjg-open .bjg-faq-a { visibility: visible; opacity: 1; }
.bj-motion .bjg-faq-item { transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.bj-motion .bjg-faq-a { transition: opacity 0.3s ease, visibility 0.34s; }
.bjg-faq-a a { color: var(--bjg-graphite); border-bottom: 1px solid var(--bjg-oak); }
.bjg-faq-item.bjg-open .bjg-faq-q svg { transform: rotate(180deg); }

/* ===== Финальный блок ===== */
.bjg-final .bjg-wrap {
  display: flex; flex-direction: column; gap: 16px;
  /* Перед подвалом: 32px (3xl) — подвал добавляет свой верхний отступ */
  padding-top: 0; padding-bottom: 32px;
}
.bjg-final-photo { height: 226px; object-position: 50% 40%; }
.bjg-final-text { display: flex; flex-direction: column; gap: 16px; }
.bjg-final-desc { font-size: 15px; line-height: 1.5; color: var(--bjg-coal); }
.bjg-final-actions { display: flex; flex-direction: column; gap: 10px; }
.bjg-final-place { font-size: 13px; line-height: 1.55; color: var(--bjg-coal); text-align: center; }

/* ============================================================
   Планшет и десктоп
   ============================================================ */
@media (min-width: 960px) {
  .bjg-zahod .bjg-wrap { padding-top: 44px; }
  .bjg-zahod-actions { flex-direction: row; align-items: center; gap: 20px; }
  .bjg-zahod .bjg-btn { width: auto; padding: 0 26px; }

  .bjg-katalog .bjg-wrap { gap: 18px; }
  .bjg-katalog-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
  .bjg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bjg-dir .bjg-photo { height: 200px; border-radius: 8px; }
  .bjg-mini-stack { gap: 12px; }

  .bjg-spec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .bjg-spec-card .bjg-photo { height: 330px; }
  .bjg-spec-nophoto { height: 330px; }
  .bjg-spec-nophoto img { height: 84px; }
  .bjg-spec-name { font-size: 16px; min-height: 42px; }
  .bjg-spec-role { font-size: 13px; min-height: 55px; }

  .bjg-trust-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
    padding: 0; background: transparent; border: none; border-radius: 0;
  }
  .bjg-trust-row {
    background: var(--bjg-card); border: 1px solid var(--bjg-hair); border-radius: 14px;
    padding: 12px 18px; min-height: 112px;
  }
  .bjg-trust-row + .bjg-trust-row { border-top: 1px solid var(--bjg-hair); }
  .bjg-trust-title { font-size: 15px; }
  .bjg-award-2gis { height: 84px; }

  .bjg-faq .bjg-wrap { max-width: 800px; }
  .bjg-faq-list { padding: 2px 20px; }

  .bjg-final .bjg-wrap {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px; align-items: center; padding-bottom: 64px;
  }
  .bjg-final-photo { height: 360px; order: 2; }
  .bjg-final-actions { flex-direction: row; align-items: center; gap: 12px; }
  .bjg-final .bjg-btn { width: auto; padding: 0 26px; }
  .bjg-final-place { text-align: left; }
  .bjg-final-desc { max-width: 420px; }
}
