/* ==========================================================================
   participate.css — «Участникам / Почему стоит принять участие?» (БАЗА 1920).
   Figma: Section 5 / 79:2142. get_design_context 79:2142.
   Слева (910): заголовок Cochin 48/56 + подзаголовок 18/28 + 2 кнопки + коллаж
   910×435 (alpha-маска). Справа (910): 5 строк — верхняя линия c-line, номер
   Cochin 24/32 accent (w32), текст Inter Tight 18/28, gap 202, py 32.
   ========================================================================== */

.s-participate {
  background: var(--c-bg);
  color: var(--c-text);
}

.s-participate__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 120px;
  padding-bottom: 60px;
}

/* ---------- Левая колонка (79:2143): 910, gap 16 ---------- */
.s-participate__left {
  flex: 0 1 910px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Текст + кнопки (79:2144): 526, gap 40 */
.s-participate__intro {
  width: 526px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.s-participate__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.s-participate__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 56px;
  text-transform: uppercase;
  color: var(--c-text);
}

.s-participate__subtitle {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
}

.s-participate__buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Коллаж 910×435 (79:2158) — alpha-маска */
.s-participate__media {
  position: relative;
  width: 910px;
  max-width: 100%;
  height: 434.627px;
  overflow: hidden;
}

.s-participate__collage {
  position: absolute;
  left: 28.52px;
  top: 0;
  width: 842.391px;
  height: 473.845px;
  max-width: none;
  object-fit: cover;
  -webkit-mask: url(../../img/participate/collage-mask.svg) 16.298px -48.896px / 820.358px 459.075px no-repeat;
          mask: url(../../img/participate/collage-mask.svg) 16.298px -48.896px / 820.358px 459.075px no-repeat;
}

/* ---------- Правая колонка: список причин (79:2161): 910 ---------- */
.s-participate__list {
  flex: 0 1 910px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-participate__item {
  display: flex;
  align-items: center;
  gap: 202px;
  padding-block: 32px;
  border-top: 1px solid var(--c-line);
}
.s-participate__item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.s-participate__num {
  flex: 0 0 32px;
  width: 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--c-accent);
}

.s-participate__reason {
  flex: 1 0 0;
  min-width: 0;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
}

/* ==========================================================================
   Адаптив participate
   ========================================================================== */
@media (max-width: 1919px) {
  .s-participate__left {
    flex: 0 1 670px;
  }
  .s-participate__intro {
    width: 436px;
  }
  .s-participate__media {
    width: 670px;
    height: 320px;
  }
  .s-participate__collage {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-mask: url(../../img/participate/collage-mask.svg) center / 100% 100% no-repeat;
            mask: url(../../img/participate/collage-mask.svg) center / 100% 100% no-repeat;
  }
  .s-participate__list {
    flex: 0 1 670px;
  }
  .s-participate__title {
    font-size: 32px;
    line-height: 40px;
  }
  .s-participate__subtitle {
    font-size: 16px;
    line-height: 24px;
  }
  .s-participate__num {
    font-size: 18px;
    line-height: 28px;
  }
  .s-participate__reason {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 1023px) {
  .s-participate__inner {
    flex-direction: column;
    gap: 60px;
    padding-top: 80px;
  }
  .s-participate__left {
    flex: 0 0 auto;
    width: 100%;
  }
  .s-participate__intro {
    width: 100%;
    max-width: 526px;
  }
  .s-participate__media {
    width: 100%;
    height: auto;
    aspect-ratio: 910 / 435;
  }
  .s-participate__list {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .s-participate__inner {
    padding-top: 40px;
    padding-bottom: 40px;
    /* Figma 105:2752: блок Text+Image(низ 444.66)→список(464.66) зазор 20, не 40. */
    gap: 20px;
  }
  .s-participate__title {
    font-size: 20px;
    line-height: 28px;
  }
  .s-participate__intro {
    gap: 24px;
  }
  .s-participate__item {
    gap: 24px;
    padding-block: 16px;
  }
  /* Лид: 14/20 (Figma 105:2760 h60 = 3 строки lh20; иначе тянет 16/24 из @1440 → 4 строки). */
  .s-participate__subtitle {
    font-size: 14px;
    line-height: 20px;
  }
  .s-participate__reason {
    font-size: 14px;
    line-height: 20px;
  }
  .s-participate__buttons {
    width: 100%;
  }
  /* Figma 105:2757 — тире w-[47px] h-[8px]; base .section-label__dash @360 = 46×8 → 47. */
  .s-participate .section-label__dash {
    width: 47px;
  }
  /* Figma 105:2762 — flex-[1_0_0] (растягивается), 105:2765 — shrink-0 (по контенту).
     Оба px-[24px] py-[8px]: base .btn @360 даёт 8/16 → переопределяем на 8/24. */
  .s-participate__buttons .btn {
    padding: 8px 24px;
    min-width: 0;
  }
  .s-participate__buttons .btn:first-child {
    /* Figma flex-[1_0_0]; allow shrink (1 1 0) чтобы не было +1.3px overflow от метрик шрифта */
    flex: 1 1 0;
  }
  .s-participate__buttons .btn:last-child {
    flex: 0 0 auto;
  }
}
