body {
  margin: 0;
}

.container {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

nav {
  padding: 48px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #95e1d3;
  line-height: 0.8;
}

.navigation {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 490px;
  padding: 0;
  margin: 0;
}

.navigation a {
  position: relative;
  text-transform: uppercase;
  color: #95e1d3;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.navigation a::after {
  display: none;
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: #f38181;
  left: 0;
  bottom: -12px;
}

.navigation a:focus::after,
.navigation a:hover::after {
  display: block;
}

.navigation a:focus,
.navigation a:hover {
  color: #f38181;
}

/* MAIN */

main {
  padding: 72px 0 80px;
}

.section-services {
  padding-bottom: 84px;
}

.title-1 {
  font-family: 'Kaushan Script', cursive;
  font-size: 24px;
  text-align: center;
  margin: 0 0 8px;
}

.title-2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  color: #333333;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 105px;
  position: relative;
}

.title-2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -40px;
  width: 60px;
  height: 3px;
  background: #f38181;
}

.services {
  min-height: 242px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-between;
}

.item {
  width: 278px;
  padding-left: 60px;
  position: relative;
}

.item::before {
  position: absolute;
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  top: 0;
  left: 0;
  background: no-repeat center;
}

.item-1::before {
  background-image: url(../img/icon-clock.png);
}

.item-2::before {
  background-image: url(../img/icon-line.png);
}

.item-3::before {
  background-image: url(../img/icon-computer.png);
}

.item-4::before {
  background-image: url(../img/icon-book.png);
}

.item-5::before {
  background-image: url(../img/icon-home.png);
}

.item-6::before {
  background-image: url(../img/icon-image.png);
}

.item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #333333;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 0.9;
}

.main-text-style {
  margin: 0;
  color: #999999;
  font-size: 15px;
  font-weight: 300;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

.team-description {
  text-align: center;
  padding: 0 110px 86px;
}

.block-our-team {
  display: flex;
  justify-content: space-between;
}

.teammate-background{
  background-color: #95e1d3;
   width: 380px;
  height: 470px;
  position: relative;
  margin-bottom: 24px;
}

.teammate-photo {
  width: 380px;
  height: 470px;
  margin-bottom: 27px;
}

.photo-overlay {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
   background: linear-gradient(#f38181dc, #fce38ada);
}

.icon {
  width: 55px;
  height: 56px;
  background-color: #fce38a;
  border: 1px solid #f9bc8785;
}

.icon a{
  text-decoration: none;
  display: block;
  width: 55px;
  height: 56px;
  background-repeat: no-repeat;
  background-position: center;
}
 .icon-facebook {
  background-image: url(../img/icon-social-facebook.png);
}

.icon-twitter {
  background-image: url(../img/icon-social-twitter.png);
}

.icon-pinterest {
  background-image: url(../img/icon-social-pinterest.png);
}

.icon-instagram {
  background-image: url(../img/icon-social-instagram.png);
}

.icon:hover {
  background-color: #95e1d3;
}

.teammate-background:hover .teammate-photo{
  transform: translate(-10px, -10px);
  transition: 1s;
}

.teammate-background:hover .photo-overlay {
  opacity: 1;
  transition: 1s;
}
/* 
.photo-overlay:hover .icon { 
  transform: translate(-10px, -10px);
}
 */

.teammate p {
  text-align: center;
}

.teammate-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.teammate-profession {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #c6c6c6;
  margin: 0;
  font-style: italic;
}

footer {
  padding: 10px 0 10px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-info {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 400;
  font-size: 14px;
  color: #4d4d4d;
}

.copyright-info span {
  font-family: 'Montserrat', sans-serif;
  font-size: 400;
  color: #f38181;
}

footer form {
  font-size: 0;
  height: 40px;
}

footer form input[type="email"] {
  width: 230px;
  height: 40px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  padding-left: 10px;
  border: 1px solid #e5e5e5;
  border-right: 0;
  box-sizing: border-box;
}

footer form input[type="email"]::placeholder {
  color: #e5e5e5;
  font-size: 15px;
}

footer form input[type="submit"] {
  width: 150px;
  padding: 11px 0;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-align: center;
  background: #95e1d3;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: transparent;
  cursor: pointer;
}
