section.contacts {
  padding: 20px 0 0;
  border-top: 1px solid #E6E6EB;
}

section.contacts .categories {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  grid-gap: 21px;
}

section.contacts .categories a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  font-family: Nunito;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  border-radius: 12px;
  padding: 0 8px 0 8px;
  color: #63717F;
  border: none;
}

section.contacts .categories a:hover {
  color: #ED704A;
}

section.contacts .categories a picture {
  margin-left: 7px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

section.contacts h2 {
  font-family: Nunito;
  font-weight: 800;
  font-size: 40px;
  line-height: 50px;
  margin: 40px 0 20px;
}

section.contacts p {
  font-family: Rubik;
  font-weight: normal;
  font-size: 18px;
  line-height: 26px;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #3C4248;
  margin: 0 0 20px;
}

section.contacts .persons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 40px;
}

section.contacts .persons .item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  grid-gap: 10px;
}

section.contacts .persons .item picture.photo {
    display: flex;
    /*overflow: hidden;*/
    width: 76px;
    height: 76px;
    margin: 10px;
    background: #F0F0F0;
    -ms-transform: rotate(5deg); /* IE 9 */
    -webkit-transform: rotate(5deg); /* Safari */
    transform: rotate(5deg);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

section.contacts .persons .item picture.photo div.ls-prepare {
    display: flex;
    height: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: 0px solid #E6E6EB;
    -ms-transform: rotate(-15deg); /* IE 9 */
    -webkit-transform: rotate(-15deg); /* Safari */
    transform: rotate(-15deg);
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(130,70,0,0.8);
}
section.contacts .persons .item picture.photo div img.transform_photo {
    height: 100%;
}


section.contacts .persons .item .text {
  margin-top: 20px;
}

section.contacts .persons .item .text .name {
  font-family: Nunito;
  font-weight: bold;
  font-size: 20px;
  line-height: 30px;
  margin: 0;
}

section.contacts .persons .item .text .position {
  font-family: Nunito;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.005em;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #63717F;
  margin: 5px 0 0 0;
}

section.contacts .persons .item .text a {
  font-family: Nunito;
  font-weight: bold;
  font-size: 18px;
  line-height: 24px;
  color: #ED704A;
  padding: 4px 8px 4px 10px;
  background: #F6F7F9;
  border-radius: 20px;
  margin-top: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}

section.contacts .persons .item .text a svg {
  fill: #ED704A;
  margin-right: 14px;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

section.contacts .persons .item .text a:hover {
  color: #fff;
  background: #ED704A;
}

section.contacts .persons .item .text a:hover svg {
  fill: #fff;
}

section.contacts .persons .item .text .tels a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-family: Rubik;
  font-weight: normal;
  font-size: 18px;
  line-height: 26px;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #1D2021;
  padding: 0;
  margin: 0 0 16px;
  background: #fff;
}

section.contacts .persons .item .text .tels a picture {
  margin-right: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

section.contacts .persons .item .text .tels a:hover {
  color: #ED704A;
}

section.contacts .persons .item .text form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

section.contacts .persons .item .text form input[type=text] {
  border: 1px solid #E6E6EB;
  border-radius: 15px;
  padding: 5px 10px;
  font-family: Nunito;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #3C4248;
  margin: 0 0 10px;
  width: 100%;
}

section.contacts .persons .item .text form input[type=text]::-webkit-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form input[type=text]::-moz-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form input[type=text]:-ms-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form input[type=text]::-ms-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form input[type=text]::placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form input[type=text]:focus {
  border: 1px solid #ED704A;
}

section.contacts .persons .item .text form input[type=text]:nth-of-type(2) {
  width: 49%;
}

section.contacts .persons .item .text form input[type=text]:nth-of-type(3) {
  width: 49%;
}

section.contacts .persons .item .text form textarea {
  border: 1px solid #E6E6EB;
  border-radius: 5px 5px 0 0;
  resize: none;
  padding: 10px;
  font-family: Nunito;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #3C4248;
  width: 100%;
}

section.contacts .persons .item .text form textarea::-webkit-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form textarea::-moz-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form textarea:-ms-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form textarea::-ms-input-placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form textarea::placeholder {
  color: #9EADBC;
}

section.contacts .persons .item .text form textarea:focus {
  border: 1px solid #ED704A;
}

section.contacts .persons .item .text form .submit {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E6E6EB;
  border-top: none;
  border-radius: 0 0 5px 5px;
}

section.contacts .persons .item .text form .submit input {
  padding: 2px 22px 2px 8px;
  font-family: Nunito;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.005em;
  -webkit-font-feature-settings: 'tnum' on, 'lnum' on;
          font-feature-settings: 'tnum' on, 'lnum' on;
  color: #63717F;
  border: 1px solid #E6E6EB;
  border-radius: 20px;
  background-color: #fff;
  background: url(../img/index/right.svg) no-repeat 90% 50%;
  margin-left: auto;
  display: block;
}

section.contacts .persons .item .text form .submit input:hover {
  border: 1px solid #ED704A;
  background-color: #ED704A;
  color: #fff;
}

@media (max-width: 1200px) {
  section.contacts .categories {
    display: none;
  }
}

@media (max-width: 768px) {
  section.contacts .persons {
    grid-template-columns: 1fr;
  }

  section.contacts .persons .item:nth-of-type(5) .text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    width: 100%;
  }

  section.contacts .persons .item:nth-of-type(5) .text p {
    width: 100%;
  }

  section.contacts .persons .item:nth-of-type(5) .text .tels {
    width: 50%;
  }
}

@media (max-width: 480px) {
  section.contacts .persons {
    grid-template-columns: 1fr;
  }

  section.contacts .persons .item {
    grid-gap: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  section.contacts .persons .item .text {
    margin: 0;
  }

  section.contacts .persons .item .text .name {
    line-height: 20px;
  }

  section.contacts .persons .item .text .tels {
    width: 100%;
  }

  section.contacts .persons .item .text form input[type=text]:nth-of-type(2) {
    width: 100%;
  }

  section.contacts .persons .item .text form input[type=text]:nth-of-type(3) {
    width: 100%;
  }

  section.contacts .persons .item:nth-of-type(5) .text .tels {
    width: 100%;
  }
}