/* ============================================================
   07b — Short Contact Form
   Figma: «U Short Contact Form», брейкпоинты 1600/1200/1024/768/430/375/320.
   Базовые стили = фрейм 1600 (карточка 1540×528 при полях 30 в макете;
   по решению Alexa боковые поля страницы на 1600 = 24px).
   Высоты карточки фиксированы по макету: 528/528/664/710/820/850/962.
   ============================================================ */

.ctc {
  background: transparent;   /* фон общий, своей подложки нет */
}

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

.ctc-card {
  position: relative;
  height: 528px;
  overflow: hidden;
  background: #d9d9d9;
  border-radius: 24px;
}

/* Заголовок на светлом поле */
.ctc-title {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 734px;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 42px;
  letter-spacing: -0.44px;
  color: #171719;
  word-break: break-word;
}

/* Ряд карточек с числами */
.ctc-stats {
  position: absolute;
  left: 8px;
  right: 436px; /* 8 + форма 420 + зазор 8; на 1600 не влияет (контент уже) */
  bottom: 8px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.ctc-stat {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: #232325;
  border-radius: 20px;
  color: #eaeaea;
}

.ctc-stat-label {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  letter-spacing: -0.18px;
  text-transform: uppercase;
}

.ctc-stat--1 .ctc-stat-label { white-space: nowrap; }
.ctc-stat--2 .ctc-stat-label,
.ctc-stat--3 .ctc-stat-label { width: 241px; }

/* Кегли чисел и подписей —24% от макетных (её правка 26.08.2026:
   «слишком сильно орут»). Пропорция держится на всех брейкпоинтах,
   трекинг остаётся −0.01em от кегля. */
.ctc-stat-num {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 200; /* Inter Extra Light */
  font-size: 76px;
  line-height: 76px;
  letter-spacing: -0.76px;
  white-space: nowrap;
}

/* На мобильных брейкпоинтах в макете все числа = 34 */
.ctc-num-sm { display: none; }

/* Панель формы */
.ctc-form {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 420px;
  height: 512px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: #232325;
  border-radius: 20px;
  box-sizing: border-box;
}

.ctc-form-title {
  margin: 0;
  padding: 20px 40px 0 20px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 32px;
  letter-spacing: -0.32px;
  color: #d9d9d9;
  word-break: break-word;
}

/* На мобильных в макете другой текст */
.ctc-form-title--mobile { display: none; }

.ctc-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
  width: 100%;
  box-sizing: border-box;
}

.ctc-input {
  height: 64px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: #eaeaea;
  padding: 0 0 0 24px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #171719;
}

.ctc-input::placeholder {
  color: #818181;
}

.ctc-send {
  height: 64px;
  border: 0;
  border-radius: 14px;
  background: #f7f7f7;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #2c2c2c;
  cursor: pointer;
}

/* ---------- 1200 (карточка 1160×528, поля 20) ---------- */
@media (max-width: 1200px) {
  .ctc-wrap { padding: 0 20px; }

  .ctc-title { width: 625px; }

  /* карточки растягиваются на всё место слева от формы */
  .ctc-stat { flex: 1 1 0; min-width: 1px; }
  .ctc-stat--1 .ctc-stat-label { white-space: normal; }
  .ctc-stat--2 .ctc-stat-label,
  .ctc-stat--3 .ctc-stat-label { width: auto; }
}

/* ---------- 1024 (карточка 992×664, поля 16) ---------- */
@media (max-width: 1024px) {
  .ctc-wrap { padding: 0 16px; }

  .ctc-card { height: 664px; }

  .ctc-title {
    left: 20px;
    top: 20px;
    width: 753px;
    font-size: 32px;
    line-height: 30px;
    letter-spacing: -0.32px;
  }

  .ctc-stats {
    left: 8px;
    right: 8px;
    bottom: 332px;
  }

  .ctc-stat-num {
    font-size: 62px;
    line-height: 62px;
    letter-spacing: -0.62px;
  }

  .ctc-form {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: auto;
    justify-content: flex-start;
    gap: 32px;
  }

  .ctc-form-title {
    padding: 20px 228px 0 20px;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.24px;
  }
}

/* ---------- 768 (карточка 744×710, поля 12) ---------- */
@media (max-width: 1023px) {
  .ctc-wrap { padding: 0 12px; }

  .ctc-card { height: 710px; }

  .ctc-title { width: 674px; }

  .ctc-stats { bottom: 360px; }

  .ctc-stat-num {
    font-size: 55px;
    line-height: 55px;
    letter-spacing: -0.55px;
  }

  .ctc-form {
    height: 344px;
    justify-content: space-between;
    gap: 0;
  }

  .ctc-form-title { padding: 20px 144px 0 20px; }
}

/* ---------- 430 (карточка 414×820, поля 8) ---------- */
@media (max-width: 719px) {
  .ctc-wrap { padding: 0 8px; }

  .ctc-card {
    height: 820px;
    border-radius: 16px;
  }

  .ctc-title {
    left: 16px;
    top: 16px;
    width: 321px;
  }

  .ctc-stats {
    left: 4px;
    right: 4px;
    bottom: 420px;
    height: 140px;
    align-items: flex-end;
  }

  .ctc-stat {
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
  }

  .ctc-stat-label {
    font-size: 12px;
    line-height: 15px;
    letter-spacing: -0.12px;
  }

  .ctc-stat-num {
    font-size: 43px;
    line-height: 49px;
    letter-spacing: -0.43px;
  }

  .ctc-num-lg { display: none; }
  .ctc-num-sm { display: inline; }

  .ctc-form {
    left: 4px;
    right: 4px;
    bottom: 4px;
    height: auto;
    justify-content: flex-start;
    gap: 32px;
    border-radius: 14px;
    padding: 0 8px;
  }

  .ctc-form-title--desktop { display: none; }

  .ctc-form-title--mobile {
    display: block;
    padding: 28px 64px 0 12px;
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -0.32px;
  }

  .ctc-fields { padding: 0 0 8px; }

  .ctc-send { border-radius: 10px; }
}

/* ---------- 375 (карточка 361×850, поля 7) ---------- */
@media (max-width: 375px) {
  .ctc-wrap { padding: 0 7px; }

  .ctc-card { height: 850px; }

  .ctc-stats {
    bottom: 452px;
    height: auto;
  }

  /* на 375 карточки чисел в макете тёмные (#171719), числа крупнее */
  .ctc-stat { background: #171719; }

  .ctc-stat-num {
    font-size: 49px;
    line-height: 49px;
    letter-spacing: -0.49px;
  }

  .ctc-form-title--mobile { padding: 28px 56px 0 12px; }
}

/* ---------- 320 (карточка 308×962, поля 6) ---------- */
@media (max-width: 320px) {
  .ctc-wrap { padding: 0 6px; }

  .ctc-card { height: 962px; }

  .ctc-title { width: 266px; }

  .ctc-stats {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 300px;
    bottom: 484px;
  }

  /* на 320 карточки чисел в макете снова #232325 */
  .ctc-stat { background: #232325; }

  .ctc-stat-num {
    font-size: 43px;
    letter-spacing: -0.43px;
  }

  .ctc-form-title--mobile { padding: 28px 10px 0 12px; }
}
