/* =====================================================================
   Общие стили сайта «Место силы»: шапка, подвал, шрифты, масштаб.
   Все размеры в px макета Figma (ширина 1440). На экранах уже 1440
   страница целиком масштабируется (--s, считает site.js).
   ===================================================================== */
:root {
  --bg: #44332d;
  --cream: #feedde;
  --btn: #5f4a43;
  --footer: #221c1a;
  --s: 1;                                  /* масштаб, считает JS */
  --pw: max(1440px, 100vw);                /* ширина окна в px макета */
  --serif: "Bona Nova SC", "Times New Roman", serif;
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* Переход между страницами: страница мягко растворяется в фирменном фоне
   и так же мягко проявляется на новой */
body { transition: opacity .9s cubic-bezier(.22,.61,.36,1); }
html.is-entering body { opacity: 0; transition: none; }
html.is-leaving body { opacity: 0; transition: opacity .5s cubic-bezier(.55,0,.75,.2); }
img { display: block; }
.scaled { zoom: var(--s); }

/* Обрезка строки по высоте заглавных (как text-box-trim в Figma) */
.t { text-box: trim-both cap alphabetic; }
/* Запасной вариант для браузеров без text-box (Firefox и старые Safari):
   те же отступы считаются по метрикам шрифта */
.serif, .hdr__cta { --a: .93; --d: .27; --c: .67; }
.sans, .light, .hdr__nav a { --a: .905; --d: .212; --c: .716; }
.no-tb .t {
  text-box: none;
  margin-top: calc(var(--c) * 1em - (1lh + (var(--a) - var(--d)) * 1em) / 2);
  margin-bottom: calc((var(--a) - var(--d)) * 1em / 2 - 1lh / 2);
}

.serif { font-family: var(--serif); font-weight: 400; }
.sans  { font-family: var(--sans); font-weight: 400; }
.light { font-family: var(--sans); font-weight: 300; }

/* «Стекло» из Figma (эффект Glass): лёгкий блюр фона и светлый кант */
.glass {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 1.2px 1.2px 0 rgba(255,255,255,.38),
    inset -1px -1px 0 rgba(255,255,255,.16),
    inset 0 0 18px rgba(255,255,255,.04);
}

/* ---------- Шапка («бровь»): всегда на месте ---------- */
.hdr-bar {
  position: fixed; z-index: 50;
  top: calc(20px * var(--s)); left: 0; right: 0;
  display: flex; justify-content: center;
  pointer-events: none;
}
.hdr {
  pointer-events: auto;
  width: 1206px; height: 78px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 20px 5px 7px;
  border-radius: 40px;
  background: rgba(20, 14, 12, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 1.2px 1.2px 0 rgba(255,255,255,.34),
    inset -1px -1px 0 rgba(255,255,255,.22);
}
.hdr__logo { flex: none; position: relative; width: 68px; height: 68px; border-radius: 50px; overflow: hidden; display: block; }
.hdr__logo img { position: absolute; left: 9px; top: 9px; width: 50.0005px; height: 46.8702px; }
.hdr { position: relative; }
/* Адрес салона: просто текст рядом с логотипом, в стиле пунктов меню; ведёт в 2ГИС */
.hdr__addr {
  position: absolute; left: 88px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 12px; line-height: 1; letter-spacing: .3px;
  white-space: nowrap; color: var(--cream); opacity: .7;
  transition: opacity .3s ease;
}
.hdr__addr:hover { opacity: 1; }
.hdr__nav { display: flex; gap: 25px; align-items: center; }
.hdr__nav a {
  display: block; height: 9px;
  font-family: var(--sans); font-size: 12px; letter-spacing: -0.84px;
  line-height: 46.281px; white-space: nowrap; color: var(--cream);
  transition: opacity .2s;
}
.hdr__nav a:hover { opacity: .7; }
.hdr__nav a span { display: block; }
.hdr__cta {
  display: flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 30px; background: var(--cream);
  color: #000; font-family: var(--serif); font-size: 15px;
  letter-spacing: -1.05px; line-height: 46.281px; white-space: nowrap;
  transition: opacity .2s;
}
.hdr__cta:hover { opacity: .85; }

/* Маленькие стеклянные кнопки «Записаться» и подписи мастеров: тот же полупрозрачный фон
   и светлый кант, но без размытия — размытие двух десятков элементов тормозило прокрутку */
.cbtn.glass, .master__cap.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Холст макета ---------- */
.canvas { position: relative; width: 1440px; margin: 0 auto; }
.abs { position: absolute; }
.bleed { position: absolute; left: calc((1440px - var(--pw)) / 2); width: var(--pw); }

/* Подвал */
.footer { height: 381px; background: var(--footer); }
.footer__in { position: absolute; top: 0; left: calc((var(--pw) - 1440px) / 2); width: 1440px; height: 381px; }
.f-logo { position: absolute; left: 121px; top: 73px; width: 76.6703px; height: 65.4936px; }
.f-phone { position: absolute; left: 324px; top: 60px; width: 224px; display: flex; flex-direction: column; gap: 5px; }
.f-phone a { font-size: 35px; line-height: 1.2; letter-spacing: -2.1px; white-space: nowrap; }
.f-phone p { font-size: 16px; line-height: 17px; white-space: pre-wrap; }
.f-menu { position: absolute; left: 1140px; top: 60px; width: 180px; display: flex; flex-direction: column; gap: 20px; }
.f-menu h3 { font-weight: 400; font-size: 25px; line-height: 1; letter-spacing: -1.5px; }
.f-menu ul { list-style: none; font-size: 16px; line-height: 1; }
.f-menu li + li { margin-top: 20px; }
.f-menu a:hover { opacity: .7; }
