:root {
  --main-color: #1e1e1e;
  --blue-color: #293182;
  --blue-hover-color: #3a4ba3;
  --red-color: #de0914;
  --red-hover-color: #b60610;
  --red-dark-color: #a5050e;
  --grey-color: #d8d8d8;
  --grey-hover-color: #c1c1c1;
  --grey-light-color: #f5f5f5;
  --grey-dark-color: #808080;
  --secondary-color: #9a9a9a;
  --block-space: 64px;
  --block-space-lg: 84px;
  --block-space-xl: 94px;
  --box-shadow: 0 0 10px rgba(0, 0, 0, 0.29);
}
@media (max-width: 767.98px) {
  :root {
    --block-space: 40px;
    --block-space-lg: 40px;
    --block-space-xl: 40px;
  }
}

.header__buttons {
  display: flex;
  align-items: center;
  column-gap: 30px;
}

.header-basket {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--red-color);
  border-radius: 5px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  padding: 9px 14px;
}
.header-basket:hover {
  border-color: var(--blue-color);
  color: var(--red-color);
}
.header-basket__icon {
  color: var(--red-color);
  display: flex;
  align-items: center;
}
.header-basket__icon svg {
  width: 27px;
  height: 24px;
  margin: -2px 0 -2px -2px;
}
.header-basket:hover .header-basket__icon {
  color: var(--blue-color);
}
.header-basket__count {
  margin-left: 10px;
}
.header-basket__text {
  white-space: nowrap;
  border-left: 1px solid var(--grey-color);
  margin-left: 16px;
  padding-left: 15px;
}

.header-compare,
.header-favorite {
  --fill: transparent;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 0;
  color: var(--blue-color);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  padding: 0;
  height: 40px;
}
.header-compare:hover,
.header-favorite:hover {
  color: var(--red-color);
}
.header-compare.is-active,
.header-favorite.is-active {
  color: var(--red-color);
}
.header-compare__count,
.header-favorite__count {
  margin-left: 8px;
}

.header-contacts__callback-btn {
  white-space: nowrap;
}

.header__top-search {
  display: none;
}

@media (max-width: 1199.98px) {
  .header__buttons {
    column-gap: 14px;
  }
  .header-basket__text {
    display: none;
  }
}
@media (max-width: 991.98px) {
  .header__top-phone {
    display: block;
    margin: 0 auto;
  }
  .header__top-search {
    display: block;
    margin-right: 10px;
  }
  .header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    padding: 0;
  }
  .header__contacts {
    display: none;
  }
  .header__search {
    top: -44px;
    bottom: auto;
    height: 44px;
    background: var(--red-color);
  }
  .header-search__input {
    border-color: #fff;
  }
  .header-search__input:focus {
    border-color: #fff;
  }
  .header__search-close {
    color: #fff;
  }
  .header__search-close:hover {
    color: #fff;
  }
}
@media (max-width: 430px) {
  .header__logo img {
    max-width: 120px;
  }
  .header__top-search {
    margin-right: 0;
  }
  .header__buttons {
    column-gap: 8px;
  }
  .header-basket {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-compare__count,
  .header-favorite__count,
  .header-basket__count {
    margin-left: 6px;
  }
}