/* Стили нового лендинга (реворк по макету Marcel Landing.dc.html).
   Легаси-страницы (/hr, /privacy, /cookie) используют старый styles.css. */

body {
  margin: 0;
  background: #f6f6f7;
  color: #17171c;
  font-family: "Golos Text", system-ui, sans-serif;
}

.ld * { box-sizing: border-box; }
.ld { background: #f6f6f7; position: relative; isolation: isolate; overflow-x: clip; }
.ld a { color: inherit; text-decoration: none; }

.ld-mono {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: #9a9aa4;
}

/* --- Анимации из макета --- */
@keyframes mgDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes rvUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  [data-screen-label]:not([data-plx-scene]):not(nav) > *:not([data-splx]):not([data-rv-parent]):not([data-split]) {
    animation: rvUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 5% entry 32%;
  }
  [data-rv] {
    animation: rvUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 8% entry 38%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ld *, .ld *::before, .ld *::after { animation: none !important; transition: none !important; }
}

/* --- Кнопки --- */
.ld-btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 10px 20px;
  font: 600 14px/1.2 "Golos Text", system-ui, sans-serif;
  cursor: pointer;
  text-align: center;
}
/* .ld a.* — чтобы цвет не перебивался правилом «.ld a { color: inherit }» */
.ld-btn-dark, .ld a.ld-btn-dark { background: #17171c; color: #fff; }
.ld-btn-light, .ld a.ld-btn-light { background: #fff; color: #17171c; border: 1px solid #e0e0e5; }
.ld-btn-lg { padding: 15px 28px; border-radius: 12px; font-size: 15px; }

/* --- Навигация --- */
.ld-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 56px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececf0;
  z-index: 50;
  transition: box-shadow 0.3s ease;
}
.ld-logo { display: flex; align-items: center; gap: 10px; }
.ld-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #4d4d59, #17171c 62%, #000);
  flex: none;
}
.ld-logo b { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.ld-logo b span { color: #9a9aa4; }
.ld-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 500;
  color: #6b6b76;
}
.ld-nav-links a:hover { color: #17171c; }
.ld-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Мобильное меню: нативный details, без JS */
.ld-nav-mobile { display: none; position: relative; }
.ld-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  border: 1px solid #e0e0e5;
  border-radius: 10px;
  background: #fff;
  font: 600 14px/1 "Golos Text", sans-serif;
}
.ld-nav-mobile summary::-webkit-details-marker { display: none; }
.ld-nav-mobile[open] > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 20, 40, 0.12);
}
.ld-nav-mobile a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3d3d46;
}
.ld-nav-mobile a:hover { background: #f6f6f7; color: #17171c; }

/* --- Hero --- */
.ld-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(480px, 640px) minmax(420px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 64px 56px 80px;
  background: #fff;
  border-bottom: 1px solid #ececf0;
}
.ld-hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.ld-hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #111114;
  text-wrap: balance;
}
.ld-hero-sub { margin: 22px 0 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: #6b6b76; }
.ld-hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.ld-hero-note { font-size: 14px; font-weight: 500; color: #6b6b76; }
.ld-hero-stats { display: flex; gap: 44px; margin-top: 56px; }
.ld-hero-stats .ld-vr { width: 1px; background: #ececf0; }
.ld-stat-num { font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.ld-stat-label { font-size: 13.5px; color: #9a9aa4; margin-top: 4px; max-width: 210px; }

.ld-hero-viz { position: relative; align-self: stretch; min-height: 640px; margin: -64px -56px -80px 0; }
.ld-hero-viz-clip { position: absolute; inset: 0; overflow: hidden; }
.ld-chip {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid #efeff1;
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 12px 32px rgba(20, 20, 40, 0.08);
}
.ld-chip small { font-size: 11px; letter-spacing: 0.08em; color: #9a9aa2; }
.ld-chip b { font-size: 15px; font-weight: 600; color: #111114; }

/* --- Секции --- */
.ld-sec { padding: 88px 56px 0; }
.ld-h2 {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #17171c;
  max-width: 820px;
}
.ld-lead { margin: 14px 0 0; max-width: 600px; font-size: 16px; line-height: 1.6; color: #6b6b76; }

.ld-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.ld-card { padding: 30px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; }
.ld-card-dark { padding: 30px; background: #17171c; border-radius: 14px; color: #fff; }
.ld-card h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: #17171c; }

/* Список с тире */
.ld-items { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; font-size: 14.5px; color: #6b6b76; line-height: 1.5; }
.ld-items > div { display: flex; gap: 10px; }
.ld-items > div::before { content: "—"; color: #17171c; flex: none; }
.ld-card-dark .ld-items, .ld-plan.popular .ld-items { color: #c9c9d2; }
.ld-card-dark .ld-items > div::before, .ld-plan.popular .ld-items > div::before { color: #fff; }

/* Список с галочками */
.ld-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: 15px; color: #3d3d46; line-height: 1.5; }
.ld-checks > div { display: flex; gap: 10px; }
.ld-checks > div::before { content: "✓"; color: #17171c; font-weight: 700; flex: none; }

/* Нумерованные строки в белой карточке (проблема) */
.ld-listcard { margin-top: 30px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; overflow: hidden; }
.ld-listcard-row { display: flex; gap: 20px; align-items: center; padding: 22px 28px; border-bottom: 1px solid #ececf0; }
.ld-listcard-row:last-child { border-bottom: 0; }
.ld-listcard-row .ld-mono { font-size: 13px; width: 28px; flex: none; }
.ld-listcard-row b { font-size: 16px; font-weight: 600; }

/* Сравнение (масштабируемость) */
.ld-compare { margin-top: 32px; padding: 34px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.ld-tag { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 8px; background: #f6f6f7; border: 1px solid #e6e6ea; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #17171c; }
.ld-bar-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #9a9aa4; margin-bottom: 8px; }
.ld-bar-track { height: 8px; border-radius: 4px; background: #ececf0; }
.ld-bar-fill { height: 100%; border-radius: 4px; background: #c2c2cb; }
.ld-bar-fill.dark { background: #17171c; }

/* Таблица ниш */
.ld-table { margin-top: 32px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; overflow: hidden; }
.ld-trow { display: grid; grid-template-columns: 60px 300px 1fr 40px; gap: 20px; align-items: center; padding: 20px 28px; border-bottom: 1px solid #ececf0; }
.ld-trow:last-child { border-bottom: 0; }
.ld-trow.head { padding: 14px 28px; font-size: 12.5px; color: #9a9aa4; }
.ld-trow b { font-size: 15px; font-weight: 600; }
.ld-trow p { margin: 0; font-size: 14px; color: #6b6b76; line-height: 1.5; }
.ld-trow .arr { color: #9a9aa4; }

/* Аудио-плееры */
.ld-audio { padding: 22px 26px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; display: flex; align-items: center; gap: 16px; }
.ld-play {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #17171c;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-audio-body { flex: 1; min-width: 0; }
.ld-audio-title { font-size: 15px; font-weight: 600; }
.ld-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 8px; overflow: hidden; }
.ld-wave i { flex: none; width: 3px; border-radius: 2px; background: #c2c2cb; }
.ld-wave i.on { background: #17171c; }

/* Кейс */
.ld-case { margin-top: 32px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; padding: 38px; }
.ld-case h3 { margin: 0; font-size: 20px; font-weight: 700; }
.ld-before { padding: 26px; border-radius: 12px; background: #f6f6f7; border: 1px solid #ececf0; }
.ld-after { padding: 26px; border-radius: 12px; background: #17171c; }
.ld-before ul, .ld-after ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.ld-before li { display: flex; gap: 10px; color: #6b6b76; }
.ld-before li::before { content: "✕"; color: #9a9aa4; flex: none; }
.ld-after li { display: flex; gap: 10px; color: #e6e6ec; }
.ld-after li::before { content: "✓"; color: #fff; flex: none; }

/* Цены */
.ld-plan { position: relative; padding: 32px 30px; background: #fff; border: 1px solid #e6e6ea; border-radius: 16px; display: flex; flex-direction: column; }
.ld-plan.popular { background: #17171c; border-color: #17171c; color: #fff; }
.ld-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0e0e5;
  color: #17171c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(23, 23, 28, 0.12);
}
.ld-plan h3 { margin: 0; font-size: 16px; font-weight: 700; color: inherit; }
.ld-price { margin-top: 14px; font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.ld-price span { font-size: 14px; font-weight: 500; color: #9a9aa4; }
.ld-plan.popular .ld-price span, .ld-plan.popular .ld-plan-sub, .ld-plan.popular .ld-plan-fit { color: #8d8d98; }
.ld-plan-sub { margin-top: 6px; font-size: 13.5px; color: #9a9aa4; }
.ld-plan .ld-items { font-size: 14px; margin-top: 16px; flex: 1; }
.ld-plan-fit { margin-top: 16px; font-size: 12.5px; color: #9a9aa4; line-height: 1.5; }
.ld-plan .ld-btn { margin-top: 20px; padding: 13px; border-radius: 10px; }
.ld-plan .ld-btn-light { border-color: #d9d9df; }
.ld-plan.popular .ld-btn-light { border: 0; font-weight: 700; }

/* Возражения */
.ld-qa { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; padding: 26px 28px; border-bottom: 1px solid #ececf0; }
.ld-qa:last-child { border-bottom: 0; }
.ld-qa b { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ld-qa p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #6b6b76; }

/* Финальный CTA */
.ld-cta { position: relative; margin: 88px 56px 0; padding: 72px 56px; border-radius: 20px; background: #17171c; text-align: center; overflow: hidden; }
.ld-cta-sphere {
  position: absolute;
  left: 50%;
  bottom: -240px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #5a5a66, #26262e 60%, #0a0a0e);
  transform: translateX(-50%);
  opacity: 0.8;
  animation: mgDrift 10s ease-in-out infinite;
}
.ld-cta > div { position: relative; }
.ld-cta h2 { margin: 0 auto; max-width: 800px; font-weight: 700; font-size: 36px; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.ld-cta p { margin: 18px auto 0; max-width: 580px; font-size: 16px; line-height: 1.6; color: #c9c9d2; }
.ld-cta p.strong { margin-top: 8px; color: #fff; font-weight: 600; }
.ld-cta-buttons { display: flex; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ld-cta .ld-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.ld-cta-feats { display: flex; justify-content: center; gap: 26px; margin-top: 24px; font-size: 13.5px; color: #c9c9d2; flex-wrap: wrap; }

/* FAQ */
.ld-faq-card { padding: 24px 26px; background: #fff; border: 1px solid #e6e6ea; border-radius: 14px; }
.ld-faq-card b { font-size: 15px; font-weight: 700; }
.ld-faq-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #6b6b76; }
.ld-quote { margin: 40px auto 0; max-width: 720px; text-align: center; font-size: 16.5px; line-height: 1.6; color: #3d3d46; font-style: italic; }

/* Футер */
.ld-footer { margin-top: 88px; padding: 56px 56px 40px; background: #fff; border-top: 1px solid #e6e6ea; }
.ld-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ld-footer h2 { margin: 0; font-weight: 700; font-size: 26px; letter-spacing: -0.015em; }
.ld-footer-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 15px; color: #3d3d46; }
.ld-footer-cta { text-align: right; }
.ld-footer-cta p { margin: 0; font-size: 14px; color: #6b6b76; }
.ld-footer-cta .ld-btn { margin-top: 14px; font-weight: 700; }
.ld-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #ececf0; font-size: 12.5px; color: #9a9aa4; flex-wrap: wrap; }
.ld-footer-bottom a:hover { color: #17171c; }

/* --- Модалка консультации (нативный dialog) --- */
.ld-modal { border: 0; border-radius: 18px; padding: 0; max-width: 440px; width: calc(100% - 32px); }
.ld-modal::backdrop { background: rgba(15, 15, 20, 0.55); backdrop-filter: blur(2px); }
.ld-modal-inner { padding: 30px; font-family: "Golos Text", system-ui, sans-serif; color: #17171c; position: relative; }
.ld-modal h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ld-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #9a9aa4;
  cursor: pointer;
  padding: 6px;
}
.ld-field { margin-bottom: 14px; }
.ld-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3d3d46; }
.ld-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d9d9df;
  border-radius: 10px;
  font: 500 14px "Golos Text", sans-serif;
  color: #17171c;
  background: #fff;
}
.ld-field input:focus { outline: 2px solid #17171c; outline-offset: -1px; }
.ld-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #6b6b76; line-height: 1.5; margin-bottom: 18px; }
.ld-consent input { margin-top: 2px; }
.ld-consent a { text-decoration: underline; }
.ld-modal .ld-btn { width: 100%; }
.ld-modal-success { text-align: center; padding: 24px 0 8px; }
.ld-modal-success .mark { font-size: 44px; }
.ld-modal-success p { color: #3d3d46; font-size: 15px; line-height: 1.6; }
.ld-form-error { color: #c03b2b; font-size: 13px; margin: 0 0 12px; }

/* --- Cookie-баннер --- */
.ld-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: #17171c;
  color: #c9c9d2;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgba(20, 20, 40, 0.25);
}
.ld-cookie p { margin: 0; max-width: 720px; }
.ld-cookie a { color: #fff; text-decoration: underline; }
.ld-cookie .ld-btn { flex: none; }

/* --- Адаптив --- */
@media (max-width: 1180px) {
  .ld-nav { padding: 16px 24px; }
  .ld-nav-links { display: none; }
  .ld-nav-mobile { display: block; }
  .ld-hero { grid-template-columns: 1fr; padding: 48px 24px 0; }
  .ld-hero-viz { min-height: 480px; margin: 0 -24px; }
  .ld-sec { padding: 72px 24px 0; }
  .ld-cta { margin: 72px 24px 0; padding: 56px 24px; }
  .ld-footer { padding: 48px 24px 32px; }
  .ld-grid4 { grid-template-columns: 1fr 1fr; }
  .ld-compare { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ld-grid2, .ld-grid3, .ld-grid4 { grid-template-columns: 1fr; }
  .ld-h2 { font-size: 28px; }
  .ld-nav { gap: 10px; }
  .ld-nav-actions .ld-btn { display: none; } /* «HR-версия» и «Попробовать» есть в мобильном меню */
  .ld-stat-num { font-size: 28px; white-space: nowrap; }
  .ld-cta h2 { font-size: 28px; }
  .ld-hero-stats { gap: 24px; }
  .ld-hero-viz { min-height: 380px; }
  .ld-chip { display: none; }
  .ld-chip.keep { display: flex; }
  .ld-trow { grid-template-columns: 28px 1fr; row-gap: 6px; }
  .ld-trow p { grid-column: 2; }
  .ld-trow .arr, .ld-trow.head { display: none; }
  .ld-qa { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .ld-case { padding: 24px; }
  .ld-footer-cta { text-align: left; }
}
