*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: #2c2b2b;
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

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

.header {
  background-image: url(../images/header.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  min-height: 700px;
  color: #fff;
}

.header__top {
  padding: 47px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone {
  font-weight: 400;
  font-size: 25px;
  line-height: 54px;
  color: #f6b112;
  margin-right: 20px;
}

.header__content {
  padding-top: 60px;
  position: relative;
}

.header__title {
  font-size: 60px;
  font-weight: 700;
  line-height: 107px;
  text-transform: uppercase;
}

.header__subtitle {
  font-size: 34px;
  line-height: 24px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: #f6b112;
}

.header__text {
  margin-bottom: 30px;
  max-width: 800px;
}

.button {
  font-size: 14px;
  line-height: 21px;
  text-transform: uppercase;
  padding: 14px 54px 15px;
  color: #fff;
  background-color: #ff5e14;
  transition: all .5s;
}

.button:hover {
  color: #202020;
  background-color: #fff;
}

.header__social {
  padding: 70px 0 20px 70px;
  display: flex;
  align-items: center;
}

.social__link {
  margin-right: 10px;
}

.title{
  color: #202020;
  font-size: 36px;
  line-height: 54px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}

.title::after{
  content: '';
  width: 80px;
  height: 3px;
  background-color: #202020;
  position: absolute;
  top: 25px;
  margin-left: 20px;
}

.services{
  margin-top: 50px;
}

.services__inner {
  display: flex;
  margin-bottom: 60px;
}

.services__content {
  width: 505px;
  margin-right: 96px;
}

.services__content-title {
  color: #ff5e14;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  margin-bottom: 12px;
}

.services__content-textbox {
  margin-bottom: 57px;
}

.services__content-text {
  margin-bottom: 12px;
}

.button--decor {
  margin-top: -7px;
  color: #fff;
  position: relative;
}

.button--decor::after {
  content: 'ЗАГРУЗИ ФОТО ПОНРАВИВШЕЙСЯ КУХНИ';
  color: #151515;
  margin-left: 130px;
  position: absolute;
}

.button--decor::before {
  content: '';
  width: 80px;
  height: 2px;
  background-color: #c4c4c4;
  position: absolute;
  right: -65px;
  top: 24px;
}

.services__list {
  list-style: none;
  counter-reset: my-counter;
}

.services__item {
  counter-increment: my-counter;
  border: 2px solid #C4C4C4;
  margin-bottom: 12px;
  width: 550px;
  padding: 10px 15px 10px 113px;
  position: relative;
  transition: all .5s;
}

.services__item::before {
  content: '0' counter(my-counter);
  position: absolute;
  left: 30px;
  margin-top: 20px;
  font-size: 36px;
  line-height: 54px;
  font-weight: 400;
  color: #C4C4C4;
  transform: rotate(270deg);
  transition: all .5s;
}

.services__item:hover {
  border: 2px solid #ff5e14;
  width: 550px;
}

.services__item:hover .services__item-title {
  color: #ff5e14;
}

.services__item:hover::before {
  color: #ff5e14;
}

.services__item-title {
  font-size: 24px;
  font-weight: 400;
  color: #ff5e14;
}

.project{
  background-image: url(../images/project.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding: 20px 0;
}

.title__project{
  margin-bottom: 60px;
  color: #f6b112;
}

.title__project::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #f6b112;
  position: absolute;
  top: 25px;
  margin-left: 20px;
}

.project__items{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 32px;
  padding-bottom: 80px;
}

.project__link{
  padding: 5px 24px 5px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 256px;
  line-height: 130%;
}

.project__link:nth-child(3),
.project__link:nth-child(6){
  grid-column: span 2;
  grid-row: span 2;
}

.project__title{
  font-weight: 300;
  margin-bottom: 18px;
}

.project__price{
  text-align: right;
  font-size: 16px;
  margin-top: auto;
}

.project__info1,
.project__info2{
  margin-bottom: 0px;
  margin-top: 5px;
}

.benefits {
  margin-top: 50px;
  margin-bottom: 100px;
}

.benefits__inner {
  display: flex;
}

.benefits__images {
  height: 650px;
  padding-bottom: 20px;
  margin-left: 100px;
  margin-top: 40px;
}
.benefits__img{
  text-align: center;
}  

.benefits__text-img{
  padding-right: 0px;
  margin-left: 100px;
}

.button__benefits{
  margin-left: 100px;
}

.benefits__content {
  width: 100%;
  color: #000;
}

.benefits__title {
  margin-left: 0px;
}

.benefits__list {
  list-style: none;
  background-color: #f6b112;
  padding: 25px 0 25px 50px;
}

.benefits__item {
  width: 480px;
  margin-bottom: 20px;
}

.benefits__item-num {
  font-weight: 700;
  font-size: 30px;
  line-height: 22px;
}

.benefits__item-title {
  font-size: 24px;
  line-height: 42px;
  font-weight: 700;
  margin-top: -25px;
}

.benefits__item-text {
  color: #fcfcfc;
}

.slider {
  background-color: black;
  padding: 10px 0;
  position: relative;
  height: auto;
}

.slider__title {
  color: #f6b112;
  margin-bottom: 50px;
  margin-top: 50px;
}

.slider__title::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #f6b112;
  position: absolute;
  top: 25px;
  margin-left: 20px;
}

.slider__wrapper {
  overflow: hidden;
  height: auto;
  position: relative;
  margin-bottom: 50px;
}

.slider__content {
  width: calc(10 * (calc((1200px - (2 * 15px)) / 3) + 15px));
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.slider__content img {
  margin-right: 15px;
  width: calc((1200px - (2 * 15px)) / 3);
  height: auto;
}

.slider__content img:last-child {
  margin-right: 0;
}

.slider__controls {
  position: absolute;
  top: 15px;
  right: 10px;
  z-index: 2;
}

.slider__arrow--left,
.slider__arrow--right {
  background: rgba(0, 0, 0, 0.5);
  color: #f6b112;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 20%;
}

.slider__arrow--left:hover,
.slider__arrow--right:hover {
  background: #f6b112;
  color: #000;
}

.slider__arrow--left {
  margin-right: 20px;
}

.review{  
  margin-top: 50px;
  margin-bottom: 100px;
}

.review__inner{
  display: flex;
  max-width: 1220px;
  text-align: center;
  margin-top: 40px;
}

.review__item{
  border: 1px solid #000 ;
  padding: 20px 15px;
  margin-right: 15px;
  max-width: 350px;
  height: auto;

}

.review__kitchen-img{
  width: 220px;
  border-radius: 8%;
  padding: 4px;
}

.review_name{
  font-size: 18px;
  color: #ff5e14;
}

.review_city{
  font-size: 15px;
  color: #ff5e14;
}

.question {
  margin-bottom: 100px;
}

.accordeon {

}

.accordeon__item {
  background-color: #fff;
  margin-bottom: 10px;

}

.accordeon__title {
  border: none;
  font-size: 18px;
  font-weight: 700;  
  color: #ff5e14;
  background-color: transparent;
  display: block;
  cursor: pointer;
  padding: 14px 50px 15px 0;
  position: relative;
  width: 100%;
  text-align: left;  
}

.accordeon__title::after {
  content: '';
  background-image: url(../images/icon-arrow.png);
  width: 16px;
  height: 16px;
  position: absolute;
  right: 26px;
  top: 17px;
}

.accordeon__title.accordeon__title--active::after {
  transform: rotate(180deg);
}

.accordeon__text {
  opacity: 0;
  max-height: 0;
  transition: opacity .3s, max-height .3s;
}

.accordeon__text.accordeon__text--visible {
  opacity: 1;
}

.contacts{
  margin-top: 50px;
}

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

.contacts__info{
  padding-top: 35px;
}

.contacts__list{
  list-style: none;
  padding-left: 0px;
}

.contacts__item{
  margin-bottom: 20px;
}

.contacts__items-title{
  font-weight: 700;
  color: #ff5e14;
}

.contacts__form{
  background-color: #000000;
  padding: 50px 75px 57px;
  text-align: center;
}

.contacts__title{
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f6b112;
  margin-bottom: 50px;
}

.contacts__input{
  background-color: transparent;
  width: 450px;
  height: 75px;
  color: #fff;
  border: 1px solid #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  font-size: 18px;
  padding: 0 15px;
  text-align: center;
}

.contacts__input::placeholder{
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: #fff;
}

.contacts__area{
  background-color: transparent;
  width: 450px;
  height: 120px;
  color: #fff;
  border: 1px solid #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
  font-size: 18px;
  padding: 30px 15px;
  resize: none;
  text-align: center;
}

.contacts__area::placeholder{
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: #fff;
}

.contacts__btn{
  border: none;
  margin-top: 50px;
  cursor: pointer;
}

.footer {
  background-color: #000;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  height: 120px;
}

.footer__copy {
  font-size: 15px;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.8s ease 0s;
}

.popup:target {
  opacity: 1;
  visibility: visible;
}

.popup:target .popup__content{
  transform: perspective(600px) translate(0px, 0%) rotate(0deg);
  opacity: 1;
}

.popup__area{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.popup__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

.popup__content {
  background-color: #fff;
  color: #000;
  max-width: 800px;
  padding: 30px;
  position: relative;
  transition: all 0.8s ease 0s;
  opacity: 0;
  transform: perspective(600px) translate(0px, -100%) rotate(45deg);
}

.popup__close {
  position: absolute;
  right: 15px;
  top: 15px;
}

.popup__title {
  font-size: 36px;
  font-weight: 700;
  margin: 0px 0px 1em 0px;
}

.popup__text {
  font-size: 15px;
}

@media (max-width: 1190px) {
  .slider__wrapper {
    margin-left: 10px;
    margin-right: 10px;
  }

  .slider__content {
    width: calc((1190px - (2 * 15px)) / 3);
  }

  .slider__content img {
    width: calc((1190px - (2 * 15px)) / 3);
  }

  .slider__controls {
    margin-right: 15px;
  }
}

@media (max-width: 1140px) {
  .services__item:hover {
    width: 450px;}

  .header__title {
    font-size: 50px;
  }
}

@media (max-width: 1120px) {
  .slider__wrapper {
    margin-left: 10px;
    margin-right: 10px;
  }

  .slider__content {
    width: calc((1120px - (2 * 15px)) / 3);
  }

  .slider__content img {
    width: calc((1120px - (2 * 15px)) / 3);
  }

  .slider__controls {
    margin-right: 15px;
  }
}

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

  .services__inner {
    flex-wrap: wrap;
  }

  .services__list {
    order: -1;
    padding-left: 0px;
    margin-bottom: 30px;
    width: 100%;
  }

  .services__item {
    width: 100%;
  }

  .services__item:hover {
    width: 100%;
  }

  .services__content {
    width: 100%;
    margin-right: 0;
  }

  .benefits__images {
    width: 70%;
    margin-left: 50px;
  }

  .benefits__text-img {
    margin-left: 50px;
  }

  .slider__wrapper {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .slider__content {
    width: calc((1024px - (2 * 15px)) / 3);
    height: 400px;
  }
  
  .slider__content img {
    width: calc((1024px - (2 * 15px)) / 3);
    height: 400px;
  }
  
  .slider__controls {
    margin-right: 15px;
  }

  .review__kitchen-img {
    display: none;
  }
}  

@media (max-width: 990px) {
  .project__link {
    min-height: 200px;
  }

  .project__items {
    grid-gap: 10px;
  }

  .review__kitchen-img {
    max-width: 160px;
  }
}

@media (max-width: 985px) {
  .review_text {
      font-size: 10px;
  }

  .review__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    text-align: center;
  }
  
  .review__item {
    margin-bottom: 20px;
  }
}

@media (max-width: 900px) {
  .title {
    text-align: center;
    margin-top: 0px;
  }

  .phone {
    font-size: 24px;
    line-height: 36px;
  }

  .header__title {
    font-size: 54px;
    line-height: 74px;
  }

  .header__subtitle {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .header__social {
    padding: 30px 0 20px 53px;
  }

  .benefits__images {
    display: none;
  }

  .benefits__inner {
     flex-wrap: wrap;
  }

  .benefits__text-img {
     margin-left: 0px;
  }

  .button__benefits {
    margin-left: 0px;
    margin-top: 30px;
  }

  .review__kitchen-img {
    width: 90%;
  }

  .contacts__info{
    padding-top: 0px;
  }

  .contacts__inner {
    display: block;
    text-align: center;
  }

  .contacts__list {
    margin-bottom: 30px;
  }

  .contacts__input {
    width: 100%;
  }

  .contacts__area {
    width: 100%;
  }

  .contacts__btn {
    margin-top: 20px;
  }

  .contacts__title {
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 800px) {
  .project__link:nth-child(3),
  .project__link:nth-child(6){
    grid-column: auto;
    grid-row: auto;
  }

  .project__items {
     grid-template-columns: repeat(2, 1fr);
     padding-bottom: 20px;
  }

  .project__link {
    min-height: 450px;
    margin-bottom: 20px;
  }

  .review_text {
    font-size: 10px;
  }

  .review__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    text-align: center;
  }

  .review__item {
    margin-bottom: 20px;
  }  
}

@media (max-width: 768px) {
  .title::after {
    display: none;
  }

  .benefits__item {
    width: 100%;
  }

  .benefits__title {
    margin-left: 0;
  }

  .project__text {
    padding: 25px 15px;
  }

  .logo__img{
    width: 200px;
  }

  .slider__wrapper {
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .slider__title {
    text-align: center;
  }
  
  .slider__content {
    width: calc(30 * ((100vw - 30px) / 2));
    height: 450px;
  }
  
  .slider__content img {
    width: calc((100vw - 30px) / 2);
    height: 450px;
  }
  
  .slider__controls {
    margin-right: 15px;
  }

  .review__kitchen-img {
    display: none;
  }
}

@media (max-width: 650px) {
  .title::after {
    display: none;
  }

  .footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 20px 0;
    text-align: center;
  }

  .footer__social {
    width: 100%;
    justify-content: center;
    margin: 25px 0;
  }
}

@media (max-width: 600px) {
  .header__content {
    padding-top: 0;
    text-align: center;
  }

  .header__social {
    padding: 30px 0 20px 0px;
  }

  .social {
    justify-content: center;
  }

  .title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 30px;
    text-align: center;
  }

  .title::after {
    display: none;
  }

  body {
    font-size: 16px;
    line-height: 22px;
  }

  .services__item::before {
    top: 5px;
  }

  .services__content {
    text-align: center;
  }

  .benefits__item-num {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 540px) {
  .popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.8s ease 0s;
  }

  .popup:target {
    opacity: 1;
    visibility: visible;
  }

  .popup:target .popup__content {
    transform: perspective(600px) translate(0px, 0%) rotate(0deg);
    opacity: 1;
  }

  .popup__area {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .popup__body {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
  }

  .popup__content {
    background-color: #fff;
    color: #000;
    min-width: 320px;
    padding: 30px;
    position: relative;
    transition: all 0.8s ease 0s;
    opacity: 0;
    transform: perspective(600px) translate(0px, -100%) rotate(45deg);
  }

  .popup__close {
    position: absolute;
    right: 15px;
    top: 15px;
  }

  .popup__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0px 0px 1em 0px;
  }

  .popup__text {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .header__top {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .logo {
    margin-bottom: 20px;
    width: 100%;
  }

  .logo__img {
    width: 280px;
  }

  .header__title {
    margin-bottom: 20px;
  }

  .header__images {
    position: static;
    width: 100%;
  }

  .services {
    padding-top: 50px;
  }

  .services__item {
    padding: 10px 15px 10px 60px;
  }

  .services__item::before {
    left: 11px;
  }

  .button--decor::before {
    right: -50px;
  }

  .button--decor::after {
    margin-left: 110px;
  }

  .services__inner,
  .benefits {
    margin-bottom: 50px;
  }

  .project__link {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .benefits__form {
    padding: 15px 15px 50px;
  }

  .benefits__inner {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .benefits__title {
    padding-right: 40px;
  }

  .benefits__item-title {
    font-size: 18px;
  }

  .benefits__item-text {
    padding: 10px 60px 10px 0px;
  }

  .contacts__form {
    padding: 50px 10px 57px;
  }

  .button--decor::before,
  .button--decor::after {
    display: none;
  }

  .button--decor::after {
    margin-left: 110px;
  }

  .project__button {
    margin-right: 100px;
    margin-top: 0px;
  }

  .project__items {
    grid-template-columns: repeat(1, 1fr);  
  }

  .review__inner {
    margin-left: 18px;
  }

  .review__kitchen-img {
    display: none;
  }
  
  .contacts__title {
    font-size: 25px;    
  }
}

@media (max-width: 500px) {
  .services {
    margin-top: 0;
  }
  .title {
    margin-bottom: 0;
  }

  .services__content-title {
    margin-top: 5px;
  }

  .title__project {
    margin-bottom: 30px;
  }

  .benefits__title {
    padding: 0 0 0 0;
  }
  .benefits__list {
    padding: 25px 0 25px 25px;
  }

  .slider__title {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .slider__content {
    width: 100%;
  }

  .slider__content img {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .slider__controls {
    margin-right: 10px;
  }

  .slider__arrow--left {
    margin-right: 20px;
  }

  .title__question {
    margin-top: -60px;
    margin-bottom: 20px;
  }

  .question__content {
    padding-left: 20px;
  }

  .contacts__inner {
    margin-top: -80px;
  }
}

@media (max-width: 340px) {
  .header__title {
    font-size: 44px;
    line-height: 50px;
  }
}
