*,
*::after,
*::before {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: rgb(231, 202, 189);
  font-size: 18px;
  background-color: rgb(31, 29, 29);
}

:root {
  --color-accent: #ff7400;
  --bg-color: #d78b44;
  --button-color: #ffc85e;
}

h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
footer {
  width: 257px;
}
.none {
  display: none;
}
.container {
  margin: 0;
  padding: 0 20px;
  width: 100%;
  max-width: 1540px;
}
.header {
  width: 100%;
  height: 100%;
}
.header__content {
  height: 366px;
  background-image: url(../images/lavochkina-6.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 100px;
}
.header__logo {
  padding-left: 88px;
}
.header__nav-list {
  display: flex;
  gap: 50px;
  padding: 0;
}
.header__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__line--mobile {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  row-gap: 60px;
}
.header__line--mobile .header__nav {
  display: block;
}
.header__line--mobile .header__nav-list {
  flex-direction: column;
  gap: 5px;
}
.header__line--mobile .header__left {
  flex-direction: column;
  gap: 10px;
}
.header__line--mobile .header__btn {
  display: block;
}
.header__line--mobile .header__nav-list {
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
}
.header__line--mobile .header__right {
  flex-direction: column;
  gap: 10px;
}
.header__line--mobile .header__social-list {
  display: block;
  display: flex;
}
.header__line--mobile .header__nav-btn {
  position: fixed;
  top: 50px;
  right: 15px;
}
.header__nav-item {
  color: white;
  font-weight: 700;
  transition: color 0.2s linear;
}
.header__nav-item:hover {
  color: var(--color-accent);
  border-bottom: 1px solid white;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 200px;
}
.header__social-list {
  display: flex;
  gap: 20px;
}

.header__btn {
  font-weight: 700;
  border: 1px solid var(--color-accent);
  padding: 18px 10px;
  background-color: var(--bg-color);
  transform: skew(-20deg);
}
.header__btn-text {
  color: white;
}
.header__lang {
  font-size: 12px;
  display: flex;
  gap: 10px;
  margin-left: 10px;
  padding-right: 30px;
}
.header__nav-btn {
  display: none;
}
/* Nav Icon */
.nav-icon-btn {
  --time: 0.1s;
  --width: 30px;
  --height: 30px;
  --line-height: 1px;
  --line-margin: 2;
  --color: #fff;

  height: var(--height);
  /* width: var(--width); */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--black-color);
}

.nav-icon {
  position: relative;
  width: var(--width);
  height: var(--line-height);
  background-color: var(--color);
}

.nav-icon::before,
.nav-icon::after {
  content: '';
  display: block;

  position: absolute;
  left: 0;

  width: var(--width);
  height: var(--line-height);

  background-color: var(--color);
  transition: transform var(--time) ease-in, top var(--time) linear var(--time);
}

.nav-icon::before {
  top: calc(var(--line-height) * -8);
}

.nav-icon::after {
  top: calc(var(--line-height) * 8);
}

.nav-icon.nav-icon--active {
  background-color: transparent;
}

.nav-icon.nav-icon--active::before,
.nav-icon.nav-icon--active::after {
  top: 0;
  transition: top var(--time) linear, transform var(--time) ease-in var(--time);
}

.nav-icon.nav-icon--active::before {
  transform: rotate(45deg);
}

.nav-icon.nav-icon--active::after {
  transform: rotate(-45deg);
}
.header__down {
  height: 100%;
  background-color: var(--bg-color);
}
.header-btn {
  width: 90px;
  height: 90px;
  padding: 31px 23px;
  background-color: var(--button-color);
  border: 1px solid var(--button-color);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 400;
  stroke-width: 2px;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
  animation: ring 2s infinite;
  margin-right: 40px;
}
.header-btn > a {
  animation: text 4s infinite;
}
@keyframes ring {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.05);
  }
  25% {
    transform: scale(1.17);
  }
  35% {
    transform: scale(1.23);
  }
  50% {
    transform: scale(1.3);
  }
  60% {
    transform: scale(1.23);
  }
  75% {
    transform: scale(1.17);
  }
  90% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes text {
  0% {
    color: black;
  }
  50% {
    color: white;
  }
  100% {
    color: var(--color-accent);
  }
}

.header__down-prime {
  display: flex;
  align-items: self-end;
  justify-content: space-between;
  padding-top: 37px;
  margin-bottom: 40px;
}
.header__down-title {
  font-size: 30px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  color: black;
  text-transform: uppercase;
  padding-left: 40px;
}
.header__down-title > img {
  max-width: 584px;
  width: 100%;
}
.header__down-img1 {
  width: 100%;
  max-width: 500px;
  max-height: 280px;
  height: 100%;
  border-radius: 70px;
}
.header__down-slider,
.hair__down-slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 29px;
  padding-bottom: 30px;
}
/* .header__down-container {
  overflow: hidden;
} */
.header__down-button,
.hair__down-button {
  display: flex;
  flex-shrink: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.header__down-img,
.hair__down-img {
  max-width: 670px;
  max-height: 400px;
  border-radius: 120px 120px;
}
.header-icon {
  width: 44px;
  height: 44px;
  fill: black;
  background-color: transparent;
  border-radius: 50%;
}
.hair-icon {
  width: 44px;
  height: 44px;
  fill: white;
  background-color: var(--bg-color);
  border-radius: 50%;
}
.about__container {
  margin-top: 40px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}
.about__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 600;
}
.about__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__text-box {
  max-width: 700px;
}
.about__title,
.about__title2 {
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-accent);
}
.about__text {
  font-size: 24px;
  font-weight: 600;
}
.service {
  margin-bottom: 80px;
}
.service__title {
  margin: 60px auto 45px;
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent);
}

.service__gallery {
  display: flex;
  flex-wrap: wrap;
}
.service__gallery img {
  max-width: 365px;
  width: 100%;
  height: 200px;
  border: 1px solid var(--color-accent);
}
.gallery__item-1 {
  max-width: 365px;
  width: 100%;
  grid-column: 1 / 2;
  border: 1px solid var(--color-accent);
  background-color: var(--bg-color);
  border-radius: 70px 0 0 70px;
}
.gallery__item-2 {
  max-width: 365px;
  width: 100%;
  grid-column: 4 / 5;
  border: 1px solid var(--color-accent);
  background-color: var(--bg-color);
  border-radius: 0 70px 70px 0;
}
.gallery-item-title {
  margin-top: 50px;
  text-align: center;
  margin-bottom: 30px;
}
.gallery-item-text {
  text-align: center;
}
.gallery__item-3 {
  max-width: 365px;
  width: 100%;
  grid-column: 2 / 3;
  border: 1px solid var(--color-accent);
  background-color: var(--bg-color);
  border-radius: 0 70px 70px 0;
}
.gallery__item-4 {
  max-width: 365px;
  width: 100%;
  grid-column: 3 / 4;
  border: 1px solid var(--color-accent);
  background-color: var(--bg-color);
  border-radius: 70px 0 0 70px;
}
.gallery1 {
  border-radius: 0 70px 70px 0;
}
.gallery2 {
  border-radius: 70px 0 0 70px;
}
.gallery3 {
  border-radius: 70px 0 0 70px;
}
.gallery4 {
  border-radius: 0 70px 70px 0;
}

.order__title,
.hair__title {
  margin: 60px auto 45px;
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  color: var(--color-accent);
}
.accent {
  color: var(--color-accent);
}
.order__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
}
.order__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  font-size: 28px;
  font-weight: 400;
}
.order__form {
  padding: 48px 57px;
  color: black;
  width: 423px;
  height: 320px;
  background-color: var(--bg-color);
  border-radius: 32px;
  text-align: center;
  justify-content: center;
}
.form__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
}
.form__button {
  padding: 16px 32px;
  color: black;
  font-size: 18px;
  font-weight: 600;
  background-color: var(--button-color);
  border-radius: 32px;
  border: 2px solid var(--color-accent);
  transition: all 0.2s;
}
.form__button:hover {
  background-color: transparent;
}
.order-form {
  padding: 0;
}
.order-form__field {
  position: relative;
  margin-bottom: 16px;
}
.input__control {
  padding: 14px 42px;
  width: 100%;
  border-radius: 32px;
  font-size: 13px;
  border: 2px solid var(--color-accent);
  background-color: white;
}
.input__label {
  position: absolute;
  left: 42px;
  top: 16px;
}
.footer {
  width: 100%;
  min-height: 200px;
  background-image: url(../images/images.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: white;
  font-weight: 600;
}
.footer__nav {
  display: flex;
  gap: 20px;
}
.footer__nav-item {
  color: white;
  font-weight: 700;
  transition: color 0.2s linear;
}
.footer__nav-item:hover {
  color: var(--color-accent);
  border-bottom: 1px solid white;
}
.footer__nam {
  color: white;
  font-weight: 600;
}
@media screen and (max-width: 1400px) {
  .header__right {
    padding-left: 30px;
  }
}
@media screen and (max-width: 1250px) {
  .header__left {
    gap: 25px;
  }
  .about__title {
    font-size: 36px;
  }
  .footer {
    flex-wrap: wrap;
  }
}
@media screen and (max-width: 1080px) {
  .header__nav-item {
    font-size: 14px;
  }
  .header__lang {
    display: none;
  }
  .about__item {
    font-size: 24px;
  }
}
@media screen and (max-width: 920px) {
  .header__logo {
    padding-left: 10px;
  }
  .header__down-prime {
    flex-direction: column;
    align-items: center;
  }
  .header__down-text {
    font-size: 64px;
  }
}
@media screen and (max-width: 840px) {
  .header__nav {
    display: none;
  }
  .header__nav-btn {
    display: block;
  }
  .about__container {
    flex-direction: column;
  }
  .about__text {
    font-size: 18px;
  }
  .about__item {
    font-size: 18px;
  }
  .about__title {
    font-size: 28px;
  }
  .service__gallery > img {
    display: none;
  }
  .gallery-items {
    border-radius: 70px;
  }
  .service__title {
    font-size: 40px;
  }
  .hair__title {
    font-size: 40px;
  }
  .order__title {
    font-size: 40px;
  }
  .order__container {
    flex-direction: column;
  }
}
@media screen and (max-width: 770px) {
  .gallery-items {
    max-width: 320px;
  }
}
@media screen and (max-width: 600px) {
  .header__social-list,
  .header__btn {
    display: none;
  }
  .header__down-text {
    font-size: 40px;
  }
  .header__down-button {
    display: none;
  }
  .order__item {
    font-size: 18px;
  }
  .order__form {
    padding: 30px 20px;
    width: 365px;
  }
  .input__control {
    padding: 14px 20px;
  }
  .footer {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .footer__nav {
    flex-direction: column;
    align-items: center;
  }
}
