/* HAIRBOSS 2: общая основа. Бренд: #F87400, #212121, фоны #FFF6EE / #FFF3E8. */
:root {
  --hb-orange: #F87400;
  --hb-dark: #212121;
  --hb-cream: #FFF6EE;
  --hb-cream-2: #FFF3E8;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

/* Компьютер с широким экраном: масштаб сайта 110% (как «Ctrl +» в браузере).
   Макет рассчитан на колонку 1232 px; на экране от 1400 px она становится заметно крупнее.
   Ниже 1400 px масштаб не меняется, чтобы шапка и колонки не стали тесными. */
@media (min-width: 1400px) {
  html { zoom: 1.1; }
}
body { margin: 0; background: #FFFFFF; }
a { color: #212121; text-decoration: none; }
a:hover { color: #F87400; }
img { max-width: 100%; }
[id] { scroll-margin-top: 90px; }
[hidden] { display: none !important; }

/* ---- толщина заголовков h1-h6 (единое правило для всех страниц) ----
   Было 800 -> стало 400. Было 700 или 600 (и стандартная жирность тега h) -> стало 300.
   Правило условное по inline-стилю разметки, поэтому переживает пересборку шаблонов из макетов.
   Если нужна другая толщина, меняйте только значения ниже. */
h1, h2, h3, h4, h5, h6 { font-weight: 300; }
:is(h1,h2,h3,h4,h5,h6)[style*="font-weight: 800"], :is(h1,h2,h3,h4,h5,h6)[style*="font-weight:800"] { font-weight: 400 !important; }
:is(h1,h2,h3,h4,h5,h6)[style*="font-weight: 700"], :is(h1,h2,h3,h4,h5,h6)[style*="font-weight:700"], :is(h1,h2,h3,h4,h5,h6)[style*="font-weight: 600"], :is(h1,h2,h3,h4,h5,h6)[style*="font-weight:600"] { font-weight: 300 !important; }

/* ---- фирменная полоса прокрутки лент (assets/js/hscroll.js): оранжевый кружок на дорожке ---- */
.hb-hs { scrollbar-width: none !important; -ms-overflow-style: none; }
.hb-hs::-webkit-scrollbar { display: none; }
.hb-sb { display: flex; align-items: center; gap: 16px; margin-top: 6px; user-select: none; }
.hb-sb[hidden] { display: none; }
.hb-sb-track { position: relative; flex: 1; height: 8px; border-radius: 999px; background: #EFE7DF; cursor: pointer; touch-action: none; }
.hb-sb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FFB070, #F87400); pointer-events: none; }
.hb-sb-thumb { position: absolute; left: 0; top: 50%; width: 32px; height: 32px; padding: 0; border: 4px solid #FFFFFF; border-radius: 50%; background: #F87400; box-shadow: 0 4px 14px rgba(248, 116, 0, 0.45), 0 0 0 1px rgba(248, 116, 0, 0.25); cursor: grab; transform: translate(0, -50%); touch-action: none; transition: box-shadow 0.15s, background 0.15s; }
.hb-sb-thumb:hover { background: #FF8A1F; box-shadow: 0 6px 18px rgba(248, 116, 0, 0.55), 0 0 0 1px rgba(248, 116, 0, 0.3); }
.hb-sb.is-drag .hb-sb-thumb { cursor: grabbing; background: #E86A00; box-shadow: 0 2px 8px rgba(248, 116, 0, 0.6), 0 0 0 6px rgba(248, 116, 0, 0.18); }
.hb-sb-thumb:focus-visible { outline: 3px solid #212121; outline-offset: 3px; }
.hb-sb-btn { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid #E5DDD5; background: #FFFFFF; color: #212121; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.15s, color 0.15s, opacity 0.15s; }
.hb-sb-btn:hover:not(:disabled) { border-color: #F87400; color: #F87400; }
.hb-sb-btn:focus-visible { outline: 3px solid #212121; outline-offset: 3px; }
.hb-sb-btn:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 600px) { .hb-sb-btn { display: none; } .hb-sb { gap: 0; } }

/* ---- единый футер и нижняя панель «Звонок / Telegram / Записаться» на всех страницах ---- */
.hb-mbar { display: none; }
.hb-foot a:hover { color: #F87400 !important; }
@media (max-width: 900px) {
  .hb-mbar { display: grid !important; }
  .hb-mbar a { min-height: 52px !important; }
  .hb-foot { padding-bottom: 100px !important; }
  .hb-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px !important; }
  .hb-fgrid > div:first-child { grid-column: span 2; }
}

/* корневая обёртка (в макете это был div с font-family) */
.hb-root {
  font-family: Gilroy, Manrope, system-ui, sans-serif;
  color: #212121;
  background: #FFFFFF;
  width: 100%;
  font-size: 16px;
  line-height: 1.55;
}

/* состояния мобильного меню переключает JS */
.hb-ms { display: contents; }
.hb-ms[hidden] { display: none !important; }

/* заголовки не вылезают за экран на узких телефонах (Samsung 360-412 px): длинное слово переносится */
h1,h2,h3{overflow-wrap:anywhere}
