/* =========================
   CONTACTS HERO — кроп по центру (сверху/снизу равномерно)
   ========================= */

.contacts-page .wrapper{
  /* было слишком высоко — делаем меньше примерно на 10% */
  min-height: 80vh;        /* было 60vh — это как раз минус ~10% */
  padding-top: 0;
  padding-bottom: 0;
}

/* гарантируем, что фон подстроится под новый размер */
.contacts-page .wrapper .wrapper-bg{
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;  /* ВАЖНО: ровно по центру, режет сверху/снизу одинаково */
}

/* чтобы заголовок не прилипал к низу слишком сильно */
.contacts-page .title-box{
  padding-bottom: 22px;
}

/* CONTACTS PAGE */

.contacts-section{
  padding: 70px 0;
}

.contacts-grid{
  gap: 28px;
  align-items: flex-start;
}

/* LEFT */
.contacts-left{
  width: 36%;
  min-width: 320px;

  display: flex;
  flex-direction: column;
}
.contacts-city{
  margin-top: 8px;
  opacity: .75;
}

.contacts-list{
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.contacts-row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
}

.contacts-key{
  opacity: .65;
  font-size: 14px;
}

.contacts-val{
  font-size: 16px;
}

.contacts-link{
  margin-top: 6px;
  font-size: 14px;
  opacity: .8;
}

.contacts-call{
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #2f6bff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* RIGHT CARD */
.contacts-right{
  width: 64%;
  min-width: 520px;
}

.contacts-card{
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);

  max-width: 80%;      /* сузили примерно на 20% */
  margin-left: auto;   /* чтобы красиво стояла справа */
}

.contacts-card-title{
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.contacts-card-desc{
  margin: 0 0 18px;
  opacity: .75;
}

/* FORM GRID */
.contacts-form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contacts-form-message{
  grid-column: 1 / -1;
}

.contacts-form input,
.contacts-form select,
.contacts-form textarea{
  width: 100%;
  height: 54px;
  border-radius: 10px;        /* квадратнее */
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
}

.contacts-form textarea{
  height: auto;
  padding: 14px;
  resize: vertical;
}

.contacts-form-bottom{
  display: flex;
  justify-content: flex-end;  /* как на ANEX: справа */
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.contacts-submit{
  height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.contacts-consent{
  display: inline-flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  opacity: .8;
  max-width: 260px;
}

.contacts-consent input{
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.form-error{
  margin-bottom: 10px;
  color: #b00020;
  font-size: 14px;
  min-height: 18px;
}

/* ADAPTIVE */
@media (max-width: 992px){
  .contacts-grid{
    flex-direction: column;
  }
  .contacts-left,
  .contacts-right{
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 992px){
  .contacts-card{ 
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px){
  .contacts-row{
    grid-template-columns: 1fr;
  }
  .contacts-form-grid{
    grid-template-columns: 1fr;
  }
  .contacts-form-bottom{
    flex-direction: column;
    align-items: stretch;
  }
  .contacts-consent{
    max-width: none;
  }
}

/* MAP */
.contacts-map{
  margin-top: 36px;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
}

.contacts-map iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px){
  .contacts-map{
    height: 320px;
    border-radius: 14px;
  }
}


.contacts-reviews{
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  background: #eef3ff;
  color: #2f6bff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(47,107,255,.25);
}
.contacts-reviews:hover{
  background: #e4ebff;
}

.contacts-consent a{
  color: #2f6bff;
  text-decoration: none;
  font-weight: 500;
}
.contacts-consent a:hover{
  text-decoration: underline;
}


.contacts-form-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between; /* чекбокс слева, кнопка справа */
  gap: 16px;
  margin-top: 14px;
  flex-wrap: nowrap;
}

.contacts-consent{
  display: inline-flex;
  align-items: center;     /* ВАЖНО: ровняем по центру */
  gap: 10px;
  font-size: 14px;
  opacity: .8;

  max-width: none;         /* убираем ограничение, чтоб не ломало строку */
  flex: 1;                 /* занимает место слева */
}

.contacts-consent input{
  width: 16px;
  height: 16px;
  margin: 0;               /* убираем кривой отступ сверху */
  flex: 0 0 auto;
}

.contacts-consent span{
  line-height: 1.25;
}

@media (max-width: 560px){
  .contacts-form-bottom{
    flex-direction: column;
    align-items: stretch;
  }
  .contacts-submit{
    width: 100%;
  }
}

.contacts-page .contacts-reviews-btn{
  margin-top: 28px;
}

