@import "components/header_call.css";

.header__user__dropdown__content {
  position: absolute;
  z-index: 5;
  top: calc(100% + 7px);
  right: 0;
  width: 100%;
  box-shadow: 0 14px 34px 0 rgba(0, 0, 0, 0.25);
  background: #fff;
  min-width: 176px;
  border-radius: 6px;
  transition: 0.25s ease-in-out;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, -10px);
}
.header__user__dropdown {
  flex: 1;
  justify-content: center;
  display: flex;
  align-items: center;
  position: relative;
}

.header__user__dropdown__content ul {
  list-style: none;
}

.header__user__dropdown__content a {
  font-weight: 600;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8.5px 12px;
  border-bottom: 1px solid #ccc;
  min-height: 35px;
}

.header__user__dropdown .header__user__dropdown__view:after {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='7' viewBox='0 0 8 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.03324 5.36881C2.83326 6.43472 4.43236 6.43472 5.23239 5.36881L6.85977 3.20057C7.84929 1.88218 6.90862 0 5.2602 0H2.00542C0.357006 0 -0.583668 1.88218 0.405851 3.20057L2.03324 5.36881Z' fill='%23212121'/%3E%3C/svg%3E%0A");
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  aspect-ratio: 1/1;
  margin: auto;
  top: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: 0.25s ease-in-out;
  transform: translate(0, -5%);
  pointer-events: none;
}

.header__user__dropdown__view {
  position: relative;
}

.header__user__dropdown__content li:last-child a {
  border: none;
}

.header__user__dropdown__content a:hover {
  background: #efefef;
  border-color: #efefef;
}
.header__info__data .header__user__dropdown__content {
  left: 0;
  right: auto;
}
.header__user__dropdown.active .header__user__dropdown__content {
  opacity: 1;
  transform: translate(0, 0);
  pointer-events: all;
}

.header__user__dropdown.active .header__user__dropdown__view:after {
  opacity: 1;
  transform: translate(0, 0%);
  pointer-events: all;
}
.header_main .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.header__logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem;
}

.header__logo__adress {
  font-size: 0.75rem;
}

.header__info {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.header__info__data {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3125rem;
}

.header_main__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
}
.header__user__mobile {
  display: none;
}
.header_btn {
  width: 2.25rem;
  aspect-ratio: 1/1;
  border-radius: 0.38rem;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header_main__time {
  font-size: 0.75rem;
  position: relative;
  padding-left: 0.8rem;
  margin-right: 1.525rem;
  margin-left: 0.7rem;
}

.header_main__phone {
  font-weight: 600;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
}
.btn_menu {
  display: none;
}
.header_top {
  padding: 1.1rem 0px 0.716rem;
  border-bottom: 1px solid #eaeaea;
}

.header_logo__image {
  font-size: 0;
  width: 6.075rem;
}

.header_logo__image img {
  width: 100%;
  height: auto;
  display: block;
}

.header_main__time:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.25rem;
  aspect-ratio: 1/1;
  background: #67c15e;
  border-radius: 50%;
  transform: translate(0, -40%);
}

.header_btn svg {
  width: 50%;
  height: auto;
}

.header_call {
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0.38rem;
  padding: 0.75rem 1.5rem;
}

.header_btn:hover {
  background: #212121;
  color: #fff;
}

.header_btn--tg:hover path,
.header_btn--wa:hover path {
  fill: #fff;
}
.header_btn--tg:hover {
  background: #27b2ed;
}
.header_btn--wa:hover {
  background: #66c15f;
}

/* Fallback recolor for SVG icons that aren't drawn with <path> only —
   <rect>/<circle>/<polygon> + inline fill ignore the hover-path rule
   above. Force white via filter so WA/TG icons stay readable on the
   green/blue hover backgrounds regardless of sprite shape. */
.header_btn--tg:hover svg,
.header_btn--wa:hover svg {
  filter: brightness(0) invert(1);
}

.header_main__phone:hover {
  color: #ccc;
}

.header_menu a {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.34523;
  color: #3c3c3c;
  text-decoration: none;
  display: block;
  padding: 1.373rem 0.25rem;
  position: relative;
}

.header_menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.header_menu a:hover {
  color: #fdd435;
}

.header_menu a:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5px;
  background: #fdd435;
  height: 1px;
  opacity: 0;
  transition: 0.25s ease;
}

.header_menu a:hover:before {
  opacity: 1;
}
.header_btn--user {
  display: none;
}
@media screen and (max-width: 1024px) {
  .header_btn--user {
    display: flex;
  }
}

.modal_menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease-in-out;
}

.modal_menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  opacity: 0.5;
}

.modal_menu__content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  background: #fff;
  z-index: 2;
  padding: 20px;
  bottom: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 0.5s ease-in-out 0s;
  opacity: 0;
  transform: translate(-50%, 0);
}

.modal_menu__bottom__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7.6px;
  align-items: center;
}

.header_btn--phone {
  width: auto;
  aspect-ratio: auto;
  min-height: 35px;
  padding: 2px 15px;
  flex: 1;
}

.modal_menu__logo {
  width: 120px;
  display: flex;
}

.modal_menu__logo img {
  width: 100%;
  height: auto;
}

.modal_menu__top {
  position: relative;
}

.modal_menu__close {
  width: 32px;
  aspect-ratio: 1/1;
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_menu__close svg {
  width: 85%;
  height: auto;
}

.modal_menu__adress {
  font-size: 12px;
  max-width: 200px;
  margin-top: 8px;
  line-height: 1.35;
}

.modal_menu__list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10.5px;
}

.modal_menu__list a {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  position: relative;
  padding-left: 20px;
}

.modal_menu__list a:before {
  width: 8px;
  height: 1px;
  content: "";
  position: absolute;
  top: 8px;
  background: #000;
  left: 0;
}

.modal_menu__list a:hover {
  color: #fed435;
}

.modal_menu__list a:hover:before {
  background: #fed435;
}
.modal_menu.active {
  opacity: 1;
  pointer-events: all;
}

.modal_menu.active .modal_menu__content {
  transform: translate(0, 0);
  opacity: 1;
}
@media screen and (min-width: 1025px) {
  .modal_menu {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .btn_menu {
    display: flex;
    width: 35px;
    aspect-ratio: 1/1;
    position: relative;
    background: transparent;
    margin-right: 10px;
    border: none;
    margin-left: -5px;
  }

  .btn_menu span {
    position: absolute;
    top: calc(50% - 1.5px);
    width: 22px;
    height: 3px;
    background: #000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }

  .header_main .container {
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .header_top {
    padding: 15px 18px;
  }

  .btn_menu span:nth-child(1) {
    transform: translate(0, -8px);
  }
  .btn_menu span:nth-child(3) {
    transform: translate(0px, 8px);
    width: 13px;
    margin-left: 7px;
  }

  .header_main__time {
    display: none;
  }

  .header_main__phone {
    margin-right: 10px;
  }

  .header_menu {
    display: none;
  }

  .header_main {
    margin-bottom: 15px;
  }
  .header__logo__adress {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  .header__info__data {
    gap: 4px;
  }

  .header_main__social {
    gap: 4px;
  }

  .header_btn {
    width: 35px;
  }
  .header_call {
    display: none;
  }
  .header__info__data .header__user__dropdown {
    display: none;
  }
  .header__user__mobile {
    display: flex;
    margin: 12px 0 14px;
  }
  .header__user__mobile .header_call {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .header__user__mobile .header_call:hover {
    background: #212121;
    color: #fff;
  }

  .header__user__mobile .container {
    width: 100%;
    padding: 0 1.25rem;
    gap: 7.5px;
  }

  .header_logo__image {
    width: 92.5px;
  }
}

@media screen and (max-width: 550px) {
  .header_main__phone {
    display: none;
  }
}

/* ---------- language switcher (kantor.exchange-style hover dropdown) ---------- */

.header__language {
  position: relative;
  z-index: 5;
}

.header__language__view {
  border-radius: 0.38rem;
  background: #eee;
  width: 2.25rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  position: relative;
}

.header__language__view svg {
  width: 50%;
  height: auto;
}

.header__language__view path {
  transition: 0.25s ease-in-out;
}

.header__language:hover .header__language__view,
.header__language.hover .header__language__view {
  background: #222;
}

.header__language:hover .header__language__view path,
.header__language.hover .header__language__view path {
  stroke: #fff;
}

.header__language__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  width: 6.75rem;
  background: #fff;
  border-radius: 0.38rem;
  box-shadow: 0 14px 24px 0 rgba(0, 0, 0, 0.13);
  pointer-events: none;
  opacity: 0;
  transition: 0.25s ease-in-out;
}

.header__language:hover .header__language__dropdown,
.header__language.hover .header__language__dropdown {
  opacity: 1;
  pointer-events: all;
}

/* Decorative dark notch above the dropdown */
.header__language__dropdown::after {
  content: "";
  width: 0.5rem;
  aspect-ratio: 1 / 1;
  background: #222;
  position: absolute;
  top: -0.2rem;
  right: 0.9rem;
  transform: rotate(45deg) translate(-50%, -50%);
  opacity: 0;
  transition: 0.25s ease-in-out;
}

.header__language:hover .header__language__dropdown::after,
.header__language.hover .header__language__dropdown::after {
  opacity: 1;
}

.header__language__list {
  display: flex;
  flex-direction: column;
  border-radius: 0.38rem;
  overflow: hidden;
}

.header__language__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.9375rem;
  font-weight: 500;
  font-size: 0.88rem;
  line-height: 1.34523;
  color: #3c3c3c;
  text-decoration: none;
  border-bottom: 1px solid #eaeaea;
}

.header__language__list a:last-child {
  border-bottom: 0;
}

.header__language__list a:hover {
  background: #fed435;
}

.header__language__list a.active {
  background: #f6f6f6;
  pointer-events: none;
}

.header__language__icon {
  width: 1.3125rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  font-size: 0;
}

.header__language__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__language__text {
  line-height: 0.9;
  margin-bottom: -0.2rem;
  text-transform: uppercase;
  display: inline-block;
}

@media screen and (max-width: 1024px) {
  .header__language__view {
    width: 32px;
  }
}
