* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

a,
span,
p {
  color: #1c232b;
}

.overlay {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
  -webkit-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
}

.modal {
  opacity: 0;
  visibility: hidden;
  width: 90%;
  max-width: 1100px;
  position: fixed;
  top: 10%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  height: auto;
  z-index: 30;
  -webkit-box-shadow: 0 3px 10px -0.5px rgba(0, 0, 0, 0.2);
          box-shadow: 0 3px 10px -0.5px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  background-color: #fff;
  -webkit-transition: 0.3s all;
  -o-transition: 0.3s all;
  transition: 0.3s all;
	overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
}

.modal-close-btn, .work-modal-close-btn {
  border: none;
  background-color: transparent;
  width: 28px;
  height: 28px;
  position: absolute;
  top: 15px;
  right: 15px;
	z-index: 15;
	cursor: pointer;
}

.modal.active,
.overlay.active {
  opacity: 1;
  visibility: visible;
}

.container {
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.header-content {
  padding: 1rem 1.5rem;
  line-height: 1.3;
}

.logo-img {
  width: 100%;
}

#work-modal .logo-img {
  height: 50%;
  width: auto;
  right: 100px;
  top: 50px;
}

.title {
  display: block;
  font-size: 65px;
  font-weight: 700;
  line-height: 0.9;
}

.subtitle {
  margin-bottom: 8px;
  display: block;
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
}

.header-text {
  line-height: 1.3;
}

.middle-modal {
  background-color: #fff3ab;
}

.middle-text {
  padding: 1rem 1.5rem;
  line-height: 1.3;
}

.footer-content {
  padding: 1rem 0 2rem 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.footer-text {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  line-height: 1.3;
}

.btn {
  padding: 1rem 2rem;
  font-weight: 700;
  border: 1px solid #1c232b;
  border-radius: 0.75rem;
  text-decoration: none;
  text-align: center;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.btn:hover,
.btn:focus {
  background-color: rgb(240, 240, 240);
  opacity: 0.85;
}

.btn-mail {
  margin-bottom: 1rem;
}

.mail-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.link {
  font-weight: bold;
  color: #1c232b;
  text-decoration: none;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
cursor: pointer;
}

.link:hover,
.link:focus {
  opacity: 0.85;
}

@media (max-width: 576px) {
  #work-modal .logo-img--width-100 {
    width: 100%;
  }
  .header-logo--margin-bottom-40 {
    margin-bottom: 40px;
  }
  .header-content {
    padding-top: 3rem;
  }
}

@media (min-height: 680px) {
	.modal {
		bottom: auto;
		
	}
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .header-content {
    padding-top: 4.5rem;
  }
  .header-logo {
    position: relative;
    margin-bottom: 120px;
  }
  .title,
  .subtitle {
    position: relative;
    z-index: 100;
  }
  .logo-img {
    position: absolute;
    top: -70px;
    right: -40px;
    width: 80%;
    z-index: 10;
  }
  .header-text {
    position: relative;
    z-index: 100;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .header-logo {
    margin-bottom: 140px;
  }
  .logo-img {
    width: 60%;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  .header-logo {
    margin-bottom: 50px;
  }
  .logo-img {
    width: 50%;
    right: 0;
  }
  .header-text {
    width: 50%;
  }
  .footer-content {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
  .footer-text {
    width: 50%;
  }
}

@media (min-width: 1220px) {
	.modal {
		left: 50%;
		right: auto;
		-webkit-transform: translateX(-50%);
		    -ms-transform: translateX(-50%);
		        transform: translateX(-50%);
	}
}