/* ============================================================
   14a — Полоса «125»: пред-футерный контактный блок
   Figma: фреймы «125» (1024: 992×460, 768: 744×452, 375: 363×581),
   «124» (430: 414×589), «126» (320: 308×721).
   На 1600/1200 блока в макете НЕТ → базово скрыт, включается на ≤1024.
   Структурные значения ниже — из фрейма 1024, переопределения — из
   соответствующих фреймов. Отступ до футера: 32px (24px на 320).
   ============================================================ */

.s125 {
  display: none; /* на 1600/1200 блока нет в макете */
  background: transparent;   /* фон общий, своей подложки нет */
}

.s125-wrap {
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --- карточка-обёртка (значения фрейма 1024) --- */

.s125-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  height: 460px;
  padding: 8px;
  background: #EAEAEA;
  border-radius: 38px 38px 28px 28px;
}

/* --- тёмная форма (блок «23») --- */

.s125-form {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  flex: 0 1 auto;
  min-width: 0;
  width: 556px;
  box-sizing: border-box;
  padding: 16px 8px 8px;
  background: #232325;
  border-radius: 32px 32px 22px 22px;
  overflow: hidden;
}

.s125-title {
  margin: 0;
  padding: 0 16px 0 8px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -0.32px;
  color: #ffffff;
}

.s125-title--320 { display: none; }

.s125-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.s125-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

.s125-input {
  height: 56px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #ffffff; /* цвет введённого текста в макете не показан */
  appearance: none;
}

.s125-input::placeholder {
  color: rgba(217, 217, 217, 0.72);
  opacity: 1;
}

/* кнопка шире полей: у полей внутренний отступ 8, у кнопки — нет (как в макете) */
.s125-send {
  height: 56px;
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #F7F7F7;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: #2C2C2C;
  cursor: pointer;
}

/* --- QR-панель --- */

.s125-qr {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px;
  background: #F7F7F7;
  border-radius: 24px;
}

.s125-qr-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 112px;
  background: #EAEAEA;
  border-radius: 16px;
  overflow: hidden;
}

.s125-qr-img {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  pointer-events: none;
}

/* врезка QR как в макете: картинка чуть крупнее бокса и смещена */
.s125-qr-img img {
  position: absolute;
  left: -11.9%;
  top: -12%;
  width: 122.01%;
  height: 122.59%;
  max-width: none;
  opacity: 0.9;
}

.s125-qr-label {
  position: absolute;
  left: 72px;
  top: 16px;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
  color: #232325;
}

.s125-chip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #232325;
  border: 1px solid #232325;
  border-radius: 23px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
  color: #D9D9D9;
}

.s125-chip-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  overflow: hidden;
}

.s125-chip-icon img {
  position: absolute;
  display: block;
  max-width: none;
}

/* вектор Inst: врезка 7.14% от бокса 16 */
.s125-chip-icon--inst img {
  inset: 7.14%;
  width: 85.72%;
  height: 85.72%;
}

/* вектор Telegram: врезка 1.56% */
.s125-chip-icon--tg img {
  inset: 1.56%;
  width: 96.88%;
  height: 96.88%;
}

/* ============ 1024 — блок появляется (фрейм «125» 992×460) ============ */

@media (max-width: 1024px) {
  .s125 {
    display: block;
    margin-bottom: 32px; /* зазор до футера из макета */
  }
  .s125-wrap { padding: 0 16px; }
}

/* ============ 768 (фрейм «125» 744×452) ============ */

@media (max-width: 1023px) {
  .s125-wrap { padding: 0 12px; }

  .s125-card {
    height: 452px;
    padding: 4px;
    gap: 4px;
    border-radius: 34px 26px 24px 24px;
  }

  .s125-form { width: min(100%, 492px); }

  /* QR-панель становится колонкой 240×244 */
  .s125-qr { flex-direction: column; }
  .s125-qr-card { flex: none; width: 100%; }
}

/* ============ 430 (фрейм «124» 414×589) ============ */

@media (max-width: 719px) {
  .s125-wrap { padding: 0 8px; }

  .s125-card {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 4px;
    gap: 8px;
    border-radius: 34px 34px 26px 26px;
  }

  .s125-form {
    width: auto;
    align-self: auto;
    height: 445px;
  }

  .s125-title { padding-right: 30px; }

  /* QR-панель снова строкой на всю ширину */
  .s125-qr {
    flex-direction: row;
    flex: none;
    width: 100%;
  }
  .s125-qr-card { flex: 1 1 0; }
}

/* ============ 375 (фрейм «125» 363×581) ============ */

@media (max-width: 375px) {
  .s125-wrap { padding: 0 6px; }
  .s125-form { height: 437px; }
}

/* ============ 320 (фрейм «126» 308×721) ============ */

@media (max-width: 320px) {
  .s125 { margin-bottom: 24px; }

  .s125-form {
    height: 461px;
    justify-content: flex-start;
    gap: 32px;
    padding: 24px 8px 9px;
  }

  .s125-title { padding-right: 12px; }
  .s125-title--base { display: none; }
  .s125-title--320 { display: block; }

  /* QR-панель колонкой, подложка белая (в макете именно #fff на 320) */
  .s125-qr {
    flex-direction: column;
    background: #ffffff;
  }
  .s125-qr-card { flex: none; width: 100%; }
}
