/* ============================================
   Block: contact-form — форма обратной связи
   ============================================ */

.b-contact-form {
  padding: 48px 0 72px;
  background: var(--bg, #F7F3EC);
  color: var(--text, #3B3437);
  font-family: 'Manrope', sans-serif;
}

.b-contact-form__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

/* --- Форма --- */

.b-contact-form__main {
  background: var(--surface, #FDFBF7);
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 16px;
  padding: 32px;
}

.b-contact-form__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 6px;
}

.b-contact-form__subtitle {
  font-size: 14px;
  color: var(--muted, #8A7F7A);
  margin: 0 0 24px;
}

.b-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.b-contact-form__field {
  margin-bottom: 14px;
}

.b-contact-form__grid .b-contact-form__field {
  margin-bottom: 0;
}

.b-contact-form__grid {
  margin-bottom: 14px;
}

/* Чекбокс согласия */

.b-contact-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted, #8A7F7A);
  cursor: pointer;
  margin: 4px 0 20px;
}

.b-contact-form__check a {
  color: var(--accent, #6E5A7E);
}

.b-contact-form__check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.b-contact-form__check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line, #E4DCD2);
  border-radius: 4px;
  background: var(--surface, #FDFBF7);
  position: relative;
  transition: background .2s, border-color .2s;
}

.b-contact-form__check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.b-contact-form__check input:checked + .b-contact-form__check-box {
  background: var(--accent, #6E5A7E);
  border-color: var(--accent, #6E5A7E);
}

.b-contact-form__check input:checked + .b-contact-form__check-box::after {
  opacity: 1;
}

.b-contact-form__submit {
  min-width: 260px;
}

/* --- Карточка контактов --- */

.b-contact-form__aside {
  background: var(--lavender-soft, #E9E1EF);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 24px;
}

.b-contact-form__aside-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 18px;
}

.b-contact-form__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b-contact-form__contact {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.b-contact-form__contact-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface, #FDFBF7);
  color: var(--accent, #6E5A7E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b-contact-form__contact small {
  display: block;
  font-size: 12px;
  color: var(--muted, #8A7F7A);
  margin-bottom: 2px;
}

.b-contact-form__contact a {
  color: var(--text, #3B3437);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.b-contact-form__contact a:hover {
  color: var(--accent, #6E5A7E);
}

.b-contact-form__messengers {
  display: flex;
  gap: 14px;
}

.b-contact-form__address {
  font-size: 14px;
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .b-contact-form {
    padding: 32px 0 56px;
  }

  .b-contact-form__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .b-contact-form__aside {
    position: static;
  }
}

@media (max-width: 480px) {
  .b-contact-form__main {
    padding: 20px;
  }

  .b-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .b-contact-form__submit {
    width: 100%;
  }

  .b-contact-form__aside {
    padding: 20px;
  }
}
