@media (min-width: 600px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 44px;
  }

  h3 {
    font-size: 30px;
  }

  h4 {
    font-size: 18px;
  }
  p {
    font-size: 16px;
  }
  header {
    padding: 0 2rem;
  }
  nav a:hover,
  nav a:active {
    color: #176282;
  }
  header #title {
    font-size: 24px;
  }
  .no-js #section-first {
    background-image: url('../img/background.png');
  }
  #section-first {
    padding: 2rem;
  }
  #section-first h1 {
    max-width: 620px;
  }
  #first-section-container a {
    margin: 2rem 0 0;
  }
  #first-section-container > div {
    text-align: left;
  }
  #tel-main {
    font-size: 38px;
  }
  #section-about {
    align-items: center;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
  #section-about h2 {
    font-size: 50px;
  }
  #section-about p {
    font-size: 19px;
    max-width: 480px;
  }
  .benefits-item {
    padding: 4rem 2rem 6rem;
  }
  .benefits-item-icon > img {
    max-height: 100px;
    max-width: 100px;
  }
  #section-services {
    padding: 2rem;
  }
  .card {
    margin: 1rem;
  }
  #section-reviews {
    padding: 2rem;
  }
  .reviews-item-description {
    margin-bottom: 2.5rem;
  }
  #section-leave-review {
    padding: 2rem;
  }
  #section-leave-review h3 {
    font-size: 26px;
  }
  #section-contact {
    padding: 2rem 2rem 7rem;
  }

  #contact-form {
    /* margin: 0 auto; */
  }
  #contact-form input
  #contact-form textarea {
    font-size: 17px;
  }
  .modal {
    width: 400px;
  }
  .field-group {
    height: 36px;
  }
  .field-group .field-icon {
    width: 36px;
  }
  .contacts-item {
    margin: 2rem;
  }
  #contacts-container .social-icons > * {
    margin: 0 .5rem;
  }
  a.scroll-up {
    align-items: center;
    background-color: rgba(255,255,255,.5);
    border-radius: 50%;
    box-shadow: 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12), 0 3px 5px -1px rgba(0, 0, 0, .2);
    display: flex;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: fixed;
    right: 0rem;
    bottom: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
  }
  a.scroll-up > div {
    border-top: 2px solid #333;
    border-left:2px solid #333;
    width: 8px;
    height: 8px;
    position: relative;
    top: 2px;
    transform: rotate(45deg);
  }
  a.scroll-up.visible {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (min-width: 960px) {
  header {
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    height: 64px;
    padding: 0 1rem;
  }
  header #logo {
    order: 100;
  }
  header #title {
    order: 200;
  }
  nav {
    background: transparent;
    box-shadow: none;
    position: static;
    order: 400;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    visibility: visible;
    opacity: 1;
    width: auto;
  }
  nav a.nav-item {
    padding: 0 1rem;
    font-size: 18px;
  }
  nav .title {
    display: none;
  }
  .mobile-menu-icon {
    display: none;
  }

  header .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #section-benefits {
    grid-template-columns: repeat(4, minmax(200px, 1fr));

  }
  .card {
    margin: 2rem;
    transition: .3s ease-in-out;
  }
  .card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  }
  .services-item-name {
    margin-bottom: 2rem;
  }
  #reviews-container {
    padding-top: 1rem;
  }
  .reviews-item {
    margin-bottom: 1rem;
  }
  .reviews-item-photo {
    width: 120px;
    height: 120px;
  }
  #section-contact > p {
    font-size: 20px;
  }
  #contacts-container .social-icons > * {
    margin: 0 .8rem;
    width: 30px;
    font-size: 30px;
  }
  #call-me-btn {
    margin-bottom: 0px;
  }
  .contacts-item a {
    align-items: center;
    display: flex;
    justify-content: center;
    height: 48px;
  }
  .field-group .arrow-right:hover {
    cursor: pointer;
  }

}
