.body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../fonts/OpenSans-Regular.woff") format("woff"), url("../fonts/OpenSans-Regular.woff2") format("woff2");
}
.footer {
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid #fff;
}
.footer__list {
  list-style-type: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 10px 20px 10px 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #7c879d;
}
@media (min-width: 768px) {
  .footer__list {
    max-width: 768px;
  }
}
@media (min-width: 1280px) {
  .footer__list {
    max-width: 1280px;
  }
}
.footer__link {
  display: block;
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
}
.footer__img-logo {
  display: block;
}
.footer__info {
  color: #FFFFFF;
  font-size: 12px;
  line-height: 0.95;
  text-align: center;
}
.footer__item--mobile {
  display: none;
}
@media (min-width: 768px) {
  .footer__item--mobile {
    display: block;
  }
}
.header {
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid rgba(113, 122, 134, 0.2);
  position: fixed;
  top: 0;
  z-index: 2;
  background-color: #ffffff;
}
@media (min-width: 768px) {
  .header {
    padding: 0;
  }
}
.header__nav {
  width: 100%;
  max-width: 320px;
  position: relative;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .header__nav {
    max-width: 768px;
    padding: 0 20px;
  }
}
@media (min-width: 1280px) {
  .header__nav {
    max-width: 1280px;
  }
}
.header__wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  justify-content: stretch;
  align-items: center;
  position: relative;
}
@media (min-width: 768px) {
  .header__wrap {
    display: none;
  }
}
.header__inner-wrap {
  padding-left: 10px;
}
.header__info {
  width: 95px;
  margin-right: 25px;
  margin-bottom: 3px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: #3D3F5B;
}
.header__link--logotype {
  display: block;
  margin-right: 30px;
  text-decoration: none;
}
.header__link-tel {
  display: block;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: #3D3F5B;
}
.header__link--logo {
  display: none;
}
@media (min-width: 768px) {
  .header__link--logo {
    display: block;
  }
}
.header__img-logo {
  display: block;
}
.header__btn {
  position: absolute;
  top: 17px;
  right: 15px;
  z-index: 2;
  display: block;
  width: 30px;
  height: 22px;
  margin-right: 10px;
  background: url("../img/icons/burger.svg") center no-repeat;
  background-size: contain;
  cursor: pointer;
  border: none;
  transition: transform 0.5s ease;
  /* плавное вращение */
}
@media (min-width: 768px) {
  .header__btn {
    display: none;
  }
}
.header__btn.active {
  transform: rotate(90deg);
  /* поворот при клике */
}
.header__list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #3D3F5B;
  position: absolute;
  top: 68px;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}
@media (min-width: 768px) {
  .header__list {
    padding: 0;
    max-width: 768px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    position: static;
    opacity: 1;
    max-height: none;
  }
}
@media (min-width: 1280px) {
  .header__list {
    max-width: 1280px;
  }
}
.header__list.open {
  opacity: 1;
  max-height: 1000px;
  /* большой запас, чтобы весь контент точно поместился */
}
.header__link {
  text-decoration: none;
  display: block;
  padding: 20px;
  color: #FFFFFF;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  font-size: 14px;
}
.header__link:hover {
  transition: background 0.5s linear;
}
@media (min-width: 768px) {
  .header__link {
    padding: 12px 0;
    overflow: visible;
    font-weight: 400;
    font-size: 15px;
    color: #717a86;
    transition: color 0.3s linear;
  }
  .header__link::after {
    display: block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 1px;
    background-color: #717a86;
    opacity: 0;
  }
  .header__link:hover::after {
    opacity: 1;
    transition: opacity 0.5s linear;
  }
}
@media (min-width: 1280px) {
  .header__link {
    font-size: 18px;
  }
}
.header__link--logo {
  display: none;
}
@media (min-width: 768px) {
  .header__link--logo {
    display: block;
  }
}
.header__item--social {
  display: none;
}
@media (min-width: 768px) {
  .header__item--social {
    display: block;
  }
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
}
.social__link {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 5px;
}
.location {
  width: 100%;
  max-width: 320px;
  padding: 30px 0;
  background: #F9FAFC;
}
@media (min-width: 768px) {
  .location {
    max-width: 768px;
    margin: 0 auto;
  }
}
@media (min-width: 1280px) {
  .location {
    max-width: 1280px;
  }
}
.location__title {
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  margin-bottom: 10px;
  padding-left: 10px;
  line-height: 1.04;
  color: #717a86;
}
@media (min-width: 768px) {
  .location__title {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 20px;
    font-size: 28px;
  }
}
.location__subtitle {
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 10px;
  padding-left: 10px;
  line-height: 1.17;
  color: #717a86;
}
@media (min-width: 768px) {
  .location__subtitle {
    font-size: 20px;
  }
}
.location__info {
  width: 100%;
  max-width: 300px;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 10px;
  padding-left: 10px;
  line-height: 1.17;
  color: #717a86;
}
@media (min-width: 768px) {
  .location__wrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
.location__inner-wrap {
  margin-bottom: 20px;
}
.location__link {
  display: block;
  padding: 3px 0 2px 10px;
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  color: #717a86;
}
@media (min-width: 1280px) {
  .location__link {
    display: block;
    font-size: 16px;
  }
}
@media (min-width: 1280px) {
  .hidden-map-min {
    display: none;
  }
}
@media (min-width: 10px) {
  .hidden-map-max {
    display: none;
  }
}
@media (min-width: 1280px) {
  .hidden-map-max {
    display: block;
    margin-bottom: 20px;
  }
}
.main {
  padding-top: 78px;
}
@media (min-width: 768px) {
  .main {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
  }
}
@media (min-width: 1280px) {
  .main {
    max-width: 1280px;
  }
}
.masters {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  margin: 0 auto;
  background: #F9FAFC;
}
@media (min-width: 768px) {
  .masters {
    max-width: 768px;
  }
}
@media (min-width: 1280px) {
  .masters {
    max-width: 1280px;
    display: flex;
    flex-wrap: wrap;
  }
}
.masters__img {
  display: block;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .masters__img {
    margin-bottom: 10px;
  }
}
@media (min-width: 768px) {
  .masters__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 10px 10px 20px;
  }
}
@media (min-width: 1280px) {
  .masters__wrap {
    flex-direction: column;
    justify-content: space-around;
  }
}
.masters__title {
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  margin-bottom: 20px;
  padding: 20px 0 0 10px;
  line-height: 1.04;
  color: #717a86;
}
@media (min-width: 768px) {
  .masters__title {
    width: 320px;
    font-size: 28px;
    margin-bottom: 10px;
    padding-left: 0;
  }
}
.masters__info {
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 25px;
  padding-left: 10px;
  line-height: 1.17;
  color: #717a86;
}
@media (min-width: 768px) {
  .masters__info {
    width: 380px;
    font-size: 16px;
    padding-left: 0;
  }
}
.masters__feedback {
  display: block;
  width: 250px;
  height: 50px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 14px 34px;
  background: #7c879d;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
}
.masters__feedback:hover {
  background-color: #717a86;
  transition: background-color 0.5s linear;
}
@media (min-width: 768px) {
  .masters__feedback {
    margin: 0;
  }
}
@media (min-width: 768px) {
  .masters__inner-wrap {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
@media (min-width: 1280px) {
  .masters__inner-wrap {
    margin-top: 60px;
  }
}
.masters__subinner-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.masters__text {
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 25px;
  padding-left: 10px;
  line-height: 1.17;
  color: #717a86;
}
*,
*::before,
*::after,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  outline-offset: 0;
}
.services {
  width: 100%;
  max-width: 320px;
  padding: 20px 0;
  font-weight: 400;
  line-height: 1.39;
  color: #717a86;
  background: #e8ecf4;
}
@media (min-width: 768px) {
  .services {
    max-width: 768px;
  }
}
@media (min-width: 1280px) {
  .services {
    max-width: 1280px;
  }
}
.services__title {
  padding-left: 20px;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
}
@media (min-width: 768px) {
  .services__title {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 20px;
    font-size: 28px;
  }
}
@media (min-width: 768px) {
  .services__wrap {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
.services__img {
  display: block;
  padding: 10px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .services__img {
    width: 370px;
  }
}
@media (min-width: 1280px) {
  .services__img {
    width: 540px;
  }
}
.services__subtitle {
  padding: 10px 0 10px 20px;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
}
@media (min-width: 768px) {
  .services__subtitle {
    width: 370px;
  }
}
@media (min-width: 1280px) {
  .services__subtitle {
    width: 450px;
  }
}
.services__info {
  margin-bottom: 20px;
  padding: 0 20px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .services__info {
    width: 370px;
  }
}
@media (min-width: 1280px) {
  .services__info {
    width: 450px;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.works {
  width: 100%;
  max-width: 320px;
  padding: 0 15px;
  background: #7c879d;
  font-weight: 400;
  line-height: 1.39;
  color: #fff;
}
@media (min-width: 768px) {
  .works {
    max-width: 768px;
  }
}
@media (min-width: 1280px) {
  .works {
    max-width: 1280px;
  }
}
.works__wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.works__list {
  list-style: none;
  display: flex;
  transition: transform 0.6s ease;
  padding: 0;
  margin: 0;
}
.works__item {
  flex: 0 0 100%;
  max-width: 100%;
}
.works__title {
  font-size: 24px;
  padding: 20px;
  font-weight: 400;
}
@media (min-width: 1280px) {
  .works__title {
    margin-left: 130px;
    font-size: 28px;
  }
}
.works__img {
  display: block;
  width: 100%;
  /* чтобы картинка занимала весь слайд */
  height: auto;
}
@media (min-width: 1280px) {
  .works__img {
    width: auto;
    height: 600px;
    /* фиксируем высоту */
    margin: 0 auto;
    -o-object-fit: contain;
       object-fit: contain;
    /* вся картинка помещается, без обрезки */
  }
}
.works__info {
  padding: 5px 20px 20px 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.17;
}
@media (min-width: 1280px) {
  .works__info {
    padding: 5px 20px 20px 150px;
  }
}
.works__btn {
  display: block;
  width: 40px;
  height: 66px;
  position: absolute;
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s linear;
}
.works__btn:hover {
  opacity: 1;
}
.works__btn--prev {
  top: 43%;
  left: 3px;
  z-index: 1;
  transform: translateY(-50%) rotateY(180deg);
  background: url("../img/icons/arrow.png") center no-repeat;
}
@media (min-width: 1280px) {
  .works__btn--prev {
    left: 40px;
  }
}
.works__btn--next {
  top: 43%;
  right: 3px;
  z-index: 1;
  transform: translateY(-50%);
  background: url("../img/icons/arrow.png") center no-repeat;
}
@media (min-width: 1280px) {
  .works__btn--next {
    right: 40px;
  }
}
