body {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.5;

  background-color: #e5f1f1;
  color: #ad3510;
  margin: 40px auto 50px auto;
  width: 1126px;
}

header {
  display: flex;
  line-height: 1.2;
  align-items: center;
  justify-content: space-between;
}

h1 {
  color: #1d1757;
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 700;
}

section.about h1.about {
  color: #ad3510;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
}

h2 {
  color: #1d1757;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

h3 {
  color: #1d1757;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
}

nav, footer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 2.5;
}

a {
  color:  #6da1e6;
  text-decoration: none; 
  transition: color 0.5s;
}

a.nav {
  margin: 0 0 0 32px;
}

a:hover, a.selected {
 color: #173d6e;
}

section {
 margin: 100px 0 100px 0;
  
 display: grid;
 grid-template-columns: repeat(12, 1fr);
 gap: 24px 24px;
}

section h2 {
  grid-column:  2/span 10;
}

section a.imglink, section img {
  grid-column:  2/span 10;
}

section.contact div.form {
  grid-column:  4/span 6;
}

section.about h1.about {
  grid-column: 3/span 8;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 64px 0;
}

footer a {
  margin: 0 16px 0 16px;
}

footer.about {
  margin-bottom: 64px;
}

input, textarea{
  width:100%;
  background-color: #faf5f5;
  border: 2px solid #d89494;
  color: #ad3510;
  padding: 8px 16px 8px 16px;
}

label {
  display: block;
  margin: 16px 0 16px 0;
}

textarea {
  height: 200px;
}

button {
  background-color: #d89494;
  border: none;
  padding:10px;
  font-size: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #ad3510;
}

input:focus, textarea:focus {
  border: 2px solid #ad3510;
}


@media (max-width: 1180px) {
  body {
    width: auto;
    margin: 40px 64px 64px 64px;
  }
  
  h1 {
    font-size: 45px;
  }
  nav, footer {
    font-size: 24px;
  }
   section.about h1.about {
    font-size: 24px;
	} 
}

section:hover a.imglink{
  box-shadow: 0 0 10px rgba(82, 22, 22, 0.685);
}

@media (max-width: 920px) {
  header {
    flex-direction: column;
  }
  a.nav {
  	margin: 0 16px 0 16px;
  }
  section {
    margin: 32px 0 32px 0;
  }
}


@media (max-width: 768px){
  section {
		grid-template-columns: repeat(4, 1fr);
 		gap: 24px 24px;
  }
  section h2, section a.imglink, section img,
  section.about h1.about,
  section.contact div.form {
  grid-column:  1/span 4;
	}
}


@media (max-width: 526px) {
   body {
    margin: 24px 24px 0 24px;
     //line-height: 1;//
  }
  h1 {
    font-size:  32px;
    line-height: 1.5;
    margin: 0 0 12px 0;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    }
  h2{
      font-size: 12px;
    }
  footer {
      margin: 0 0 0 0;
    }
  
  section.about h1.about {
    font-size: 16px;
  }
  footer.about {
    margin: 100px 0 0 0;
  }
}
  
  @media (max-width: 336px) {
    h1 {
      font-size: 30px;
    }
    section {
     margin: 16px 0 32px 0;
    }
  }

  
  


