.footer{
  background:#000;
  padding:58px 5% 34px;
  border-top:1px solid #1A1A1A;
}

/* TOP */

.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  margin-bottom:38px;
}

.footer-contact{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}

.footer-contact a{
  display:block;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.04em;
}

.footer-phone{
  font-size:18px;
}

.footer-mail{
  font-size:18px;
}

/* BUTTONS */

.footer-buttons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
}

.footer-buttons .btn{
  min-width:120px;
  height:42px;
  padding:0 20px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:transparent;
  border:1px solid rgba(255,255,255,.42);
  border-radius:40px;

  color:#fff;
  text-decoration:none;

  font-size:13px;
  font-weight:400;
  letter-spacing:.08em;
  text-transform:uppercase;

  transition:.3s;
}

.footer-buttons .btn:hover{
  background:#B22222;
  border-color:#B22222;
  color:#fff;
  transform:translateY(-2px);
}

/* MIDDLE */

.footer-middle{
  display:flex;
  justify-content:flex-start;
  margin-bottom:42px;
}

.footer-city h3{
  font-size:18px;
  margin-bottom:10px;
  font-weight:500;
  color:#fff;
  letter-spacing:.08em;
}

.footer-city p{
  font-size:14px;
  line-height:1.6;
  color:#8D8D8D;
}

/* BOTTOM */

.footer-bottom{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;

  padding-top:28px;
  border-top:1px solid #1A1A1A;
}

.footer-bottom-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.footer-bottom-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
}

.footer-bottom a{
  font-size:13px;
  color:#8D8D8D;
  text-decoration:none;
  letter-spacing:.04em;
  transition:.3s;
}

.footer-bottom a:hover{
  color:#B22222;
}

.footer-social-link{
  color:#fff !important;
  font-weight:500;
}

.footer-social-link:hover{
  color:#B22222 !important;
}

/* COPYRIGHT */

.footer-copy{
  margin-top:26px;
  text-align:center;
  font-size:12px;
  line-height:1.5;
  color:#5f5f5f;
  letter-spacing:.04em;
}

/* MODAL */

.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.82);
  z-index:99999;
}

.modal.active{
  display:flex;
}

.modal-content{
  position:relative;
  width:100%;
  max-width:420px;
  padding:44px 40px;
  background:#0a0a0a;
  border:1px solid #1A1A1A;
  text-align:center;
}

.modal-content h2{
  font-size:28px;
  font-weight:400;
  letter-spacing:.06em;
  color:#fff;
}

.modal-content input{
  width:100%;
  margin-top:28px;
  padding:14px 0;
  background:transparent;
  border:none;
  border-bottom:1px solid rgba(255,255,255,.3);
  color:#fff;
  outline:none;
}

.modal-content input::placeholder{
  color:#707070;
}

.modal-content .btn{
  width:100%;
  margin-top:24px;
}

.close{
  position:absolute;
  top:14px;
  right:18px;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  opacity:.7;
  transition:.3s;
}

.close:hover{
  opacity:1;
  color:#B22222;
}

/* MOBILE */

@media(max-width:900px){

  .footer{
    padding:48px 5% 30px;
  }

  .footer-top{
    flex-direction:row;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:34px;
  }

  .footer-contact{
    flex:1 1 auto;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .footer-phone{
    font-size:14px;
    line-height:1.2;
    white-space:nowrap;
  }

  .footer-mail{
    font-size:14px;
    line-height:1.2;
    white-space:nowrap;
  }

  .footer-buttons{
    flex:0 0 auto;
    width:auto;
    justify-content:flex-end;
    align-items:flex-start;
    gap:8px;
    flex-wrap:nowrap;
  }

  .footer-buttons .btn{
    min-width:82px;
    height:36px;
    padding:0 12px;
    font-size:10px;
    letter-spacing:.06em;
  }

  .footer-middle{
    margin-bottom:34px;
  }

  .footer-bottom{
    gap:14px;
  }

  .footer-bottom-top,
  .footer-bottom-bottom{
    flex-wrap:wrap;
    gap:14px;
  }

  .footer-copy{
    margin-top:22px;
    font-size:11px;
  }

  .modal-content{
    max-width:92%;
    padding:38px 24px;
  }

  .modal-content h2{
    font-size:24px;
  }
}

@media(max-width:390px){

  .footer-top{
    gap:12px;
  }

  .footer-phone{
    font-size:16px;
  }

  .footer-mail{
    font-size:11px;
  }

  .footer-buttons{
    gap:6px;
  }

  .footer-buttons .btn{
    min-width:72px;
    height:34px;
    padding:0 9px;
    font-size:9px;
  }
}