/* ============================================================================
   Третий черновик: приёмы с референса заказчика (lvforce.com).

   ЧТО ВЗЯТО С РЕФЕРЕНСА. Я разобрала его устройство: это тёмный сайт
   (фон #09090b, акцент янтарный #d97706, шрифты Geist Sans + Geist Mono,
   границы — белый на 6% прозрачности). Из него взяты приёмы, а не цвета:
   заказчик выбрал светлое оформление, поэтому тёмную тему не копируем.

     • три размытых пятна на фоне — медленно плывут, дают «живость»;
     • моноширинный шрифт для мелких технических подписей;
     • панель с цифрами: заголовок, подпись справа, плитки на волосяных линиях;
     • значок-обводка над заголовком;
     • часто задаваемые вопросы с номерами;
     • бегущая строка с тем, что мы умеем;
     • крупные карточки услуг с фотографиями по две в ряд;
     • пульсирующая точка «работаем круглосуточно».

   Всё это подключается только при сборке с ключом --черновик 3.
   ========================================================================== */

/* --- 1. Моноширинный шрифт для технических подписей ---------------------- */

:root {
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono",
               "Roboto Mono", Menlo, Consolas, monospace;
}

.eyebrow,
.trust__value,
.fact__label,
.chip,
.marquee,
.faq__num,
.stat-panel__label,
.stat-panel__title,
.stat-panel__tag {
  font-family: var(--font-mono);
}

.eyebrow,
.chip,
.fact__label,
.stat-panel__label,
.stat-panel__title,
.stat-panel__tag {
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- 2. Размытые пятна на фоне ------------------------------------------ */

/* Медленно плывущие цветные круги. На светлом фоне — очень бледные,
   чтобы читались как тепло в бумаге, а не как цветное пятно. */
.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  filter: blur(90px);
}

.blob--1 { width: 520px; height: 520px; top: -260px; right: -120px; opacity: .07; animation: blob-drift 22s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; bottom: -220px; left: -140px; opacity: .05; animation: blob-drift 28s ease-in-out infinite reverse; }
.blob--3 { width: 320px; height: 320px; top: 30%; left: 42%; opacity: .035; animation: blob-drift 34s ease-in-out infinite; }

@keyframes blob-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(40px, -30px, 0) scale(1.08); }
  66%      { transform: translate3d(-30px, 25px, 0) scale(.95); }
}

/* Содержимое — поверх пятен */
.hero > .container { position: relative; z-index: 1; }

/* --- 3. Значок-обводка над заголовком ----------------------------------- */

.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong, #D8DCE2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .7);
}

.eyebrow--pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

/* --- 4. Панель с цифрами ------------------------------------------------ */

.stat-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px 24px;
}

.stat-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.stat-panel__title { font-size: 13px; font-weight: 600; color: var(--ink); }
.stat-panel__tag { font-size: 12px; color: var(--red); font-weight: 600; }

.stat-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);      /* линия появляется из зазора между плитками */
}

.stat-panel__cell {
  background: var(--surface);
  padding: 16px 18px 18px;
}

.stat-panel__cell:first-child { padding-left: 0; }

.stat-panel__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.stat-panel__label { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }

.stat-panel__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- 5. Значки-плашки под кнопками -------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
}

.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

/* --- 6. Бегущая строка -------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.marquee__item { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.marquee__item::after { content: "·"; color: var(--line-strong, #D8DCE2); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* «Уменьшить движение» сознательно не останавливает строку, пятна и точки: так решил владелец сайта. */

/* --- 7. Часто задаваемые вопросы ---------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  transition: color .16s ease;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--red); }

.faq__num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  flex: none;
  padding-top: 3px;
}

.faq__q {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: -.01em;
  flex: 1;
}

.faq__mark {
  flex: none;
  width: 18px;
  height: 18px;
  position: relative;
  align-self: center;
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .2s ease;
}

.faq__mark::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; }
.faq__mark::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; }

.faq__item[open] .faq__mark::after { transform: scaleY(0); }

.faq__a {
  padding: 0 0 26px 44px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

/* --- 8. Крупные карточки услуг с фотографиями --------------------------- */

.service-big {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .18s ease, transform .22s cubic-bezier(.22,.61,.36,1);
}

.service-big:hover { border-color: var(--line-strong, #C9CED6); transform: translateY(-2px); }

.service-big__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.service-big__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.service-big:hover .service-big__media img { transform: scale(1.04); }

.service-big__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }

.service-big__icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--red);
  margin-bottom: 16px;
  flex: none;
}

.service-big h3 { font-size: 21px; margin-bottom: 10px; }
.service-big p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 18px; }

.service-big__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--red);
}

@media (max-width: 900px) {
  .stat-panel__grid { grid-template-columns: 1fr; }
  .stat-panel__cell { padding-left: 18px; }
  .faq__a { padding-left: 0; }
}

@media (max-width: 620px) {
  .blob { filter: blur(60px); }
}

/* --- Вход для сотрудников (в CRM на /crm) ------------------------------- */
/* Последний пункт меню, отделён тонкой линией, чтобы не спорить с основными разделами. */
.header__signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}
.header__signin::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--line);
}
@media (max-width: 1080px) {
  /* In the burger menu: a separate row under the sections. */
  .header__nav.is-open .header__signin { margin: 8px 0 0; padding-top: 15px; border-top: 1px solid var(--line); border-radius: 0; }
  .header__nav.is-open .header__signin::before { display: none; }
}
