/* ============================================================
   About + Lead (О компании + Заявка)
   ============================================================ */

.about-lead {
  padding: 6rem 1rem;
  background: #FAFAFA;
}

.about-lead__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* --- Левая колонка --- */

.about__title {
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--c-primary, #1E1E1E);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about__text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about__stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
}

.about-stat__value {
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #C8963E;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-stat__label {
  font-size: 0.9rem;
  color: #888;
}

/* Фото команды */
.about__team {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.team-member__photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #C8963E;
  box-shadow: 0 8px 20px rgb(0 0 0 / 8%);
}

.team-member__info {
  display: flex;
  flex-direction: column;
}

.team-member__name {
  font-family: Comfortaa, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-primary, #1E1E1E);
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: 0.95rem;
  color: #888;
}

/* Контакты */
.about__contacts {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #E5E5E5;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--c-primary, #1E1E1E);
  font-family: Comfortaa, system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.contact-link svg {
  color: #C8963E;
}

.contact-link:hover {
  color: #C8963E;
}

.contact-link--tg {
  color: #08c;
}

.contact-link--tg svg {
  color: #08c;
}

.contact-link--tg:hover {
  opacity: 0.8;
}

/* --- Правая колонка: Форма --- */

.lead-form {
  background: #FFF;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgb(0 0 0 / 6%);
  border: 1px solid #E5E5E5;
}

.lead-form__title {
  font-family: Comfortaa, system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-primary, #1E1E1E);
  margin-bottom: 0.5rem;
}

.lead-form__subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Поля формы */
.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: #FAFAFA;
}

.form__input:focus {
  outline: none;
  border-color: #C8963E;
  background: #FFF;
}

/* Чекбокс */
.form__group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.form__group--checkbox input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  accent-color: #C8963E;
  cursor: pointer;
}

.form__group--checkbox label {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
  cursor: pointer;
}

.form__submit {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
}

/* ============================================================
   ФОРМА: БЛОК "ДОПОЛНИТЕЛЬНО"
   ============================================================ */
.form__toggle-optional {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #C8963E;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.form__toggle-optional:hover {
  opacity: 0.8;
}

.form__toggle-icon {
  transition: transform 0.3s ease;
}

.form__toggle-optional.is-open .form__toggle-icon {
  transform: rotate(45deg);
}

.form__optional {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   НОВЫЕ СТИЛИ ДЛЯ ФОРМЫ ЗАЯВКИ (ФАЙЛЫ, АУДИО, КРЕСТИКИ)
   ============================================================ */

/* Строка с файлами и аудио */
.form__attachments-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Обертки для прикреплений */
.file-attach-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.voice-attach-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  /* Запрещаем растягиваться */
}

/* Кнопка прикрепления файлов */
.file-attach-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: #FFFDF9;
  border: 1px dashed #C8963E;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 140px;
}

.file-attach-btn:hover {
  background: #FAFAFA;
  border-color: #E0B03A;
}

.file-attach-btn__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1E1E1E;
}

.file-attach-btn__subtitle {
  font-size: 0.75rem;
  color: #888;
}

.form__file-hidden {
  display: none;
}

/* Текст выбранных файлов */
.file-attach__chosen {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.5rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Круглая кнопка записи */
.voice-rec-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.voice-rec-btn:hover {
  background: #FFFDF9;
  border-color: #C8963E;
}

.voice-rec-btn.is-recording {
  background: #FFEBEB;
  border-color: #D32F2F;
  color: #D32F2F;
}

.voice-rec-btn__icon {
  color: #C8963E;
  transition: color 0.3s;
}

.voice-rec-btn.is-recording .voice-rec-btn__icon {
  color: #D32F2F;
}

/* Пульсация при записи */
.voice-rec-btn__pulse {
  display: none;
}

.voice-rec-btn.is-recording .voice-rec-btn__pulse {
  display: block;
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #D32F2F;
  animation: pulse-red 1.2s infinite;
  pointer-events: none;
}

@keyframes pulse-red {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Статус записи (таймер) */
.voice-rec__status {
  font-family: monospace;
  font-size: 0.85rem;
  color: #D32F2F;
  margin-top: 0.25rem;
  text-align: center;
}

/* Плеер (вынесен из обертки) */
.voice-playback {
  margin-top: 1rem;
  width: 100%;
  display: none;
  /* Управляется через JS (display: flex) */
  animation: slideDown 0.25s ease forwards;
}

.voice-playback audio {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  outline: none;
  background: #FAFAFA;
  border: 1px solid #E5E5E5;
}

/* Крестик удаления (в стиле iOS/Android) */
.attachment-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF3B30;
  color: #FFF;
  border: 1.5px solid #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.attachment-close:hover {
  transform: scale(1.1);
}

.form__group:has(.form__attachments-row) {
  margin-bottom: 0;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (width <=960px) {
  .about-lead__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-lead__inner>* {
    min-width: 0;
    width: 100%;
  }
}

@media (width <=768px) {
  .about__stats {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .about-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 0.75rem;
  }

  .about-stat__value {
    font-size: 2.2rem;
    margin-bottom: 0;
  }

  .about-stat__label {
    font-size: 0.9rem;
  }

  .about__team {
    flex-direction: column;
    gap: 1.5rem;
  }

  .team-member {
    width: 100%;
  }

  .team-member__photo {
    width: 90px;
    height: 90px;
  }

  .about__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (width <=600px) {
  .about-lead {
    padding: 4rem 1rem;
  }

  .lead-form {
    padding: 1.5rem;
  }

  .about__title {
    font-size: 1.6rem;
  }

  .lead-form__title {
    font-size: 1.5rem;
  }
}