/* ==========================================================================
   Лендинг /lawyer_pro/ — слой поверх corporate.css
   Токены, сетка, кнопки и типографика берутся из corporate.css,
   здесь только своё: демо ответа, карточки дел, тёмная сцена сравнения,
   слайдер, тарифы, финальная форма.
   ========================================================================== */

/* --- База страницы -------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body { caret-color: var(--accent); }

a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a { text-underline-offset: 3px; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, .c-h2 { text-wrap: balance; }
p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Серифный акцент H1 и финала — сплошным цветом, без градиента */
.c-hero h1 em { color: var(--accent); }
.c-close h2 em { color: var(--accent); }

/* На широких экранах штатный clamp(...100px) рвёт вторую строку на две */
.c-hero h1 { font-size: clamp(48px, 5.6vw, 84px); max-width: 1160px; }

/* --- Карточка судебного дела ------------------------------------------- */

.p-case {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .18s, background .18s, transform .18s;
}

a.p-case:hover {
  border-color: #cdd9f9;
  background: #fff;
  transform: translateY(-1px);
}

.p-case__flag {
  grid-row: span 2;
  align-self: start;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.p-case__flag--ok { color: var(--green); background: var(--green-soft); }
.p-case__flag--warn { color: #a4701a; background: var(--warm-soft); }

.p-case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.p-case__no {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.p-case__text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

.p-cite {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--accent);
  border-bottom: 1px dashed rgba(37, 99, 235, .4);
  white-space: nowrap;
}

.p-fake {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--rose);
  border-bottom: 1px dashed rgba(239, 79, 108, .5);
  white-space: nowrap;
}

/* --- Демо в hero: статус и живые плитки ---------------------------------- */

.p-try__status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.p-try__status.is-done { color: var(--green); }

.p-try__status.is-done::before { content: "✓ "; }

.c-answer-card { min-height: 118px; display: flex; flex-direction: column; }
.c-answer-card__sub { display: flex; flex-direction: column; gap: 6px; }

.c-answer-card__num { color: var(--accent); }

/* слот ждёт данных: содержимое притушено, поверх — тонкая полоска-шиммер */
[data-slot] .c-answer-card__sub { transition: opacity .35s ease, transform .35s cubic-bezier(.16,1,.3,1); }
[data-slot]:not(.is-filled) .c-answer-card__sub { opacity: 0; transform: translateY(6px); }
[data-slot].is-filled .c-answer-card__sub { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-slot] .c-answer-card__sub { transition: none; }
  [data-slot]:not(.is-filled) .c-answer-card__sub { opacity: 1; transform: none; }
}

.p-slot-norm {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-slot-norm b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--accent);
  border-bottom: 1px dashed rgba(37, 99, 235, .4);
}

.p-slot-case { display: flex; flex-direction: column; gap: 2px; }

.p-slot-case__no {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.p-slot-case__meta { font-size: 10.5px; color: var(--muted); }

.p-slot-doc {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
}

/* --- Строка доверия под маркизой ----------------------------------------- */

.p-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-3);
}

.p-proof b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.p-proof__sep { width: 3px; height: 3px; border-radius: 99px; background: var(--muted-2); }

@media (max-width: 640px) {
  .p-proof { flex-direction: column; gap: 6px; }
  .p-proof__sep { display: none; }
  /* точки-разделители в нотах hero на узком экране падают на свои строки */
  .c-hero__notes { gap: 7px 14px; }
  .c-hero__notes > span[aria-hidden], .c-hero__notes > .p-dot { display: none; }
}

/* --- Технологии: табы ----------------------------------------------------- */

/* дыра между статами механизмов и заголовком технологий */
.c-cmp { padding-top: 70px; }

.p-tech__panel { display: none; }
.p-tech__panel.active { display: grid; grid-template-columns: 1fr 1.05fr; }

.p-tech__left { padding: 40px; border-right: 1px solid var(--line-2); }
.p-tech__right { padding: 40px; position: relative; }

.p-tech__right-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.p-tech__name {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
}

.p-tech__name b {
  font-weight: 500;
  background: linear-gradient(110deg, var(--accent) 0%, var(--plum) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-tech__claim {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink);
  margin: 14px 0 20px;
  text-wrap: pretty;
}

.p-tech__facts { display: flex; flex-direction: column; gap: 10px; }

.p-tech__fact {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.p-tech__fact svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

.p-tech__art {
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: clamp(66px, 8vw, 96px);
  opacity: .9;
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, .18));
}

@media (max-width: 1024px) {
  .p-tech__panel.active { grid-template-columns: 1fr; }
  .p-tech__left { border-right: none; border-bottom: 1px solid var(--line-2); padding: 28px; }
  .p-tech__right { padding: 28px; }
  .p-tech__art { display: none; }
}

/* --- Приборы внутри панелей ----------------------------------------------- */

.p-rows { display: flex; flex-direction: column; gap: 8px; position: relative; }

.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.p-row b { color: var(--ink); font-weight: 600; }
.p-row .mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.p-row__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

.p-row__ext {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.p-row__ext--scan { background: var(--warm-soft); color: #a4701a; }

.p-cut {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #f3c6cf;
  border-radius: 10px;
  background: #fff6f7;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.p-cut__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 5px;
}

.p-anchor {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #cfeadd;
  border-radius: 10px;
  background: var(--green-soft);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.p-anchor mark { background: #fff3cf; color: var(--ink); padding: 0 .15em; border-radius: 3px; }

/* --- Тёмная сцена сравнения ----------------------------------------------- */

.c-case { padding-top: 60px; }

.c-case--dark {
  background: #0c0d10;
  color: #e8e9ee;
}

.c-case--dark .c-h2 { color: #fff; }

/* светлые карточки внутри тёмной сцены не наследуют светлый текст */
.c-case--dark .c-surface { color: var(--ink); }

.c-case--dark .c-h2 b {
  background: linear-gradient(110deg, #8ab0ff 0%, #b3a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.c-case--dark > .c-wrap > div > p { color: #a7abb8; }

/* --- Слайдер «два ответа» -------------------------------------------------- */

.p-versus {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: #fff;
  border: 1px solid var(--line);
}

.c-case--dark .p-versus {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}

.p-versus__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--ink);
  background: var(--bg-2);
  flex-wrap: wrap;
}

.p-versus__q b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.p-versus__stage { position: relative; min-height: 250px; }

.p-versus__pane { padding: 26px 28px 46px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.p-versus__pane--them { background: linear-gradient(180deg, #fff 0%, #fff7f8 260%); }

.p-versus__pane--us {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 240%);
  clip-path: inset(0 0 0 var(--split, 50%));
}

.p-versus.kbd .p-versus__pane--us { transition: clip-path .25s ease; }
.p-versus.kbd .p-versus__handle { transition: left .25s ease; }

.p-versus__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
}

.p-versus__label--them { color: var(--rose); border-color: #f6ced7; }
.p-versus__label--us { color: var(--accent); border-color: #cdd9f9; }
.p-versus__pane--us .p-versus__label { align-self: flex-end; }

.p-versus__text { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-width: min(44%, 30rem); }
.p-versus__note { margin-top: auto; font-size: 12px; color: var(--ink-3); line-height: 1.5; max-width: min(44%, 30rem); }

.p-versus__pane--us .p-versus__text,
.p-versus__pane--us .p-versus__note { margin-left: auto; }

/* штамп «таких актов не существует» */
.p-stamp {
  position: absolute;
  left: 6%;
  top: 46%;
  transform: rotate(-8deg) scale(1.35);
  padding: 8px 14px;
  border: 2.5px solid var(--rose);
  border-radius: 6px;
  color: var(--rose);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 18px rgba(239, 79, 108, .08);
}

.p-versus.stamped .p-stamp {
  opacity: .92;
  transform: rotate(-8deg) scale(1);
  transition: opacity .18s ease-out, transform .18s cubic-bezier(.2, 2.2, .5, 1);
}

@media (prefers-reduced-motion: reduce) {
  .p-versus.stamped .p-stamp { transition: none; }
}

.p-versus__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 24px;
  margin-left: -12px;
  background: transparent;
  cursor: ew-resize;
  z-index: 3;
}

.p-versus__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
}

.p-versus__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 10px 26px -10px rgba(15, 23, 42, .28);
  font-size: 12px;
  cursor: grab;
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), box-shadow .15s;
}

.p-versus[data-dragging] .p-versus__grip {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 16px 34px -12px rgba(15, 23, 42, .4);
}

.p-versus__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, .85);
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  transition: opacity .3s;
}

.p-versus[data-touched="true"] .p-versus__hint { opacity: 0; }

/* На узком экране шторка режет оба текста в кашу — раскладываем ответы стопкой */
@media (max-width: 768px) {
  .p-versus__stage { min-height: 0; }
  .p-versus__pane { padding: 20px 18px 24px; }
  .p-versus__pane--us {
    position: static;
    clip-path: none;
    border-top: 1px solid var(--line-2);
  }
  .p-versus__handle, .p-versus__hint { display: none; }
  .p-versus__text,
  .p-versus__note,
  .p-versus__pane--us .p-versus__text,
  .p-versus__pane--us .p-versus__note { max-width: 100%; margin-left: 0; }
  .p-versus__pane--us .p-versus__label { align-self: flex-start; }
  .p-versus__note { margin-top: 4px; }
  .p-stamp { font-size: 13px; left: auto; right: 6%; top: 30%; }
}

/* --- Чем закончилась история: степпер и цена ------------------------------- */

.p-fine {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
  padding: 44px 8px 36px;
}

.p-fine__story { display: flex; flex-direction: column; gap: 14px; }

.p-fine__step {
  font-size: 16px;
  line-height: 1.5;
  color: #c6c9d2;
  padding-left: 18px;
  position: relative;
}

.p-fine__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 1px;
  background: var(--rose);
}

.p-fine__amount-wrap { text-align: right; }

.p-fine__amount {
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.p-fine__amount-label {
  margin-top: 10px;
  font-size: 13.5px;
  color: #8f93a0;
}

@media (max-width: 860px) {
  .p-fine { grid-template-columns: 1fr; gap: 26px; padding: 36px 4px 28px; }
  .p-fine__amount-wrap { text-align: left; }
}

/* --- Бары сравнения внутри тёмной сцены ------------------------------------ */

.p-bars__grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.p-bars__left { padding: 36px 38px; border-right: 1px solid var(--line-2); }
.p-bars__right { padding: 36px 38px; position: relative; }

@media (max-width: 1024px) {
  .p-bars__grid { grid-template-columns: 1fr; }
  .p-bars__left { border-right: none; border-bottom: 1px solid var(--line-2); padding: 26px 22px; }
  .p-bars__right { padding: 26px 22px; }
}

.c-case--dark .p-bars { border-color: rgba(255, 255, 255, .14); }

/* наполнение через transform, а не width — без рефлоу на каждый кадр */
.p-bars .c-cmp__bar-fill { transform-origin: left center; }

@media (prefers-reduced-motion: no-preference) {
  .p-bars .c-cmp__bar-fill { transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
}

/* у «нет» — честная точка-ноль вместо выдуманных 4% */
.p-bars .c-cmp__bar-fill[data-w="0"] { width: 6px !important; border-radius: 99px; }

.p-bars .c-cmp__bar-track { flex: none; width: 100%; height: 8px; }
.p-bars .c-cmp__bar-header { margin-bottom: 10px; }
.p-bars .c-cmp__bar-group { gap: 22px; }

/* --- Полоса CTA в конце тёмной сцены --------------------------------------- */

.p-mid-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  flex-wrap: wrap;
  text-align: center;
}

.p-mid-cta p { margin: 0; font-size: 15.5px; color: #c6c9d2; }

.p-btn-invert {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .6);
}

.p-btn-invert:hover { background: #f2f4f8; }

/* --- Возможности: раскрытие с выдохом --------------------------------------- */

.c-depth__body {
  display: grid !important;
  grid-template-rows: 0fr;
  overflow: hidden;
  padding: 0 28px 0 78px;
  animation: none !important;
  transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1), padding-bottom .4s cubic-bezier(.16, 1, .3, 1);
}

.c-depth__body > p { min-height: 0; overflow: hidden; margin: 0; }

.c-depth__item.open .c-depth__body { grid-template-rows: 1fr; padding-bottom: 26px; }

@media (max-width: 640px) {
  .c-depth__body { padding: 0 18px 0 52px; }
  .c-depth__item.open .c-depth__body { padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-depth__body { transition: none; }
}

/* --- Сценарии: тихая редакционная полоса ------------------------------------ */

.p-quotes { max-width: 980px; margin: 0 auto; }

.p-quote {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: baseline;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
}

.p-quote:first-child { border-top: 1px solid var(--line); }

.p-quote__role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.p-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.p-quote__try {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

.p-quote__try svg { transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.p-quote__try:hover svg { transform: translateX(3px); }

@media (max-width: 860px) {
  .p-quote { grid-template-columns: 1fr; gap: 8px; padding: 24px 2px; }
  .p-quote__try { margin-top: 4px; }
}

/* --- Тарифы ------------------------------------------------------------- */

.p-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.p-plan { padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }

.p-plan--best {
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 260%);
  border-color: #cdd9f9;
  box-shadow: 0 24px 50px -30px rgba(37, 99, 235, .35), 0 1px 0 rgba(255, 255, 255, 1) inset;
}

.p-plan__chips { min-height: 26px; display: flex; gap: 6px; align-items: flex-start; }
.p-plan__chips .c-chip { white-space: nowrap; }
.p-plan__name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.p-plan__price { display: flex; align-items: baseline; gap: 6px; }
.p-plan__price b { font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.p-plan__price span { font-size: 12.5px; color: var(--ink-3); }
.p-plan__unit { display: block; min-height: 15px; font-family: var(--mono); font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }
.p-plan__list { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-3); }
.p-plan__list li::before { content: "·"; color: var(--accent); margin-right: 7px; }
.p-plan .c-btn, .p-plan .c-btn-ghost { margin-top: auto; justify-content: center; }

@media (max-width: 1024px) { .p-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-plans { grid-template-columns: 1fr; } }

/* --- FAQ ------------------------------------------------------------------ */

.p-faq { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin: 0 auto; }
.p-faq details { padding: 0; overflow: hidden; interpolate-size: allow-keywords; }

.p-faq summary {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: "+"; color: var(--accent); font-size: 18px; font-weight: 400; }
.p-faq details[open] summary::after { content: "−"; }
.p-faq__body { padding: 0 24px 22px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .p-faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height .35s cubic-bezier(.16, 1, .3, 1), content-visibility .35s allow-discrete;
  }
  .p-faq details[open]::details-content { height: auto; }
}

/* --- Финальная секция --------------------------------------------------------- */

.p-ask__note { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; }

/* --- Hero: первый экран чистый, демо за сгибом --------------------------------- */

.p-hero-lead {
  min-height: min(calc(100svh - 150px), 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 48px;
}

@media (max-height: 640px) {
  .p-hero-lead { min-height: 0; padding-top: 44px; }
}

/* --- Липкая панель CTA на мобильном ------------------------------------------ */

.p-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.p-sticky-cta__text { font-size: 13px; color: var(--ink-2); }
.p-sticky-cta__text b { color: var(--green); font-weight: 600; }
.p-sticky-cta .c-btn { flex-shrink: 0; }

@media (max-width: 768px) {
  .p-sticky-cta { display: flex; }
  .p-sticky-cta.show { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .p-sticky-cta { transition: none; }
}

/* --- Мелочи ------------------------------------------------------------- */

.p-note { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

.p-disclaimer {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.p-ask__gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #8a6a24;
  margin: 0;
}

.p-ask__gift svg { flex-shrink: 0; color: var(--warm); }

/* Числа и статы */
.c-promise__stat { min-height: 96px; }
.c-promise__stat-num { white-space: nowrap; font-size: 52px; font-variant-numeric: tabular-nums; }

/* --- Механизмы: асимметричная сетка ----------------------------------------- */

.p-mech {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}

.p-mech__main {
  grid-row: span 2;
  background: linear-gradient(180deg, #fff 0%, var(--plum-soft) 240%);
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.p-mech__art {
  position: absolute;
  right: 6%;
  top: 44%;
  transform: translateY(-50%) rotate(-6deg);
  width: clamp(150px, 16vw, 220px);
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(15, 23, 42, .2));
}

@media (max-width: 900px) { .p-mech__art { display: none; } }

.p-mech__main .c-promise__stat { min-height: 0; }

.p-mech__num-lg { font-size: clamp(56px, 6vw, 84px); letter-spacing: -.05em; }

.p-mech .c-promise__card:last-child {
  background: linear-gradient(180deg, #fff 0%, var(--warm-soft) 300%);
}

@media (max-width: 900px) {
  .p-mech { grid-template-columns: 1fr; }
  .p-mech__main { grid-row: auto; }
  .p-mech__num-lg { font-size: 52px; }
}

/* --- Сетка плиток ответа --------------------------------------------------- */

.p-grid4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .p-grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .p-grid4 { grid-template-columns: 1fr; } }

/* --- Тактильность ----------------------------------------------------------- */

.c-promise__card, .p-plan, .c-answer-card, a.p-case {
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .2s, background .2s;
}
.c-promise__card:hover, .p-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 #fff inset, 0 26px 48px -26px rgba(15, 23, 42, .2);
}

.c-btn svg, .c-btn-ghost svg { transition: transform .15s cubic-bezier(.16, 1, .3, 1); }
.c-btn:hover svg, .c-btn-ghost:hover svg { transform: translateX(3px); }

.p-try__chip:active, .c-cmp__tab:active, .p-faq summary:active { transform: scale(.97); }

/* --- Чипы-вопросы в hero-карточке ----------------------------------------- */

.p-try { margin-bottom: 16px; }

.p-try__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }

.p-try__chip {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .18s, color .18s, background .18s, transform .12s;
}

.p-try__chip:hover { border-color: #cdd9f9; color: var(--ink); }

.p-try__chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(12, 13, 16, .4);
}

.p-try__q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  min-height: 44px;
}

.p-try__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

.p-try__text { font-size: 14px; color: var(--ink); font-weight: 500; }

.p-try__caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  transform: translateY(2px);
}

@media (prefers-reduced-motion: no-preference) {
  .p-try__caret { animation: caret-blink 1s steps(2) infinite; }
  @keyframes caret-blink { 50% { opacity: 0; } }
}

/* --- Бегущая строка источников --------------------------------------------- */

.p-marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.p-marquee__track { display: flex; width: max-content; }

.p-marquee__grp { display: flex; }

.p-marquee__grp span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 64px;
  position: relative;
}

.p-marquee__grp span::after {
  content: "·";
  position: absolute;
  right: 28px;
  color: var(--muted-2);
}

/* --- Движение (только если пользователь не против) -------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .h-rise {
    opacity: 0;
    transform: translateY(16px);
    animation: h-rise .9s cubic-bezier(.16, 1, .3, 1) forwards;
  }
  @keyframes h-rise { to { opacity: 1; transform: none; } }

  /* Плитки ответа догоняют карточку каскадом при загрузке */
  .p-grid4 .c-answer-card { opacity: 0; animation: h-rise .7s cubic-bezier(.16, 1, .3, 1) forwards; }
  .p-grid4 .c-answer-card:nth-child(1) { animation-delay: .55s; }
  .p-grid4 .c-answer-card:nth-child(2) { animation-delay: .63s; }
  .p-grid4 .c-answer-card:nth-child(3) { animation-delay: .71s; }
  .p-grid4 .c-answer-card:nth-child(4) { animation-delay: .79s; }
  .c-verify { opacity: 0; animation: h-rise .7s cubic-bezier(.16, 1, .3, 1) .95s forwards; }

  .p-marquee__track { animation: marquee 60s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .p-marquee:hover .p-marquee__track { animation-play-state: paused; }
}
