/* Указываем box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
  list-style: none;
}

/* убрали нижнее подчеркивание */
a {
  text-decoration: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

body {
  font-family: "Roboto Slab", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}


/* block header */
header {
  background-image: url(../img/header_bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.header__inner {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  min-height: 100vh;
}

.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu__list {
  font-family: "Montserrat", sans-serif;
  display: flex;
}

.menu__list-item {
  margin-right: 35px;
}

.menu__list-item:last-child {
  margin-right: 0;
}

.menu__list-link {
  color: #ffffff;
}

.header__title {
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  line-height: 24px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 264px;
  margin-bottom: 35px;
  text-align: center;
}

.header__text {
  font-size: 20px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 50px;
}

.header__btn {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  border: 2px solid #ffffff;
  border-radius: 2px;
  padding: 19px 35px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  color: #ffffff;
}

/* section services */
.services {
  padding: 100px 0;
}

.services__title {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 59px;
  text-align: center;
}

.services__title::after {
  position: absolute;
  content: "";
  left: 530px;
  top: 50px;
  width: 50px;
  height: 2px;
  background-color: #555555;
}

.services__text {
  font-size: 16px;
  line-height: 24px;
  color: #555555;
  text-align: center;
  margin-bottom: 70px;
}

.services__items {
  display: flex;
}

.services__item {
  display: flex;
  margin-right: 35px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.services__item:last-child {
  margin-right: 0;
}

.services__item-subtitle {
  line-height: 24px;
  color: #555555;
  margin: 29px 0 24px;
}

.services__item-text {
  line-height: 24px;
  color: #555555;
}

.about {
  padding: 100px 0;
  background-color: #f8f8f8;
}

.about__title {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 60px;
  text-align: center;
}

.about__title::after {
  position: absolute;
  content: "";
  left: 530px;
  top: 50px;
  width: 50px;
  height: 2px;
  background-color: #555555;
}

.about__text {
  font-size: 16px;
  line-height: 24px;
  color: #555555;
  text-align: center;
  margin-bottom: 70px;
}

.about-description {
  display: flex;
  margin-bottom: 70px;
}

.about-description__text {
  line-height: 24px;
  color: #555555;
  align-items: center;
  margin-right: 30px;
}

.about-description__text:last-child {
  margin-right: 0;
}

.about-team__members {
  display: flex;
  justify-content: space-between;
}

.team-member {
  position: relative;
  cursor: pointer;
}

.team-member:hover .member-social a img {
  filter: none;
}

.team-member:hover img {
  filter: brightness(70%);
}

.team-member:hover .member-social {
  bottom: 90px;
  opacity: 1;
}

.member-social {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 20px;
  opacity: 0;
  transition: 0.6s;
  text-align: center;
}

.member-social a {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 32px;
}

.member-social a:hover {
  background-color: #c0301c;
}

.member__title {
  font-family: "Montserrat", sans-serif;
  line-height: 24px;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: bold;
}

.member__text {
  font-size: 13px;
  line-height: 24px;
  color: #555555;
  text-align: center;
}

.latest-works {
  padding: 100px 0;
  background-color: #ffffff;
}

.latest-works__title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: #555555;
  text-align: center;
}

.latest-works__title::after {
  content: "";
  display: block;
  width: 50px;
  border-bottom: 2px solid;
  margin: 29px auto;
}

.latest-works__list {
  display: flex;
  justify-content: center;
  font-family: "Roboto Slab", sans-serif;
}

.latest-works__list-item {
  margin-left: 25px;
}

.latest-works__list-item:first-child {
  margin-left: 0;
}

.latest-works__list-link {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #555555;
}

.latest-works__list-link:hover {
  color: #c0301c;
}

.latest-works__inner {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 30px;
  justify-content: space-between;
}

.works {
  position: relative;
  cursor: pointer;
}

.works__back {
  display: inline-block;
  position: absolute;
  background: rgba(227, 77, 77, 0.7);
  color: #f72424;
  transition: .5s ease;
  opacity: 0;
  color: white;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 320px;
}

.works:hover .works__back {
  opacity: 1;
}

.works__back-title {
  font-family: "Montserrat", sans-serif;
  margin-top: 106px;
  font-size: 18px;
}

.works__back-text {
  font-family: "Roboto Slab", sans-serif;
  margin-top: 18px;
  font-size: 12px;
}

.works__back-link {
  display: inline-block;
  font-family: "Roboto Slab", sans-serif;
  margin-top: 26px;
  font-size: 14px;
  border-radius: 2px;
  padding: 13px 20px;
  margin-top: 26px;
  background-color: #fff;
  color: #c0301c;
  font-weight: bold;
}

.works__back-link img {
  display: inline;
}

.parallax{
  margin-left: 140px;
  padding: 80px 0;
  background-image: url(../img/parallax-bg.png);
  background-color: #ffffff;
  box-shadow: inset 0 0 0 100vw rgba(178, 55, 55, 0.5);
  background-repeat: no-repeat;
}

.parallax__title{
  font-family: 'Roboto Slab';
  font-size: 30px;
  line-height: 35px;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  padding-right: 190px;
  margin-bottom: 53px;
}

.parallax__btn{
  font-weight: bold;
  border: 2px solid #ffffff;
  border-radius: 2px;
  font-size: 18px;
  line-height: 44px;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin: 0 auto;
  margin-right: 570px;
  text-align: center;
  width: 180px;
  height: 50px;
}

.parallax__btn:hover{
  border: 2px solid red;
  font-size: 24px;
  width: 200px;
}

.links {
  margin-left: 140px;
  padding: 100px 0;
  width: 1600px;
  height: 477px;
  background-color: #f8f8f8;
}

.links_markets{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 68px;
}

.links_img{
  display: inline;
  margin: 0px;
  padding: 0px;
}

.links_circles{
  display: flex;
  justify-content:center;
  margin-top: 40px;
}

.links_circle.links_circle-active {
  background-color: rgb(233, 78, 6);
}


.links_circle {
  margin-top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: gray;
  margin-right: 5px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.links_text_subtitle{
  text-align: center;
  font-size: 18px;
  line-height: 40px;
  font-weight: 400;
  font-style: italic;
  color: #555555; 
  margin: 0 auto;
  max-width: 764px;


  margin-top: 10px;
}

.contact {
  padding: 100px 0;
}

.contact__title {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 59px;
  text-align: center;
}

.contact__title::after {
  position: absolute;
  content: "";
  left: 530px;
  top: 50px;
  width: 50px;
  height: 2px;
  background-color: #555555;
}

.contact__text {
  font-size: 16px;
  line-height: 24px;
  color: #555555;
  text-align: center;
  margin-bottom: 70px;
}

.contact__boxs {
  display: flex;
  padding-left: 30px;
}

.contact__info {
  position: relative;
  margin-bottom: 40px;
}

.contact__info::before {
  position: absolute;
  content: "";
  background: url(../img/mail-icon.png) no-repeat;
  width: 12px;
  height: 20px;
  left: -25px;
  top: 2px;
}


.contact__info-title {
  font-family: "Montserrat", sans-serif;
  line-height: 30px;
  text-transform: uppercase;
  color: #555555;
}

.contact__info-text {
  font-size: 12px;
  line-height: 20px;
  color: #555555;
}

.contact__order {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.contact__order::before {
  position: absolute;
  content: "";
  background: url(../img/phone-icon.png) no-repeat;
  width: 12px;
  height: 20px;
  left: -25px;
  top: 2px;
}

.contact__order-title {
  font-family: "Montserrat", sans-serif;
  line-height: 30px;
  text-transform: uppercase;
  color: #555555;
}

.contact__info-phone {
  font-size: 12px;
  line-height: 20px;
  color: #555555;
}

.contact__email {
  position: relative;
}

.contact__email::before {
  position: absolute;
  content: "";
  background: url(../img/phone-icon.png) no-repeat;
  width: 12px;
  height: 20px;
  left: -25px;
  top: 2px;
}

.contact__email-title {
  font-family: "Montserrat", sans-serif;
  line-height: 30px;
  text-transform: uppercase;
  color: #555555;
}

.contact__email-mail {
  font-size: 12px;
  line-height: 20px;
  color: #555555;
}

.contact__form-wrap {
  margin-left: 163px;
}

.contact__form {
  max-width: 730px;
  display: flex;
  flex-wrap: wrap;
}

.contact__input {
  width: 350px;
  height: 45px;
  padding: 17px;
  margin-right: 30px;
  margin-bottom: 20px;
  color: #555555;
}

/* .contact__input:hover {
  border: 1px solid red;
} */

.contact__input-email {
  width: 350px;
  height: 45px;
  padding: 17px;
  margin-bottom: 20px;
}

.contact__input-subject {
  width: 350px;
  height: 45px;
  padding: 17px;
  margin-right: 30px;
  margin-bottom: 20px;
}

.contact__input-name {
  width: 350px;
  height: 45px;
  padding: 17px;
  margin-bottom: 20px;
}

.contact__input-area {
  width: 730px;
  margin-top: 20px;
  padding: 17px 100px 77px 17px;
}

.contact__submit {
  margin-top: 20px;
  width: 170px;
  padding: 17px 36px;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555555;
}

@media (max-width: 768px) {
  .services {
    padding: 50px 0;
  }

  .services__title {
    margin-bottom: 30px;
  }

  .services__title::after {
    display: none;
  }

  .services__text {
    margin-bottom: 30px;
  }

  .services__items {
    display: block;
  }

  .services__item {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .services__item-subtitle {
    line-height: 24px;
    color: #555555;
    margin: 12px 0 7px;
  }

  .about {
    padding: 50px 0;
  }

  .about__title {
    margin-bottom: 30px;
  }

  .about__title::after {
    display: none;
  }

  .about__text {
    margin-bottom: 30px;
  }

  .about-description {
    display: block;
    margin-bottom: 30px;
  }

  .about-description__text {
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
    line-height: 18px;
  }

  .about-team__members {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .team-member {
    margin-bottom: 20px;
  }

  .member__title {
    font-family: "Montserrat", sans-serif;
    line-height: 18px;
    text-transform: uppercase;
    color: #555555;
    text-align: center;
    margin-top: 9px;
    margin-bottom: 5px;
    font-weight: bold;
  }

  .team-member:hover .member-social {
    bottom: 60px;
    opacity: 1;
  }





  

  .member-social {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 20px;
    opacity: 0;
    transition: 0.6s;
    text-align: center;
  }
  
  .member-social a {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 32px;
  }
  
  .member-social a:hover {
    background-color: #c0301c;
  }
  
  .member__title {
    font-family: "Montserrat", sans-serif;
    line-height: 24px;
    text-transform: uppercase;
    color: #555555;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .member__text {
    font-size: 13px;
    line-height: 24px;
    color: #555555;
    text-align: center;
  }

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
      
.modal-content {
        background-color: #7e5f5f;
        margin: 10% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 60%;
}


      
.modal-text {
        margin-bottom: 20px;
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
      
.modal-close {
        
        background-color: #555;
        color: #fff;
        border: none;
        padding: 60px 20px;
        font-size: 16px;
        cursor: pointer;
}
      
      .modal-close:hover {
        background-color: #333;
}


  





  .latest-works__inner {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
  }
}

@media (max-width: 375px) {
  .about__title {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 18px;
  }

  .member__title {
    font-size: 14px;
  }
}

.footer{
  padding: 100px 0;
  background-color: #c0301c;
}

.footer__wrap{
  display:flex;
  justify-content: center;
}

.footer__ellipse{
  width: 35px;
  height: 35px;
  border: 2px solid #ffffff;
}

.footer__image{
  margin-right: 14px;
}

.footer__bottom-text{
  position: relative;
  font-family: 'Roboto Slab';
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-top: 61px;
}

.footer__bottom-text::before{
  position: absolute;
  content: "";
  left: 535px;
  top: -33px;
  width: 50px;
  height: 2px;
  background-color: white;
}

/* мод окно для формы обратн связь */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 20px;
  border: none;
  border-radius: 5px;
  width: 400px;
  box-shadow: 0px 0px 10px rgba(91, 78, 135, 0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ec1111;
}

#successMessage {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}
    
    .contact__input-masked {
      background-color: #524242;
      pointer-events: none;
    }
    
    .error-message {
      color: red;
      font-size: 12px;
    }


