/* ============================================================
   Барбершоп «Гарда» — редизайн 2.0 (KOV-995), дизайн-слой.
   Направление: «вывеска и жетон». Витрина барбершопа читается
   как витрина бара: готический конденсед-капс (Oswald) — язык
   классической оконной надписи; IBM Plex Mono — ценники,
   номерки, расписание; Onest — текст. Сигнатура — полоса
   барбер-полюса (--pole): тонкая, только как структура, она
   связывает 3D-полюс героя с плоской страницей.
   Дизайн-токены сверху — сцена (js/scene.js, js/shaders.js)
   не трогается, кроме точечных параметров.
   ============================================================ */

:root {
  /* палитра: тёплый уголь + латунь/золото + крем */
  --ink: #0b0908;         /* фон-основа */
  --ink-2: #110d0a;       /* приподнятые главы */
  --ink-3: #1a1410;       /* карты */
  --leather: #211711;     /* тёплый материал акцентных панелей */
  --line: rgba(214, 167, 84, 0.15);
  --line-strong: rgba(214, 167, 84, 0.36);
  --brass: #c08a3e;       /* латунь: хайрлайны, лейблы, номерки */
  --gold: #d9a94f;        /* якорь палитры */
  --gold-lt: #edc985;     /* золото для мелкого текста */
  --gold-deep: #b9853b;
  --cream: #f4e8d0;
  --text: #ece2d0;
  --mut: #b3a48c;
  --dim: #9a8e7a;         /* самый тусклый текст: ≥5.6 AA везде, ступень ниже --mut */
  --brick: #8e3537;

  /* сигнатура: полоса барбер-полюса (золото / крем / кирпич) */
  --pole: repeating-linear-gradient(-55deg,
    var(--gold) 0 5px, #1b130c 5px 10px,
    var(--cream) 10px 13px, #1b130c 13px 18px,
    var(--brick) 18px 23px, #1b130c 23px 28px);
  /* тот же мотив для мелких поверхностей (тире 3px, кромки жетонов):
     редкие широкие ленты — иначе диагональ на малой высоте сыпется в крошку */
  --pole-fine: repeating-linear-gradient(-55deg,
    var(--gold) 0 8px, #1b130c 8px 10px,
    var(--cream) 10px 17px, #1b130c 17px 19px,
    var(--brick) 19px 26px, #1b130c 26px 28px);

  /* типографика: вывеска / текст / ценник */
  --display: 'Oswald', 'Liberation Sans Narrow', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'DejaVu Sans Mono', monospace;

  /* геометрия */
  --radius: 12px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 66px;

  --shadow-card: 0 28px 64px -34px rgba(0, 0, 0, 0.9);
}

/* ---------- самохостинг шрифтов (подмножества cyrillic / latin-ext / latin) --- */
@font-face {
  font-family: 'Oswald';
  font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/oswald-cyrillic-var.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/oswald-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/oswald-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/onest-cyrillic-var.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/onest-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/onest-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-mono-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(217, 169, 79, 0.32); color: var(--cream); }

/* вывеска: конденсед-капс держит всю иерархию заголовков */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  margin: 0 0 0.5em;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }

/* якоря не прячутся под фиксированной шапкой */
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 9, 8, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__in {
  display: flex; align-items: center; gap: 26px;
  max-width: var(--wrap); margin: 0 auto; padding: 11px var(--gutter);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); padding: 4px 0; }
.brand__mark {
  font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1;
  color: var(--gold);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 10px 7px;
  position: relative; overflow: hidden; background: rgba(217, 169, 79, 0.05);
}
/* полюс-полоса — левый кром жетона */
.brand__mark::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--pole-fine);
}
.brand__sub {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mut);
}
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a {
  position: relative; color: var(--mut); font-size: 14px; font-weight: 420;
  padding: 10px 12px; border-radius: 6px; transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px;
  background: var(--pole-fine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav a:hover { color: var(--cream); background: rgba(217, 169, 79, 0.06); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 560; font-size: 15.5px; letter-spacing: 0.01em;
  min-height: 50px; border-radius: 10px; padding: 13px 26px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.24s ease, background 0.24s ease,
    border-color 0.24s ease, color 0.2s ease, filter 0.2s ease;
  position: relative; overflow: hidden;
}
/* золотая кнопка ловит блик, как полированная латунь: свет проходит наискось */
.btn::after {
  content: ''; position: absolute; top: -40%; bottom: -40%; left: -80%; width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255, 248, 230, 0.42), transparent);
  transform: skewX(-18deg); transition: left 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.btn--ghost::after { display: none; }
.btn--gold:hover::after, .btn--gold:focus-visible::after { left: 130%; }
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, #eec981 0%, var(--gold) 46%, var(--gold-deep) 100%);
  color: #251904;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.6), 0 12px 30px -14px rgba(217, 169, 79, 0.6);
}
.btn--gold:hover {
  transform: translateY(-2px); filter: brightness(1.06); color: #251904;
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.7), 0 18px 40px -14px rgba(217, 169, 79, 0.75);
}
.btn--ghost {
  border-color: var(--line-strong); color: var(--cream);
  background: rgba(11, 9, 8, 0.5);
}
.btn--ghost:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(217, 169, 79, 0.08); transform: translateY(-2px);
}
.btn--sm { min-height: 44px; padding: 9px 20px; font-size: 14px; border-radius: 9px; }

/* ---------- герой ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 96px; overflow: clip;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; transition: opacity 0.2s linear;
}
/* scrim читабельности: затемняет текстовую колонку, полюс и свечение живые */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 9, 8, 0.92) 0%, rgba(11, 9, 8, 0.72) 34%, rgba(11, 9, 8, 0.16) 62%, rgba(11, 9, 8, 0) 80%);
}
@media (max-width: 820px) {
  /* полюс на мобиле стоит за текстом: держим его фоном, а не соперником —
     середина колонки (лид, кнопки) глушится сильнее, верх и низ дышат */
  .hero::before {
    background:
      radial-gradient(130% 52% at 50% 12%, rgba(11, 9, 8, 0.52), rgba(11, 9, 8, 0.06) 62%),
      linear-gradient(180deg, rgba(11, 9, 8, 0.6) 0%, rgba(11, 9, 8, 0.72) 30%,
        rgba(11, 9, 8, 0.68) 62%, rgba(11, 9, 8, 0.82) 100%);
  }
}
/* fallback без WebGL / reduced-motion: статичный тёплый градиент */
.hero.no-webgl::before {
  background:
    radial-gradient(52% 60% at 70% 42%, rgba(217, 169, 79, 0.2), transparent 70%),
    linear-gradient(180deg, #17110c 0%, var(--ink) 78%);
}
.hero.no-webgl #hero-canvas { display: none; }
.hero.is-gl-lost #hero-canvas { opacity: 0.4; }
/* и вместо сцены — плоский полюс тем же мотивом: страница не остается пустой
   ни у reduced-motion, ни у упавшего контекста */
.hero.no-webgl::after {
  content: ''; position: absolute; z-index: 1; pointer-events: none;
  right: 12%; top: 12%; bottom: 10%; width: clamp(96px, 11vw, 150px);
  border-radius: 999px;
  background:
    repeating-linear-gradient(-55deg,
      var(--gold) 0 22px, #1b130c 22px 30px,
      var(--cream) 30px 50px, #1b130c 50px 58px,
      var(--brick) 58px 80px, #1b130c 80px 88px);
  border: 1px solid rgba(214, 167, 84, 0.3);
  box-shadow: 0 30px 80px -30px rgba(217, 169, 79, 0.35), inset 0 0 40px rgba(11, 9, 8, 0.55);
  opacity: 0.5;
}
@media (max-width: 820px) {
  /* на мобиле текстовая колонка одна — плоский полюс уходит в пол и темнит */
  .hero.no-webgl::after {
    right: -14%; top: 42%; bottom: -6%; width: 58%;
    opacity: 0.22; filter: blur(1px);
  }
}

/* width:100% обязателен: auto-марджины .wrap на cross-axis флекса делают
   блок shrink-to-fit и уводят текстовую колонку в центр вёрстки */
.hero__in { position: relative; z-index: 10; width: 100%; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 13px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-lt);
  margin-bottom: 26px;
}
/* полюс-полоса как тире в надзаголовке */
.hero__kicker::before { content: ''; width: 46px; height: 3px; background: var(--pole-fine); border-radius: 2px; flex: none; }
.hero__title {
  font-size: clamp(2.85rem, 7vw, 5.6rem); font-weight: 600;
  letter-spacing: 0.012em; line-height: 0.99;
  max-width: 12ch; color: var(--cream); margin-bottom: 24px;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(11, 9, 8, 0.95);
}
.hero__title em {
  font-style: normal; color: var(--gold);
  text-shadow: 0 1px 0 rgba(11, 9, 8, 0.6), 0 2px 24px rgba(11, 9, 8, 0.9);
}
.hero__lead {
  font-size: clamp(1.02rem, 1.45vw, 1.18rem); font-weight: 380; color: var(--mut);
  max-width: 38ch; margin-bottom: 34px; text-wrap: pretty;
  text-shadow: 0 1px 16px rgba(11, 9, 8, 0.95), 0 0 2px rgba(11, 9, 8, 0.85);
}
.hero__lead strong { color: var(--text); font-weight: 620; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 56px; }

/* статистика — строка жетонов с полюс-кромом; ограничена текстовой колонкой,
   чтобы третий жетон не наезжал на полюс */
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 52px); max-width: 720px; }
.stat { border-left: 2px solid var(--line-strong); padding: 2px 0 2px 16px; }
.stat__num {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.02em;
  font-size: clamp(1.85rem, 2.7vw, 2.4rem); line-height: 1.05; color: var(--cream);
}
.stat__num sup { color: var(--gold); font-size: 0.5em; }
.stat__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mut); margin-top: 6px;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mut); opacity: 0.9;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* загрузочная последовательность героя: одна, короткая, слева направо */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__kicker { animation: rise 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__title { animation: rise 0.8s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__lead { animation: rise 0.8s 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__actions { animation: rise 0.8s 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__stats { animation: rise 0.8s 0.66s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ---------- marquee: бегущая строка услуг ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(217, 169, 79, 0.035);
  overflow: hidden; padding: 14px 0; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* полюс-кром сверху и снизу — витрина «под вывеской» */
.marquee::before, .marquee::after {
  content: ''; position: absolute; left: 0; right: 0; height: 3px; opacity: 0.4;
}
.marquee::before { top: -1px; background: var(--pole); }
.marquee::after { bottom: -1px; background: var(--pole); }
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mut); white-space: nowrap;
}
.marquee__track span { display: flex; align-items: center; gap: 40px; }
.marquee__track i {
  font-style: normal; width: 6px; height: 6px; flex: none;
  background: var(--pole); transform: rotate(45deg); border-radius: 1px;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- секции ---------- */
.section { padding: clamp(76px, 9vw, 132px) 0; position: relative; }
/* главы-«данные» приподняты: ритм тёмная / светлая по странице */
.section--plate { background: var(--ink-2); border-block: 1px solid var(--line); }
.section--plate::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; opacity: 0.6;
  background: var(--pole);
}
.section__head { margin-bottom: clamp(38px, 5vw, 60px); }
.section__label {
  display: flex; align-items: center; gap: 13px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mut);
  margin-bottom: 20px;
}
/* жетон-номерок: у секций сквозной порядок визита */
.section__num {
  font-family: var(--mono); font-weight: 600; font-size: 10.5px;
  color: var(--gold); background: rgba(217, 169, 79, 0.09);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 3px 7px 4px; letter-spacing: 0.1em;
}
.section__label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section__title {
  font-size: clamp(1.95rem, 3.7vw, 3rem); font-weight: 500;
  color: var(--cream); max-width: 24ch; margin-bottom: 16px;
}
.section__sub { color: var(--mut); max-width: 50ch; font-size: 1.03rem; margin: 0; }

/* ---------- боль ICP → обещание ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(217, 169, 79, 0.055), rgba(26, 20, 16, 0.5));
  padding: 28px 26px 26px; box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.pain::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brick); opacity: 0.55; transform: scaleY(0.42);
  transform-origin: top; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.pain:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pain:hover::before { transform: scaleY(1); opacity: 0.9; }
.pain__icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(142, 53, 55, 0.12); color: #cf7f74;
  margin-bottom: 18px;
}
.pain__icon svg { width: 23px; height: 23px; }
.pain h3 { font-size: 1.06rem; font-weight: 500; color: var(--cream); margin-bottom: 9px; }
.pain p { color: var(--mut); font-size: 0.95rem; margin: 0; }
.pain__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 5px 12px 5px 9px;
  background: rgba(217, 169, 79, 0.07);
}
/* пробитый жетон: ромб-подвес слева — язык жетонов, а не декоративная точка */
.pain__badge::before {
  content: ''; width: 7px; height: 7px; flex: none; border-radius: 1px;
  background: var(--pole-fine); transform: rotate(45deg);
}

/* ---------- прайс: доска цен ---------- */
.price-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.price-group {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(217, 169, 79, 0.035), transparent 42%), var(--ink-3);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.price-group--wide { grid-column: 1 / -1; }
.price-group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 17px 24px 16px 26px; border-bottom: 1px solid var(--line);
  background: rgba(217, 169, 79, 0.05); position: relative;
}
.price-group__head::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pole-fine);
}
.price-group__head h3 { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--cream); }
.price-group__head > span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.price-row {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 15px 24px 15px 26px; border-bottom: 1px solid rgba(214, 167, 84, 0.08);
  transition: background 0.22s ease;
}
.price-row:last-child { border-bottom: 0; }
.price-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.price-row:hover { background: rgba(217, 169, 79, 0.05); }
.price-row:hover::before { transform: scaleY(1); }
.price-row:hover .price-row__cost { color: var(--gold-lt); }
/* ценник-номерок: у каждой позиции доски свой порядковый номер —
   язык номерков, как у гардероба; счётчик внутри каждой группы */
.price-group { counter-reset: item; }
.price-row { counter-increment: item; }
.price-row__name { color: var(--text); font-weight: 520; font-size: 1rem; transition: color 0.22s ease; }
/* номерок инлайном: имя и мета остаются в потоке, мета — под именем */
.price-row__name::before {
  content: counter(item, decimal-leading-zero);
  display: inline-block; margin-right: 11px;
  font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.08em;
  color: rgba(192, 138, 62, 0.62); transform: translateY(-2px);
}
.price-row:hover .price-row__name { color: var(--cream); }
.price-row__dots { flex: 1; border-bottom: 1px dotted rgba(179, 164, 140, 0.55); transform: translateY(-4px); min-width: 20px; }
.price-row__cost {
  font-family: var(--mono); font-weight: 600; font-size: 1rem;
  color: var(--gold); white-space: nowrap; letter-spacing: -0.01em;
}
.price-row__meta { display: block; font-size: 12.5px; font-weight: 380; color: var(--mut); margin-top: 3px; }
.price-note {
  color: var(--dim); margin-top: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.01em;
}

/* ---------- мастера: слоты под фото, процедурный плейсхолдер ---------- */
.masters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.master {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-3);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.master:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.master__photo {
  position: relative; aspect-ratio: 4 / 4.6; overflow: hidden;
  background:
    repeating-linear-gradient(-55deg, rgba(217, 169, 79, 0.04) 0 3px, transparent 3px 10px),
    radial-gradient(96% 58% at 50% 6%, rgba(217, 169, 79, 0.2), transparent 66%),
    linear-gradient(180deg, #2a1d12 0%, #1c130c 58%, #120d09 100%);
}
/* свет «лампы над креслом»: пятно сверху + тёмный пол внизу — слот читается
   как фотозона у кресла, а не как серая заглушка */
.master__photo::before {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 72%; aspect-ratio: 1 / 1.18; opacity: 0.92;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 236'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%234b3620'/%3E%3Cstop offset='1' stop-color='%232e2012'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23g)'%3E%3Cellipse cx='100' cy='72' rx='42' ry='46'/%3E%3Cpath d='M100 124c-40 0-66 27-70 66-1 9 6 16 15 16h110c9 0 16-7 15-16-4-39-30-66-70-66z'/%3E%3C/g%3E%3C/svg%3E") bottom center / contain no-repeat;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.55));
}
/* латунная рамка фотозоны: внутренний кант 1px, как у зеркала в зале */
.master__photo::after {
  content: attr(data-mono);
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.14em;
  color: var(--gold); background: rgba(11, 9, 8, 0.72);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--brass);
  border-radius: 5px; padding: 4px 9px 4px 8px;
  backdrop-filter: blur(3px);
}
/* внутренний кант-рамка поверх фона (не мешает монограмме: это тень, не элемент) */
.master__photo {
  box-shadow: inset 0 0 0 1px rgba(214, 167, 84, 0.14), inset 0 -46px 60px -30px rgba(5, 3, 2, 0.8);
}
.master:hover .master__photo { box-shadow: inset 0 0 0 1px rgba(214, 167, 84, 0.3), inset 0 -46px 60px -30px rgba(5, 3, 2, 0.8); }
.master__body { padding: 22px 24px 26px; }
.master__exp {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 11px;
}
.master__body h3 { font-size: 1.3rem; font-weight: 500; color: var(--cream); margin-bottom: 9px; }
.master__body p { color: var(--mut); font-size: 0.94rem; margin: 0; }
.master__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.master__photo.photo-in img { opacity: 1; }
.master__photo.photo-in::before { content: none; }
.master__photo.photo-in::after { content: none; }

/* ---------- как работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
/* полюс-тик — фоном: ::before занят номером шага */
.step {
  position: relative; border-top: 1px solid var(--line); padding-top: 26px;
  background: var(--pole-fine) left top / 44px 3px no-repeat;
}
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: block; font-family: var(--display); font-weight: 600; font-size: 2.15rem;
  line-height: 1; letter-spacing: 0.02em;
  color: rgba(217, 169, 79, 0.14);
  -webkit-text-stroke: 1.2px var(--brass); margin-bottom: 16px;
}
.step h3 { font-size: 1.04rem; font-weight: 500; color: var(--cream); }
.step p { color: var(--mut); font-size: 0.93rem; margin: 0; }

/* ---------- соцпруф ---------- */
.proof { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: stretch; }
.quote {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(33, 23, 17, 0.9), rgba(17, 13, 10, 0.9));
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-card); overflow: hidden;
  /* цитата одной высоты с рейтинговой картой — содержимое по центру, без пустого низа */
  display: flex; flex-direction: column; justify-content: center;
}
.quote::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pole-fine);
}
/* вывесочная кавычка: контурная, за текстом — цитата читается как надпись на витрине */
.quote::after {
  content: '«'; position: absolute; right: 22px; top: 6px; z-index: 0;
  font-family: var(--display); font-weight: 600; font-size: 7.5rem; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1.4px rgba(192, 138, 62, 0.28);
  pointer-events: none;
}
.quote > * { position: relative; z-index: 1; }
.quote blockquote {
  margin: 0 0 20px; font-size: clamp(1.12rem, 1.75vw, 1.36rem); font-weight: 420;
  line-height: 1.5; color: var(--cream); letter-spacing: -0.005em;
}
.quote figcaption { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.rating {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-3);
  padding: 30px; display: flex; flex-direction: column; gap: 18px; justify-content: center;
}
.rating__score { display: flex; align-items: baseline; gap: 13px; }
.rating__num {
  font-family: var(--display); font-weight: 500; font-size: 3.4rem; line-height: 0.95;
  color: var(--gold); letter-spacing: 0.01em;
}
.rating__stars { color: var(--gold); letter-spacing: 4px; font-size: 1.1rem; opacity: 0.9; }
.rating__src { color: var(--dim); font-size: 0.9rem; margin: 0; }
.rating__row {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.92rem;
}
.rating__row span { color: var(--mut); }
.rating__row b { color: var(--cream); font-family: var(--mono); font-weight: 600; font-size: 0.92rem; }

/* ---------- запись ---------- */
.booking { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
.booking__aside h2 { font-size: clamp(1.95rem, 3.3vw, 2.7rem); color: var(--cream); }
.booking__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 15px; }
.booking__points li { display: flex; gap: 13px; color: var(--mut); font-size: 0.97rem; }
.booking__points li::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg);
  background: var(--pole); margin-top: 8px;
}
.form {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(217, 169, 79, 0.05), transparent 40%), var(--ink-3);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-card); overflow: hidden;
}
/* полюс-кром по верху формы — главная конверсия страницы */
.form::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pole);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mut);
}
.field input, .field select {
  font: inherit; font-weight: 400; color: var(--cream); background: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 13px 15px; min-height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; width: 100%;
}
.field input::placeholder { color: #857b67; } /* AA 4.76 на --ink */
.field select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: var(--ink-3); color: var(--text); }
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: #0e0b09;
  box-shadow: 0 0 0 3px rgba(217, 169, 79, 0.16);
}
.field--error input, .field--error select { border-color: #b8503f; }
.field__error { font-size: 12.5px; color: #d98a7c; min-height: 16px; }
.form .btn { width: 100%; margin-top: 8px; }
.form__legal {
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  margin: 15px 0 0; text-align: center; line-height: 1.5;
}
.booking-done { text-align: center; padding: 34px 10px; }
.booking-done__ring {
  width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--gold); font-size: 28px; font-family: var(--display);
  background: rgba(217, 169, 79, 0.07);
  box-shadow: 0 0 44px -8px rgba(217, 169, 79, 0.4);
}
.booking-done h3 { color: var(--cream); font-size: 1.35rem; }
.booking-done p { color: var(--mut); }
.booking-done__service { color: var(--gold); font-weight: 600; }

/* ---------- футер ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080606; padding: 60px 0 40px; position: relative; overflow: hidden; }
/* вывеска в подвале: контурное «ГАРДА» уходит под нижнюю кромку —
   фирменный знак без нового элемента разметки */
.site-footer::after {
  content: 'ГАРДА'; position: absolute; left: 50%; bottom: -0.34em; transform: translateX(-50%);
  z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(7rem, 22vw, 19rem); line-height: 1; letter-spacing: 0.06em;
  color: transparent; -webkit-text-stroke: 1.4px rgba(214, 167, 84, 0.1);
  white-space: nowrap;
}
.site-footer .wrap { position: relative; z-index: 1; }
@media (max-width: 860px) { .site-footer::after { font-size: 26vw; bottom: -0.3em; opacity: 0.8; } }
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; opacity: 0.26;
  background: var(--pole);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.site-footer h4 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 16px;
}
.site-footer p, .site-footer li { color: var(--mut); font-size: 0.93rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
/* тап-таргеты ≥44: строки футера кликабельны целиком */
.site-footer ul a { display: block; padding: 12px 0; color: var(--mut); }
.site-footer a:hover { color: var(--gold); }
.site-footer a[href^="tel"] { color: var(--gold); font-family: var(--mono); font-size: 0.95rem; }
.footer-about { margin-top: 18px; max-width: 34ch; }
.footer-demo {
  border-top: 1px solid var(--line); padding-top: 8px;
  display: flex; flex-wrap: wrap; gap: 0 28px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
}
/* ссылка одной высоты с соседями: без вертикального паддинга строка не «ломается»,
   тап-таргет добирается min-height */
.footer-demo > span, .footer-demo a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-demo a { color: var(--mut); border-bottom: 1px dotted currentColor; }
.footer-demo a:hover { color: var(--gold); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__kicker, .hero__title, .hero__lead, .hero__actions, .hero__stats { animation: none; }
  .hero__scroll::after { animation: none; }
  .btn, .btn::after, .master, .pain, .price-row::before, .site-nav a::after { transition: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .proof { grid-template-columns: 1fr; }
  /* планшет: пяти пунктам навигации тесно — ужимаем шаг, а не переносим шапку */
  .site-header__in { gap: 16px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 10px 9px; font-size: 13.5px; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .site-nav { display: none; }
  .pain-grid, .masters, .booking { grid-template-columns: 1fr; }
  .price-cols { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 34px); }
  .hero__title { max-width: 13ch; }
  .hero__actions { margin-bottom: 44px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  /* надзаголовок в одну строку на 390: плотнее трекинг, короче полюс-тире */
  .hero__kicker { font-size: 10px; letter-spacing: 0.16em; gap: 10px; margin-bottom: 20px; }
  .hero__kicker::before { width: 34px; }
  .hero__stats { gap: 16px 20px; }
  .stat { padding-left: 13px; }
  .stat__num { font-size: 1.62rem; }
  .hero__lead { margin-bottom: 30px; }
  .brand__sub { display: none; }
  .price-row { padding-left: 22px; }
  .price-group__head { padding-left: 22px; }
}
