/* =============================================
   КОНТАКТНАЯ ИНФОРМАЦИЯ
   ============================================= */

.contact-info {
  padding: 60px 0 0;
}


.contact-info.contacts-map-form {
  padding-bottom: 60px;
}

@media (min-width: 1080px) {
  .contact-info:first-child {
    padding-top: 80px;
  }

  .contact-info.contacts-map-form  {
    padding-bottom: 80px;
  }
}

.contact-info__grid {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
  margin-top: 40px;
}

.contact-info__card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  position: relative;
  flex: 1;
  padding: 15px;
  width: 100%;
  max-width: 210px;
  border: 1px solid var(--accent);
}

.contact-info__card::before {
  display: block;
  content: '';
  position: absolute;
  width: calc(100% - 10px);
  height: calc(100% - 14px);
  border: 1px solid var(--accent);
  left: 5px;
  top: 7px;
  pointer-events: none;
}



.contact-info__sep {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.contact-info__sep span  {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  border: 0.5px solid var(--accent);
}

.contact-info__sep span::before {
  display: block;
  content: '';
  width: 75%;
  height: 70%;
  background-color: var(--secondary);
}

.contact-info__label {
  margin-bottom: 20px;
}

.contact-info__value {
  display: block;
  margin-bottom: 20px;
}

.contact-info__value:last-child {
  margin-bottom: 0;
}

.contact-info__socials {
  display: flex;
  gap: 8px;
}

/* =============================================
   АДРЕСА
   ============================================= */

.addresses__grid {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.addresses__card {
  flex: 1;
  position: relative;
  padding: 48px 24px;
  border: 1px solid var(--accent);
}

.addresses__card::before {
  display: block;
  content: '';
  pointer-events: none;
  position: absolute;
  width: calc(100% - 10px);
  height: calc(100% - 14px);
  left: 5px;
  top: 7px;
  border: 1px solid var(--accent);
}

.addresses__text {
  margin-top: 20px;
}

/* =============================================
   КАРТА + ФОРМА
   ============================================= */

.contacts-map-form {
  overflow: hidden;
}

.contacts-map-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contacts-map-form__map-col {
  display: grid;
  grid-template-rows: auto 1fr;
}

.contacts-map-form__map {
  padding: 5px;
  border: 1px solid var(--accent);
  margin-top: 40px;
  position: relative;
}

.contacts-map-form__map::before {
  display: block;
  position: absolute;
  content: '';
  width: 23px;
  bottom: -1px;
  right: -23px;
  border-bottom: 1px solid var(--accent);
}

.contacts-map-form__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-map-form__form-col {
  flex: 0 0 480px;
}

.contacts-map-form__card {
  position: relative;
  margin-top: 40px;
  padding: 40px 64px 40px 38px;
  border: 1px solid var(--accent);
  border-top-right-radius: 148px;
}

.contacts-map-form__card::before {
  display: block;
  content: '';
  position: absolute;
  width: 23px;
  height: 20px;
  left: -23px;
  top: -20px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.contacts-map-form__card::after {
  display: block;
  content: '';
  position: absolute;
  width: 10px;
  height: 19px;
  right: -10px;
  bottom: -19px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.contacts-map-form__form-title {
  margin-bottom: 20px;
}

.contacts-map-form .input-text {
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  color: var(--color-text);
}

.contacts-map-form .input-text::placeholder {
  color: var(--color-muted);
}

.contacts-map-form .callback__submit {
  background: var(--accent);
  color: var(--primary);
}

.contacts-map-form .callback__submit span {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* =============================================
   АДАПТИВ
   ============================================= */

@media (max-width: 1080px) {
  .addresses__grid {
    flex-wrap: wrap;
  }

  .contact-info__card,
  .addresses__card {
    flex: 1 1 45%;
  }

  

  

  .contacts-map-form__form-col {
    flex: none;
  }

  .contact-info__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto 1fr;
  }

  .contact-info__sep:nth-child(4) {
    display: none;
  }

  .contact-info__card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  .contacts-map-form__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contacts-map-form__card {
    width: 100%;
    justify-self: center;
    border-top-right-radius: 64px;
    border-bottom: 0;
  }

  .contacts-map-form__card::after {
    display: none;
    
  }

  .contacts-map-form__map {
    height: 300px;
  }

  .contact-info__card {
    align-items: center;
    padding: 25px 15px;
  }

  .contact-info__card:last-child {
    align-items: flex-start;
  }

  .contact-info__grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .contact-info__sep span {
    width: 30px;
    height: 24px;
  }

  .contact-info__sep:nth-child(4) {
    display: flex;
  }

  .contact-info__sep {
    flex-direction: row;
    width: 100%;
  }

  .addresses__grid {
    flex-direction: column;
    gap: 10px;
  }

  .addresses__card {
    padding: 15px;
  }

  
.contact-info__label {
  margin-bottom: 10px;
}

.contact-info__value {
  margin-bottom: 10px;
}

.contacts-map-form__card {
  padding: 0 7px 12px 5px;
}



  .contact-info__card:not(:last-child)::before,
  .contact-info__card:not(:last-child)::after {
    display: none;
  }
}
