/* ============================================================
   Yalla — «Для партнёров» (/partners)
   Дополнительные стили поверх styles.css. Использует те же
   дизайн-токены (--c-*, --sp-*, --r-*).
   ============================================================ */

/* ----- Общая секция ----- */
.p-section {
  width: 100%;
  padding: var(--sp-32) var(--sp-24);
}

.p-section__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  text-align: center;
  margin-bottom: var(--sp-32);
}

.p-section__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
}

.p-section__lead {
  font-weight: 300;
  font-size: 16px;
  line-height: 23px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
  max-width: 640px;
  margin: 0 auto;
}

/* ----- Hero ----- */
.p-hero {
  width: 100%;
  padding: var(--sp-32) var(--sp-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
  text-align: center;
}

.p-hero__title {
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
  max-width: 800px;
}

.p-hero__title em {
  font-style: normal;
  color: var(--c-accent);
}

.p-hero__subtitle {
  font-weight: 300;
  font-size: 17px;
  line-height: 24px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
  max-width: 560px;
}

.p-hero__stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  width: 100%;
  max-width: 900px;
}

.p-stat {
  background: var(--c-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-20) var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1 1 0;
}

.p-stat__value {
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  color: var(--c-accent);
  font-variation-settings: var(--fvs);
}

.p-stat__label {
  font-weight: 300;
  font-size: 14px;
  line-height: 19px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.p-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  width: 100%;
  max-width: 420px;
}

/* ----- Кнопки ----- */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--sp-32);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  font-variation-settings: var(--fvs);
  transition: opacity 0.2s ease, transform 0.1s ease, background-color 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.p-btn--primary {
  background: var(--c-submit);
  color: #ffffff;
}

.p-btn--primary:hover { opacity: 0.9; }
.p-btn--primary:active { transform: scale(0.98); }

.p-btn--ghost {
  background: var(--c-muted);
  color: var(--c-text);
}

.p-btn--ghost:hover { background: var(--c-hover); }
.p-btn--ghost:active { transform: scale(0.98); }

/* ----- Карточки-выгоды ----- */
.p-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}

.p-card {
  background: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.p-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(var(--c-accent-rgb), 0.12);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-card__icon svg {
  width: 24px;
  height: 24px;
}

.p-card__title {
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
}

.p-card__text {
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

/* ----- Шаги («Как это работает» и «Подключение») ----- */
.p-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
  list-style: none;
  counter-reset: p-step;
}

.p-step {
  background: var(--c-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  display: flex;
  gap: var(--sp-16);
  align-items: flex-start;
  counter-increment: p-step;
}

.p-step::before {
  content: counter(p-step);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  background: var(--c-accent);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variation-settings: var(--fvs);
}

.p-step__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.p-step__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
}

.p-step__text {
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.p-step__time {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--c-accent);
  font-variation-settings: var(--fvs);
}

/* ----- Условия сотрудничества ----- */
.p-terms {
  background: var(--c-muted);
  border-radius: var(--r-2xl);
  padding: var(--sp-32) var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
}

.p-term {
  display: flex;
  gap: var(--sp-12);
  align-items: flex-start;
  font-weight: 300;
  font-size: 16px;
  line-height: 23px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
}

.p-term svg {
  width: 22px;
  height: 22px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.p-term a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-term a:hover { opacity: 0.8; }

/* ----- «Нам доверяют» ----- */
.p-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-12);
  max-width: 760px;
  margin: 0 auto;
}

.p-badge {
  background: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: var(--sp-10) var(--sp-20);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
  white-space: nowrap;
}

/* ----- FAQ ----- */
.p-faq {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  max-width: 760px;
  margin: 0 auto;
}

.p-faq__item {
  background: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.p-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-24);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color 0.2s ease;
}

.p-faq__q::-webkit-details-marker { display: none; }

.p-faq__q:hover { color: var(--c-accent); }

.p-faq__q::after {
  content: '+';
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.p-faq__item[open] .p-faq__q::after {
  transform: rotate(45deg);
  color: var(--c-accent);
}

.p-faq__a {
  padding: 0 var(--sp-24) var(--sp-20);
  font-weight: 300;
  font-size: 15px;
  line-height: 23px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.p-faq__a a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- О Yalla ----- */
.p-about {
  background: var(--c-muted);
  border-radius: var(--r-3xl);
  padding: var(--sp-52) var(--sp-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  text-align: center;
}

.p-about__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
  max-width: 640px;
}

.p-about .store-buttons {
  max-width: 380px;
}

.p-about .store-link {
  background: var(--c-surface);
}

.p-about__contacts {
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.p-about__contacts a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   Tablet (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {
  .p-section {
    padding: var(--sp-32) 40px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .p-hero {
    padding: 48px 40px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .p-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .p-hero__stats {
    flex-direction: row;
  }

  .p-stat {
    text-align: left;
  }

  .p-hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .p-hero__actions .p-btn {
    min-width: 220px;
  }

  .p-section__title {
    font-size: 30px;
    line-height: 38px;
  }

  .p-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-terms {
    padding: var(--sp-32) 48px;
  }

  .p-about {
    padding: var(--sp-52) 48px;
  }
}

/* ============================================================
   Desktop (≥ 1440px)
   ============================================================ */
@media (min-width: 1440px) {
  .p-section {
    padding: 56px 120px;
    max-width: 1440px;
  }

  .p-hero {
    padding: 80px 120px;
    max-width: 1440px;
  }

  .p-hero__title {
    font-size: 52px;
    line-height: 62px;
  }

  .p-hero__subtitle {
    font-size: 19px;
    line-height: 27px;
    max-width: 640px;
  }

  .p-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .p-steps--vertical {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    margin: 0 auto;
  }

  .p-section__title {
    font-size: 36px;
    line-height: 44px;
  }
}
