/* =============================================================================
   Фактор Роста Про+ — визуальная система «панель управления».
   Глубокий петролевый графит, сигнальный янтарь, модульная сетка.
   Шрифты локальные, внешних загрузок нет.
   ========================================================================== */

/* --- Шрифты ---------------------------------------------------------------
   Golos Text — текст, Unbounded — заголовки и числа.
   Оба вариативные (400–700), подключены только используемые наборы символов. */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-text-latin-ext.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: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-text-latin.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: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/unbounded-latin.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;
}

/* --- Токены --------------------------------------------------------------- */

:root {
  /* Цвет */
  --ink-900: #0b1416;
  --ink-800: #0f1c1f;
  --ink-700: #16292d;
  --ink-600: #1e3a3f;
  --ink-500: #2b4d53;
  --paper:   #f1f3f2;
  --paper-2: #e7ebea;
  --white:   #ffffff;
  --line:    #d7dedc;
  --line-strong: #bcc7c5;

  --text:          #0f1c1f;
  --text-muted:    #4c5f63;
  --on-dark:       #eef2f1;
  --on-dark-muted: #a3b6ba;

  --signal:      #f2a71b;
  --signal-600:  #b87a05;
  --signal-soft: #fcefd2;

  /* Типографика */
  --font-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-eyebrow: 0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1rem;
  --fs-lead:    clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  --fs-h3:      clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --fs-h2:      clamp(1.625rem, 1.32rem + 1.35vw, 2.5rem);
  --fs-h1:      clamp(1.875rem, 1.25rem + 2.8vw, 3.5rem);
  --fs-metric:  clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);

  /* Ритм */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --container: 1200px;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(11, 20, 22, .06), 0 2px 8px rgba(11, 20, 22, .04);
  --shadow-md: 0 2px 4px rgba(11, 20, 22, .05), 0 12px 32px rgba(11, 20, 22, .08);
  --shadow-lg: 0 8px 24px rgba(11, 20, 22, .14), 0 32px 64px rgba(11, 20, 22, .18);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Сброс и база --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

::selection { background: var(--signal); color: var(--ink-900); }

/* --- Каркас --------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }
.section--tint { background: var(--paper-2); }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px; left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--signal);
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* Надзаголовок секции */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: 26px; height: 2px;
  background: var(--signal);
}
.section--dark .eyebrow { color: var(--on-dark-muted); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head p {
  margin-top: var(--sp-4);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.section--dark .section-head p { color: var(--on-dark-muted); }

/* --- Кнопки --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--signal);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #ffb833; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink-800); background: var(--white); }

.section--dark .btn--ghost { color: var(--on-dark); border-color: var(--ink-500); }
.section--dark .btn--ghost:hover { background: var(--ink-700); border-color: var(--ink-500); }

.btn--sm { padding: 0.625rem 1.125rem; font-size: var(--fs-small); white-space: nowrap; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- Шапка ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 243, 242, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(241, 243, 242, .96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
  transition: height .25s var(--ease);
}
.site-header.is-stuck .site-header__inner { height: 62px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo__name em { font-style: normal; color: var(--signal-600); }
.logo__tag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(0.5rem, 1.3vw, 1.5rem); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after,
.site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link.is-current { color: var(--text); }
.site-nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.header__phone {
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}
.header__phone:hover { color: var(--signal-600); }

/* Мессенджеры — рисуются из config.js; пустой список не занимает места */
.messengers { display: flex; align-items: center; gap: var(--sp-2); }
.messengers:empty { display: none; }
.messengers__link {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.messengers__link svg { width: 17px; height: 17px; }
.messengers__link:hover { background: var(--ink-800); border-color: var(--ink-800); color: var(--white); }

/* Бургер */
.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ''; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after  { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* --- Первый экран --------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1rem + 6vw, 5rem) clamp(2.5rem, 1rem + 4vw, 4rem);
  overflow: hidden;
}
/* Разметочная сетка на фоне — отсылка к чертежу системы */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 28, 31, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 28, 31, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__title span { color: var(--signal-600); }

.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.hero__note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--signal-600); }

/* --- Панель системы (ключевой элемент) ------------------------------------ */

.panel {
  background: var(--ink-900);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ink-600);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.panel__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(242, 167, 27, .18);
  flex-shrink: 0;
}

.panel__list { padding: var(--sp-2) 0; }

.panel__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.6875rem var(--sp-5);
  text-decoration: none;
  color: var(--on-dark);
  transition: background-color .18s var(--ease);
}
.panel__link:hover { background: var(--ink-700); }
.panel__link:hover .panel__chip { border-color: var(--signal); background: var(--signal); }

/* Квадрат-разъём: модуль «встаёт на место» */
.panel__chip {
  flex-shrink: 0;
  width: 11px; height: 11px;
  border: 2px solid var(--ink-500);
  border-radius: 2px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.panel__name { font-size: var(--fs-small); font-weight: 500; }
.panel__leader {
  flex: 1 1 auto;
  min-width: 12px;
  height: 1px;
  border-bottom: 1px dashed var(--ink-600);
}
.panel__value {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--signal);
  white-space: nowrap;
}

.panel__foot {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--ink-600);
}
.panel__slogan {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.panel__hint {
  margin-top: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}

/* Сборка панели при загрузке */
.js .panel__item { opacity: 0; transform: translateX(-10px); }
.js .panel.is-assembled .panel__item {
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.js .panel.is-assembled .panel__item:nth-child(1) { transition-delay: .05s; }
.js .panel.is-assembled .panel__item:nth-child(2) { transition-delay: .12s; }
.js .panel.is-assembled .panel__item:nth-child(3) { transition-delay: .19s; }
.js .panel.is-assembled .panel__item:nth-child(4) { transition-delay: .26s; }
.js .panel.is-assembled .panel__item:nth-child(5) { transition-delay: .33s; }
.js .panel.is-assembled .panel__item:nth-child(6) { transition-delay: .40s; }

/* --- Показатели ----------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line-strong);
}
.metrics__value {
  font-family: var(--font-display);
  font-size: var(--fs-metric);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.metrics__value small { font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; }
.metrics__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-wrap: balance;
}
.metrics__foot {
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.metrics__foot b { color: var(--text); font-weight: 600; }

/* --- Услуги --------------------------------------------------------------- */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--sp-5);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
/* Рейка слева — модуль пристыкован к системе */
.service::before {
  content: '';
  position: absolute;
  top: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  bottom: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  left: -1px;
  width: 3px;
  background: var(--signal);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .28s var(--ease);
}
.service:hover,
.service:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service:hover::before,
.service:focus-within::before,
.service:target::before { transform: scaleY(1); }
.service:target { border-color: var(--signal); }

.service__icon { width: 32px; height: 32px; color: var(--ink-700); }
.service__title { margin-top: var(--sp-1); }
.service__text { color: var(--text-muted); }
.service__badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.3125rem 0.625rem;
  background: var(--signal-soft);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7a5100;
}

.services__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.services__cta p { color: var(--text-muted); font-size: var(--fs-small); }

/* --- Как работаем --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  counter-reset: step;
}
.step { position: relative; padding-top: var(--sp-6); }
/* Общая рейка маршрута */
.step::before {
  content: '';
  position: absolute;
  top: 5px; left: 0; right: calc(var(--sp-5) * -1);
  height: 1px;
  background: var(--ink-600);
}
.step:last-child::before { right: 0; }
.step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--signal);
}
.step__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-500);
}
.step__time {
  display: inline-block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--signal);
}
.step__title { margin-bottom: var(--sp-2); }
.step__text { font-size: var(--fs-small); color: var(--on-dark-muted); }

/* --- О компании ----------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

/* Место под реальный портрет руководителя, пропорция 4:5.
   Заменить .portrait__placeholder на <img src="..." width="480" height="600"
   alt="Азат Фахуртдинов, руководитель КК «Фактор Роста Про+»" loading="lazy"> */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink-700) 0%, var(--ink-900) 60%, #1a3b32 100%);
}
.portrait__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: var(--sp-1);
  padding: var(--sp-5);
  color: var(--on-dark);
}
.portrait__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portrait__name {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portrait__role { position: relative; font-size: var(--fs-small); color: var(--on-dark-muted); }

.about__text > * + * { margin-top: var(--sp-4); }
.about__text p { color: var(--text-muted); }
.about__text .about__first { font-size: var(--fs-lead); color: var(--text); }

.pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.pains li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
}
.pains li::before {
  content: '';
  flex: 0 0 auto;
  width: 3px;
  margin-block: 2px;
  background: var(--signal);
  border-radius: 2px;
}

/* --- Почему выбирают ------------------------------------------------------ */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--sp-5) var(--sp-6);
}
.reason { padding-top: var(--sp-4); border-top: 2px solid var(--ink-800); }
.reason__title { margin-bottom: var(--sp-2); }
.reason__text { font-size: var(--fs-small); color: var(--text-muted); }

/* --- Вопросы -------------------------------------------------------------- */

.faq { display: grid; gap: var(--sp-3); max-width: 52rem; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); }

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--signal-600); }

.faq__sign {
  position: relative;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  margin-inline-start: auto;
}
.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--ink-700);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  color: var(--text-muted);
  max-width: 44rem;
}

/* --- Отзывы --------------------------------------------------------------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: var(--sp-5);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
}
.reviews:empty { display: none; }

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin: 0;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review__stars { display: inline-flex; gap: 3px; color: var(--signal); font-size: 1rem; line-height: 1; }
.review__stars i { width: 1em; height: 1em; }
.review__stars svg { width: 100%; height: 100%; display: block; }
.review__text { margin: 0; color: var(--text); font-size: var(--fs-body); }
.review__text::before { content: '«'; }
.review__text::after  { content: '»'; }
.review__author { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: var(--sp-2); }
.review__name { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.review__role { font-size: var(--fs-small); color: var(--text-muted); }

/* Пустое состояние — пока отзывов нет */
.reviews-empty {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.reviews-empty__title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.01em; }
.reviews-empty p { margin-top: var(--sp-2); color: var(--text-muted); }

/* Карточка формы отзыва */
.reviews__form-wrap { max-width: 44rem; }
.review-card {
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.review-card__title { margin-bottom: var(--sp-2); }
.review-card__hint { margin-bottom: var(--sp-5); font-size: var(--fs-small); color: var(--text-muted); }

.review-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}
.field__input--area { resize: vertical; min-height: 6.5rem; font-family: inherit; line-height: 1.5; }

/* Звёзды-рейтинг во вводе: радиокнопки в обратном порядке + hover/checked слева-направо */
.rating { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
.rating .field__label { margin-bottom: var(--sp-2); }
.rating__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating__input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}
.rating__star {
  width: 30px; height: 30px;
  cursor: pointer;
  color: var(--line-strong);
  transition: color .12s var(--ease), transform .12s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5l2.9 6.06 6.6.86-4.87 4.53 1.25 6.55L12 17.9l-5.88 3.15 1.25-6.55L2.5 9.42l6.6-.86z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2.5l2.9 6.06 6.6.86-4.87 4.53 1.25 6.55L12 17.9l-5.88 3.15 1.25-6.55L2.5 9.42l6.6-.86z'/%3E%3C/svg%3E") center / contain no-repeat;
  background: currentColor;
}
.rating__stars:hover .rating__star { color: var(--signal); }
.rating__star:hover ~ .rating__star { color: var(--line-strong); }
.rating__input:checked ~ .rating__star { color: var(--signal); }
.rating__input:focus-visible + .rating__star { outline: 3px solid var(--signal); outline-offset: 2px; }
.rating__star:hover { transform: scale(1.1); }

/* --- Контакты и форма ----------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.contact__lead {
  margin-top: var(--sp-4);
  max-width: 32rem;
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
}

.contact__list { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.contact__row { display: grid; gap: var(--sp-1); }
.contact__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact__value {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact__value:hover { color: var(--signal); }
.contact__messengers { margin-top: var(--sp-3); }

/* Карточка формы */
.form-card {
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-card__title { margin-bottom: var(--sp-2); }
.form-card__hint { margin-bottom: var(--sp-5); font-size: var(--fs-small); color: var(--text-muted); }

.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field__label { font-size: var(--fs-small); font-weight: 600; }
.field__label span { font-weight: 400; color: var(--text-muted); }

.field__input {
  width: 100%;
  padding: 0.8125rem var(--sp-4);
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field__input::placeholder { color: #8b9b9e; }
.field__input:hover { border-color: var(--text-muted); }
.field__input:focus { background: var(--white); border-color: var(--ink-700); }
.field__input[aria-invalid="true"] { border-color: #b3261e; background: #fdf5f4; }

.field__error {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b3261e;
}
.field__error:not(:empty) { display: block; }

/* Ловушка для ботов — не видна человеку и не читается скринридером */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--signal-600);
  flex-shrink: 0;
}
.consent a { color: var(--text); }
.consent .field__error { grid-column: 2; }

.form__status {
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-error { background: #fdecea; color: #8c1d18; }
.form__status.is-success { background: #e7f4ec; color: #14532d; }
.form__status a { color: inherit; font-weight: 600; }

.form__legal { margin-top: var(--sp-4); font-size: 0.75rem; color: var(--text-muted); }

/* --- Модальное окно ------------------------------------------------------- */

.modal {
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
.modal::backdrop { background: rgba(11, 20, 22, .6); backdrop-filter: blur(3px); }
.modal__inner { position: relative; overflow-y: auto; max-height: calc(100dvh - 2rem); border-radius: var(--radius-lg); }
.modal__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.modal__close:hover { background: var(--paper-2); border-color: var(--line-strong); }
.modal__close svg { width: 16px; height: 16px; }

/* --- Подвал --------------------------------------------------------------- */

.site-footer {
  background: var(--ink-900);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--sp-6);
  border-top: 1px solid var(--ink-700);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}
.site-footer .logo__name { color: var(--on-dark); }
.site-footer .logo__name em { color: var(--signal); }
.site-footer .logo__tag { color: var(--on-dark-muted); }
.site-footer .messengers__link { border-color: var(--ink-600); color: var(--on-dark); }
.site-footer .messengers__link:hover { background: var(--signal); border-color: var(--signal); color: var(--ink-900); }

.site-footer__about {
  margin-top: var(--sp-4);
  max-width: 24rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.site-footer__messengers { margin-top: var(--sp-4); }

.site-footer__title {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.site-footer__list { display: grid; gap: var(--sp-2); }
.site-footer__list a {
  font-size: var(--fs-small);
  color: var(--on-dark);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.site-footer__list a:hover { color: var(--signal); }
.site-footer__list span { font-size: var(--fs-small); color: var(--on-dark-muted); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-700);
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
}
.site-footer__bottom a { color: var(--on-dark-muted); }
.site-footer__bottom a:hover { color: var(--signal); }

/* --- Страница политики ---------------------------------------------------- */

.site-header__inner--simple .header__actions { margin-inline-start: auto; }
.site-footer--slim { padding-block: var(--sp-6); }
.site-footer--slim .site-footer__bottom { margin-top: 0; padding-top: 0; border-top: none; }


.legal { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.legal__inner { max-width: 46rem; }
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
}
.legal__back:hover { color: var(--text); }
.legal__meta { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--text-muted); }
.legal h2 {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  margin-bottom: var(--sp-4);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}
.legal h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: var(--sp-3); }
.legal ol, .legal ul { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.legal ol { counter-reset: legal; }
.legal ol > li { padding-left: 1.75rem; position: relative; counter-increment: legal; }
.legal ol > li::before {
  content: counter(legal) '.';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--text);
}
.legal ul > li { padding-left: 1.25rem; position: relative; }
.legal ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 2px;
  background: var(--signal);
}
.legal a { color: var(--text); }

/* Незаполненные реквизиты видно сразу — их нельзя выкатить в прод */
.todo {
  padding: 0.0625rem 0.375rem;
  background: var(--signal-soft);
  border: 1px dashed var(--signal-600);
  border-radius: 4px;
  font-size: 0.9em;
  color: #7a5100;
  white-space: nowrap;
}

/* --- Появление при прокрутке ---------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .panel { max-width: 34rem; }
  .about__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); }
}

@media (max-width: 1080px) {
  :root { --header-h: 68px; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: block;
    padding: var(--sp-4) 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link.is-current { color: var(--signal-600); }
  .site-nav__cta { display: block; margin-top: var(--sp-5); }
  .site-nav__cta .btn { width: 100%; }

  .burger { display: grid; place-items: center; }
  .header__actions { margin-inline-start: auto; }
  .header__actions .messengers { display: none; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sp-6); }
  .step:nth-child(2)::before { right: 0; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 17rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step::before { right: 0; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .hero__actions .btn { width: 100%; }
  .services__cta .btn { width: 100%; }
  .review-form__row { grid-template-columns: minmax(0, 1fr); }
  .review-form [data-submit] { width: 100%; }
}

@media (max-width: 380px) {
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 0.875rem; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
}

/* --- Уважение к настройке «меньше движения» ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .panel__item { opacity: 1; transform: none; }
  .btn:hover, .service:hover { transform: none; }
}

/* --- Печать --------------------------------------------------------------- */

@media print {
  .site-header, .modal, .hero__actions, .services__cta, .form-card { display: none; }
  body { background: #fff; }
  .section--dark, .site-footer { background: #fff; color: #000; }
}
