body {
  background: #ffffff;
  text-decoration: none;
}

body,
form,
div,
p,
a,
img,
h1,
h2,
h3,
h4,
h5,
h6,
table,
table tr,
table td {
  border: none;
  color: #000000;
  font-family: "Josefin Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

input,
textarea,
select {
  outline: none;
  font-family: "Aleo", serif;
  font-size: 14px;
  box-sizing: border-box;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

a {
  text-decoration: underline;
  outline: none;
  display: block;
}
a:hover {
  text-decoration: underline;
}

h1,
h2 {
  font-size: 48px;
  padding: 0 0 10px 0;
  color: black;
  font-family: "Josefin Sans", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

.header {
  background-image: url(../images/bg-header.jpg);
  width: 100%;
  height: 820px;
  background-size: cover;
  position: relative;
  text-align: center;
}
.header__title {
  color: #ffffff;
  padding: 0;
  margin-bottom: 6px;
  font-size: 48px;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 3.4px;
}
.header__description {
  color: #ffffff;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 5px;
  margin-bottom: 46px;
}

.search-form {
  max-width: 650px;
  margin: 0 auto;
  background-color: #ffffff;
  margin-bottom: 120px;
}
.search-form__wrapper {
  display: flex;
  position: relative;
}
.search-form__input {
  border: 2px inset transparent;
  outline: none;
  box-sizing: border-box;
  flex-grow: 1;
  z-index: 1;
  background: transparent;
  padding: 2px;
  font-size: 20px;
}
.search-form__input:focus {
  border-left-color: #5474fd;
}
.search-form__placeholder {
  color: #999999;
  font-size: 14px;
  visibility: hidden;
  position: absolute;
  top: calc(50% - 7px);
  right: calc(50% - 55px);
  z-index: 0;
  letter-spacing: 2px;
}
.search-form__input:invalid + .search-form__placeholder {
  visibility: visible;
}
.search-form__button {
  display: inline-block;
  height: 60px;
  text-decoration: none;
  padding: 0 50px 0 33px;
  border-style: none;
  border: 2px solid #ffffff;
  position: relative;
  background: #5474fd;
}
.search-form__button--text {
  line-height: 60px;
  color: #ffffff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1px;
}
.search-form__button:after {
  content: "";
  background-image: url(../images/sp-img-min.png);
  height: 30px;
  width: 30px;
  position: absolute;
  line-height: 0;
  top: 16px;
  right: 14px;
  background-position: 8px -16px;
}
.search-form__button:hover {
  cursor: pointer;
  opacity: 0.8;
}
.search-form__button:focus {
  border-style: none;
}

.scroll {
  position: absolute;
  bottom: 27%;
  right: calc(50% - 52px);
}
.scroll__link {
  width: 100px;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 18px;
  z-index: 0;
}
.scroll__link:hover {
  text-decoration: none;
  transform: translateY(2px);
  transition-duration: 0.3s;
}
.scroll:after {
  content: url(../images/scroll.svg);
  position: absolute;
  top: 25px;
  right: calc(50% - 1px);
  z-index: 0;
}

.navigation {
  background: #5474fd;
  min-width: 100%;
  position: absolute;
  bottom: 0;
}
.navigation__wrapper {
  display: flex;
  justify-content: space-between;
  margin: 0;
  position: relative;
}

.logo__link {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 1px;
  display: inline-block;
  padding: 30px 0;
}
.logo__link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.nav {
  display: inline-block;
  text-decoration: none;
  padding: 20px 0;
  transition: all 0.3s;
  position: absolute;
  right: 10px;
}
.nav__list {
  list-style-type: none;
  display: flex;
  padding: 0;
  margin: 0;
}
.nav__item {
  padding: 0 20px;
}
.nav__item:last-child {
  padding: 0 0 0 20px;
}
.nav__link {
  text-decoration: none;
  padding: 10px 0;
  font-family: "Aleo", serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 14px;
  color: #ffffff;
  line-height: 25px;
}

.chose-us {
  background-image: url(../images/bg-choose-us.jpg);
  width: 100%;
  background-size: cover;
}
.chose-us__text-block {
  margin: -5px 30px 0 -3px;
  width: 50%;
  text-align: start;
}
.chose-us__subtitle {
  font-family: "Aleo", serif;
  font-size: 36px;
  text-transform: none;
  color: #ffffff;
  padding: 204px 10px 50px 0;
  font-weight: normal;
}
.chose-us__text {
  color: #ffffff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  line-height: 26px;
  padding: 0 0 17px 0;
  margin-bottom: 15px;
  font-weight: normal;
  letter-spacing: 0.54px;
  width: 530px;
}
.chose-us__img-block {
  width: 50%;
  padding: 120px 0;
}

.img--float1 {
  margin-left: 60px;
}

.img--float {
  float: right;
}

.button {
  margin: 0;
  color: #ffffff;
  text-decoration: none;
  font-family: "Aleo", serif;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 32px;
  text-transform: uppercase;
  text-align: center;
  padding: 13px 38px;
  max-width: 150px;
}
.button:hover {
  transform: scale(0.98);
  text-decoration: none;
}
.button--bg {
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#496bfe+0,496bfe+38,496bfe+38,5474fd+38,5474fd+100 */
  background: #496bfe;
  /* Old browsers */
  /* FF3.6-15 */
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(45deg, #496bfe 0%, #496bfe 38%, #496bfe 38%, #5474fd 38%, #5474fd 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#496bfe", endColorstr="#5474fd", GradientType=1);
  /* IE6-9 fallback on horizontal gradient */
}

.nav-helper {
  background: #333333;
}
.nav-helper__wrapper {
  display: flex;
  justify-content: space-around;
}
.nav-helper__link {
  display: block;
  text-decoration: none;
  color: #ffffff;
  font-family: "Aleo", serif;
  font-size: 36px;
  font-weight: normal;
  line-height: 85px;
  position: relative;
}
.nav-helper__link:hover {
  text-decoration: none;
  opacity: 0.8;
}
.nav-helper__item {
  padding: 95px 10px;
  position: relative;
  text-align: center;
}
.nav-helper__item:after {
  content: "";
  background-image: url(../images/sp-img-min.png);
  position: absolute;
  top: 35px;
  left: 142px;
  height: 57px;
  width: 304px;
  background-position: -20px 0;
}
.nav-helper__item:last-of-type:after {
  content: none;
}
.nav-helper__icon {
  display: block;
  font-size: 60px;
}
.nav-helper__icon--search {
  color: #5474fd;
}
.nav-helper__icon--check {
  color: #ff6363;
}
.nav-helper__icon--up {
  color: #00a2ff;
}

.reviews {
  background-image: url(../images/bg-reviews.jpg);
  width: 100%;
  background-size: cover;
}

.review-block {
  display: flex;
  text-align: start;
  background: #333333;
}
.review-block__text {
  padding: 0 53px;
}

.user-name {
  color: #ffffff;
  font-weight: normal;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 26px;
  padding: 40px 0;
}

.text {
  color: #ffffff;
  font-weight: normal;
  font-size: 16px;
  line-height: 26px;
  padding: 0 0 10px 0;
}

.subtitle {
  font-family: "Aleo", serif;
  font-size: 36px;
  text-transform: none;
  color: #ffffff;
  padding: 120px 10px 100px 0;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0.4px;
}

.spain--appartament {
  background-image: url(../images/bg-spain-appartaments.jpg);
  width: 100%;
  background-size: cover;
}
.spain--nature {
  background-image: url(../images/bg-spain-nature.jpg);
  width: 100%;
  background-size: cover;
}

.text-block {
  margin-top: 230px;
  width: calc(50% - 75px);
  background: rgba(0, 0, 0, 0.7);
  padding: 50px 25px;
  margin-bottom: 100px;
  text-align: start;
}
.text-block--left {
  margin-right: 30px;
}
.text-block--right {
  margin-left: 25px;
  margin-right: 15px;
  margin-top: 235px;
}
.text-block__name {
  color: #ffffff;
  font-size: 20px;
  padding-bottom: 30px;
}
.text-block__title {
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
  padding-bottom: 20px;
}
.text-block__text {
  color: #ffffff;
  font-size: 16px;
  line-height: 26px;
  padding-bottom: 40px;
}

.footer {
  background: #333333;
}

.logo__link--foot {
  padding: 97px 8px 10px 0;
}

.description {
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  padding-bottom: 26px;
  padding-right: 5px;
}

.social {
  display: flex;
  justify-content: space-between;
  padding-bottom: 50px;
}
.social__icon {
  color: #ffffff;
  font-size: 16px;
  line-height: 26px;
}
.social__icon:hover {
  color: #5474fd;
  cursor: pointer;
}

.mainer {
  max-width: 1110px;
  margin: 0 auto;
}
.mainer--header {
  padding: 265px 0 0 0;
}
.mainer--wrapper {
  display: flex;
}
.mainer--right {
  justify-content: flex-end;
}
.mainer--reviews {
  padding-bottom: 210px;
}
.mainer--footer {
  max-width: 170px;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 992px) {
  .nav-helper__item:after {
    content: none;
  }
}
@media screen and (max-width: 768px) {
  .mainer--header {
    padding: 165px 0 0 0;
  }
  .mainer--reviews {
    padding-bottom: 110px;
  }

  .nav-helper__wrapper {
    flex-direction: column;
  }

  .subtitle {
    padding: 30px 0;
  }

  .search-form__placeholder {
    right: auto;
    left: 5px;
  }

  .search-form__button {
    padding: 0 45px 0 10px;
    width: 40px;
  }
  .search-form__button--text {
    display: none;
  }

  .mainer--wrapper,
.review-block {
    flex-direction: column;
  }

  .img {
    width: 100%;
  }

  .text-block {
    width: 90%;
    margin: 10px auto;
    padding: 20px 10px;
  }

  .nav-helper__item {
    padding: 10px;
  }

  .chose-us__img-block,
.chose-us__text-block {
    width: 100%;
    padding: 20px 0;
  }

  .chose-us__subtitle {
    padding: 50px 10px;
  }
  .chose-us__text {
    padding: 10px;
  }

  .toggler {
    width: 40px;
    display: block;
  }

  .toggler__icon {
    width: 40px;
    height: 40px;
    display: block;
    position: relative;
    margin: 20px 10px 20px -10px;
  }

  .button {
    margin: 0 auto;
  }

  .toggler__icon--open .toggler__line {
    background-color: transparent;
    transform: translateX(10px);
  }

  .toggler__icon--open .toggler__line:before {
    transform: rotate(45deg) translateY(20px);
  }

  .toggler__icon--open .toggler__line:after {
    transform: rotate(-45deg) translateY(-20px);
  }

  .toggler__line {
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    position: absolute;
    top: 19px;
    display: block;
    transition-duration: 0.3s;
  }

  .toggler__line:before,
.toggler__line:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    top: -14px;
    left: 0;
    transition-duration: 0.3s;
  }

  .toggler__line:after {
    top: auto;
    bottom: -14px;
  }

  .nav {
    position: absolute;
    z-index: 5;
    background-color: rgba(37, 37, 37, 0.885);
    top: -228px;
    left: 0;
    width: 100%;
    border: none;
    display: none;
  }

  .nav__list {
    flex-direction: column;
    margin: 0;
  }

  .nav__item {
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
  }

  .nav__item:first-child {
    border-top: none;
  }

  .nav__link {
    display: block;
    text-align: center;
    color: #fff;
    border: none;
  }

  .nav__link:hover {
    border: none;
  }

  .nav__link--active {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .nav--open {
    display: block;
  }
}