/* Landing /partners/ (Партнёрская программа LidFly), part 2 — deferred sections:
   #how, #who, #friend, #benefit, #spend, #rules, #faq, .pt-final-sec and responsive rules.
   All colours use shared CSS custom properties (--lf-*, --v2-*, --status-*). */

.pt-sec { padding: 60px 0; }
.pt-head {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px; max-width: none; margin-bottom: 40px;
}
.pt-head .pt-lead { max-width: 1160px; }
.pt-split {
  display: grid; grid-template-columns: 374px minmax(0, 1fr);
  gap: 64px; align-items: start;
}
.pt-split__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* 2 · Как это работает (#how) */
.pt-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 0; padding: 0; list-style: none;
}
.pt-step {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  padding: 0; border: 0; background: transparent;
}
.pt-step__visual {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; height: 168px; padding: 16px; border-radius: 24px;
}
.pt-step__visual--lime { background: var(--lf-pastel-lime); }
.pt-step__visual--sky { background: var(--pt-pastel-sky); }
.pt-step__visual--butter { background: var(--pt-pastel-butter); }

.pt-step-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; max-width: 320px; padding: 6px 6px 6px 16px;
  border-radius: var(--lf-radius-full); background: var(--lf-bg-surface); box-shadow: var(--lf-shadow-elevation-1);
}
.pt-step-pill__url {
  color: var(--lf-text-primary); font-family: var(--lf-font-mono);
  font-size: 13px; font-weight: 500; line-height: 18px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pt-step-bubble {
  width: 100%; max-width: 260px; padding: 12px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--lf-bg-surface); box-shadow: var(--lf-shadow-elevation-1);
  color: var(--lf-text-primary); font-size: 13px; font-weight: 400; line-height: 18px;
}
.pt-step-channels {
  color: var(--lf-text-secondary); font-size: 12px; font-weight: 400; line-height: 16px;
}
.pt-step-toast {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 260px;
  padding: 12px 16px; border-radius: var(--lf-radius-lg);
  background: var(--lf-bg-surface); box-shadow: var(--lf-shadow-elevation-1);
}
.pt-step__head { display: flex; align-items: center; gap: 10px; }
.pt-step__num {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border-radius: var(--lf-radius-full); background: var(--lf-action-primary);
  color: var(--lf-action-on-primary); font-family: var(--lf-font-mono);
  font-size: 12px; font-weight: 500; line-height: 1;
}
.pt-step__text {
  margin: 0; color: var(--lf-text-secondary);
  font-size: 15px; font-weight: 400; line-height: 22px;
}

/* 3 · Кому подходит (#who) */
.pt-who-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.pt-who {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  min-width: 0; padding: 28px; border: 1px solid var(--lf-border-subtle);
  border-radius: 24px; background: var(--lf-bg-surface);
}
.pt-wing { display: block; width: 64px; height: 64px; flex: none; }
.pt-wing svg { display: block; width: 100%; height: 100%; }
.pt-who__title {
  margin: 0; color: var(--lf-text-primary);
  font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em;
}
.pt-who__text {
  margin: 0; color: var(--lf-text-secondary);
  font-size: 15px; font-weight: 400; line-height: 22px;
}

/* 4 · Что сказать другу (#friend) */
.pt-sec--friend { padding: 60px 0; }
.pt-friend-box {
  display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; align-items: start;
  padding: 64px; border-radius: 24px;
  background: var(--lf-action-primary); color: var(--lf-action-on-primary);
}
.pt-friend-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pt-starter-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; width: 100%; margin: 0; padding: 16px 0 0; list-style: none;
}
.pt-starter-grid li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0; border: 0; background: transparent;
}
.pt-starter__val {
  color: var(--lf-pastel-lime);
  font-size: 28px; font-weight: 600; line-height: 34px; letter-spacing: -0.018em;
}
.pt-starter__desc {
  color: var(--pt-graphite-300); font-size: 15px; font-weight: 400; line-height: 22px;
}
.pt-friend-side {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%;
}
.pt-msg-card {
  display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 24px;
  border: 0; border-radius: var(--lf-radius-xl);
  background: var(--lf-bg-surface); color: var(--lf-text-primary);
}
.pt-msg-card__text {
  margin: 0; color: var(--lf-text-primary);
  font-size: 16px; font-weight: 400; line-height: 24px;
}
.pt-msg-card__text [data-friend-link] {
  color: inherit; font: inherit;
}
.pt-friend-side__btn { width: auto; }
.pt-friend-side__hint {
  margin: 0; color: var(--pt-graphite-300);
  font-size: 13px; font-weight: 400; line-height: 18px; text-align: left;
}

/* 5 · Выгода (#benefit) */
.pt-benefit-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.pt-benefit {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; min-width: 0; padding: 32px; border-radius: 24px;
}
.pt-benefit--lime { background: var(--lf-pastel-lime); }
.pt-benefit--sky { background: var(--pt-pastel-sky); }
.pt-benefit--butter { background: var(--pt-pastel-butter); }
.pt-benefit__price {
  margin: 0; color: var(--lf-text-primary);
  font-size: 44px; font-weight: 600; line-height: 48px;
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
}
.pt-benefit__text {
  margin: 0; color: var(--lf-text-secondary);
  font-size: 15px; font-weight: 400; line-height: 22px;
}
.pt-benefit-actions { display: flex; align-items: center; margin-top: 24px; }

/* 6 · На что тратить (#spend) & 7 · Правила (#rules) */
.pt-spend-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px;
}
.pt-fact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pt-icon-box {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 10px; background: var(--lf-bg-subtle); color: var(--lf-action-brand);
}
.pt-icon-box svg { width: 20px; height: 20px; }
.pt-fact__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt-fact__text {
  margin: 0; color: var(--lf-text-secondary);
  font-size: 15px; font-weight: 400; line-height: 22px;
}

.pt-rules-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.pt-rule-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--lf-border-subtle);
}
.pt-rule-row:first-child { padding-top: 0; }
.pt-rule-row:last-child { padding-bottom: 0; border-bottom: 0; }

/* 8 · Вопросы и ответы (#faq) */
.pt-faq__list { display: flex; flex-direction: column; gap: 10px; }
.pt-qa {
  border: 1px solid var(--lf-border-subtle); border-radius: var(--lf-radius-lg);
  background: var(--lf-bg-surface); overflow: hidden;
}
.pt-qa summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
}
.pt-qa summary::-webkit-details-marker { display: none; }
.pt-qa summary h3 {
  margin: 0; color: var(--lf-text-primary);
  font-size: 18px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em;
}
.pt-qa__chev {
  width: 20px; height: 20px; flex: none; color: var(--lf-text-tertiary);
  transition: transform 180ms ease, color 180ms ease;
}
.pt-qa[open] .pt-qa__chev { color: var(--lf-text-primary); transform: rotate(180deg); }
.pt-qa__a { padding: 0 24px 20px; }
.pt-qa__a p {
  margin: 0; color: var(--lf-text-secondary);
  font-size: 15px; font-weight: 400; line-height: 22px;
}

/* 9 · Финальный призыв (.pt-final-sec) */
.pt-final-sec { padding: 60px 0 88px; }
.pt-final {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; padding: 64px; border-radius: 24px; background: var(--lf-pastel-lime);
}
.pt-final__copy {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px; max-width: 680px;
}
.pt-final__lead { color: var(--lf-action-on-tinted); }
.pt-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.pt-final__actions .pt-btn--ghost {
  border-color: color-mix(in srgb, var(--lf-text-primary) 18%, transparent);
}
.pt-final__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-top: 8px; }
.pt-final__contacts a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--lf-action-on-tinted); font-size: 14px; font-weight: 500;
  line-height: 18px; text-decoration: none;
}
.pt-final__contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pt-final__contacts svg { width: 16px; height: 16px; flex: none; }
.pt-final__num {
  margin: 0; flex: none; color: var(--lf-text-primary);
  font-size: 128px; font-weight: 500; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  white-space: nowrap; user-select: none;
}

@media (max-width: 1120px) {
  .pt-who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-friend-box { grid-template-columns: 1fr; padding: 40px; }
  .pt-split { grid-template-columns: 1fr; gap: 32px; }
  .pt-final__num { font-size: 84px; }
}

@media (max-width: 767px) {
  .pt-sec { padding: 36px 0; }
  .pt-head { gap: 12px; margin-bottom: 24px; }
  .pt-split { grid-template-columns: 1fr; gap: 24px; }
  .pt-split__head { gap: 10px; }

  .pt-steps { grid-template-columns: 1fr; gap: 24px; }
  .pt-step { gap: 14px; }

  .pt-who-grid { grid-template-columns: 1fr; gap: 12px; }
  .pt-who { gap: 12px; padding: 24px; }

  .pt-sec--friend { padding: 36px 0; }
  .pt-friend-box {
    grid-template-columns: 1fr; gap: 24px;
    padding: 24px; border-radius: 24px;
  }
  .pt-friend-copy { gap: 12px; }
  .pt-starter-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 8px; }
  .pt-friend-side { gap: 12px; }
  .pt-msg-card { padding: 20px; border-radius: var(--lf-radius-xl); }
  .pt-msg-card__text { font-size: 15px; line-height: 22px; }
  .pt-friend-side__btn { width: 100%; }

  .pt-benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .pt-benefit { gap: 10px; padding: 24px; border-radius: 24px; }
  .pt-benefit__price { font-size: 36px; font-weight: 500; line-height: 40px; letter-spacing: -0.022em; }
  .pt-benefit-actions { margin-top: 16px; }

  .pt-spend-grid { grid-template-columns: 1fr; gap: 20px; }
  .pt-fact { flex-direction: row; align-items: flex-start; gap: 12px; }
  .pt-fact__body { gap: 2px; }
  .pt-rule-row { gap: 12px; padding: 16px 0; }

  .pt-faq__list { gap: 10px; }
  .pt-qa summary { gap: 12px; padding: 18px 20px; }
  .pt-qa__a { padding: 0 20px 18px; }

  .pt-final-sec { padding: 36px 0 60px; }
  .pt-final {
    flex-direction: column; align-items: flex-start;
    gap: 16px; padding: 24px; border-radius: 24px;
  }
  .pt-final__copy { gap: 12px; width: 100%; }
  .pt-final__actions {
    flex-direction: column; align-items: stretch;
    width: 100%; gap: 10px; padding-top: 4px;
  }
  .pt-final__actions .pt-btn { width: 100%; }
  .pt-final__contacts { gap: 16px; padding-top: 4px; }
  .pt-final__num {
    font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
