/* Header */
.header {
  padding-top: 15px;
  padding-bottom: 15px;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

.header_container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.header_box__logo {
  padding-right: 40px;
}

.header_logo {
  width: 68px;
}

.header_block {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 40px;
}

.header_box__input {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.header_input {
  border: 1px solid #d4dde8;
  outline: none;
  width: 100%;
  padding: 12px 24px;
  border-radius: 30px;
}

.header_box__input input::-webkit-input-placeholder {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.6px;
}

.header_box__input input::-moz-placeholder {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.6px;
}

.header_box__input input:-ms-input-placeholder {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.6px;
}

.header_box__input input::-ms-input-placeholder {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.6px;
}

.header_box__input input::placeholder {
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.6px;
}

.header_search {
  position: absolute;
  width: 20px;
  height: 20px;
  background-image: url("../../images/search.svg");
  background-size: 20px 20px;
  top: 50%;
  right: 24px;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.dropdown {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
}

.dropdown_toggle {
  width: 99px;
  padding: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* Flexbox для выравнивания */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; /* Вертикальное выравнивание по центру */
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  cursor: pointer;
  -webkit-transition: border 0.3s ease;
  transition: border 0.3s ease;
  border: 1px solid #ccc;
}

.active:hover {
  background-color: #255cd2;
}

#current-lang {
  color: #334155;
  font-family: "Roboto";
  font-weight: 400;
  font-size: 16px;
  line-height: 20.16px;
  margin-left: 6px;
}

/* Стиль стрелки */
.dropdown_toggle .arrow {
  margin-left: 5px;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease; /* Плавная анимация вращения */
  -webkit-transform-origin: center;
  transform-origin: center; /* Точка вращения в центре */
}

/* Вращаем стрелку снизу вверх при открытии меню */
.dropdown_toggle.active .arrow {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(
    180deg
  ); /* Вращение по оси X на 180 градусов снизу вверх */
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  width: 99px;
  z-index: 1;
}

.dropdown-content div {
  font-weight: 400;
  font-size: 16px;
  line-height: 20.16px;
  padding: 14px 24px;
  cursor: pointer;
  text-align: center; /* Центрирование текста */
}

.dropdown-content div:hover {
  background-color: #255cd2;
  color: #ffffff;
  text-decoration: underline;
}

.show {
  display: block;
}

.header_btn__box {
  max-width: 180px;
  width: 100%;
}

.header_btn {
  background-color: #255cd2; /* Синий цвет фона */
  color: #ffffff; /* Цвет текста */
  padding: 10px 68px; /* Отступы внутри кнопки */
  border: none; /* Убираем рамку */
  border-radius: 30px; /* Закругленные углы */
  font-weight: 400;
  font-size: 16px; /* Размер шрифта */
  line-height: 20.16px;
  cursor: pointer; /* Курсор при наведении */
  text-align: center; /* Центрирование текста */
  display: inline-block; /* Блочный элемент в строке */
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Легкая тень */
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease; /* Плавный переход фона при наведении */
  /* display: none; */
}

/* Menu start */
.header_entrance {
  position: relative;
  display: none;
}

.header_entrance__toggle {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header_entrance__menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header_entrance__menu li {
  border-bottom: 1px solid #eee;
}

.header_entrance__menu li:last-child {
  border-bottom: none;
}

.header_entrance__menu a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.header_entrance__menu a:hover {
  background-color: #f0f0f0;
}

.icon {
  display: flex;
  align-items: center;
}

.header_entrance__show {
  display: block;
}

.header_user_image{
  width: 24px;
  height: 24px;
}
/* Menu end*/

.header_entrance__block {
  position: relative;
  /* display: none; */
}

.header_name__block {
  display: flex;
  align-items: center;
}

.header_img__box {
  margin-right: 6px;
}

.rounded-circle {
  border-radius: 50%;
}

.header_list {
  position: absolute;
  display: none;
}

.header_entrance__link {
  color: #202020;
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #cccccc;
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 10px;
}

.header_entrance__link:hover {
  background-color: #cccccc;
}

.header_entrance__link::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 6px;
}

.header_entrance__item:nth-child(1) .header_entrance__link::before {
  background-image: url("../images/user.svg");
  background-size: 12.25px 14px;
  background-repeat: no-repeat;
  background-position: center center;
}

.header_entrance__item:nth-child(2) .header_entrance__link::before {
  background-image: url("../images/pencil.svg");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center center;
}

.header_entrance__item:nth-child(3) .header_entrance__link::before {
  background-image: url("../images/close.svg");
  background-size: 8.75px 14px;
  background-repeat: no-repeat;
  background-position: center center;
}

.header_btn:hover {
  background-color: #165cbb; /* Изменение фона при наведении */
}

@media screen and (max-width: 1100px) {
  .header_box__input {
    max-width: 300px;
  }
}

@media screen and (max-width: 800px) {
  .header_box__logo {
    padding-right: 20px;
  }

  .header_block {
    gap: 20px;
  }

  .header_btn {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media screen and (max-width: 700px) {
  .header_burger__box {
    padding: 12px 11px;
    background-color: #edf0f3;
  }

  .header_burger {
    width: 18px;
    height: 16px;
    background-image: url("../../images/burger.svg");
    background-repeat: no-repeat;
    background-position: center center;
    display: block;
  }

  .header_btn {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .header_input {
    display: none;
  }

  .header_search {
    right: 0;
  }

  .current-lang {
    font-size: 14px;
    line-height: 17.64px;
  }
}
