@media (min-width: 600px) {
  .admin-bar .header__main-wrap {
    top: 32px;
  }
}

.header {
  background: #ffffff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
  height: 112px;
}

.header__top {
  background: #ebeff4;
}

.header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.header__top-nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__top-link {
  font-size: 14px;
  line-height: 1.4;
  color: #090909;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px;
  transition: color 0.3s ease;
}

.header__top-nav-item--calculator .header__top-link {
  padding-left: 0;
  padding-right: 0;
}

.header__top-link:hover {
  color: #f99515;
}

.header__top-link.lang-select-current {
  text-transform: uppercase;
  background: transparent;
}

.header__top-icon {
  width: 20px;
  height: 20px;
}

.header__top-chevron {
  width: 20px;
  height: 20px;
}

.header__top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__top-location {
  display: flex;
  gap: 4px;
  padding: 8px;
  font-size: 14px;
  color: #090909;
}

.header__top-lang {
  display: flex;
  align-items: center;
}

.header__top-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__top-social {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.header__top-social:hover {
  opacity: 0.7;
}

.header__top-social img {
  width: 100%;
  height: 100%;
}

.header__main {
  padding: 12px 0;
}

.header__main-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__logo {
  width: 200px;
  height: 48px;
  border-right: 1px solid #c7ced4;
  display: flex;
  align-items: center;
  padding-right: 20px;
}

.header__logo img {
  max-width: 150px;
  height: auto;
}

.header__catalog-btn {
  background: linear-gradient(-59.84deg, #f99515 7.42%, #ff7316 112.6%);
  border: none;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  width: 200px;
}

.header__catalog-btn:hover {
  opacity: 0.9;
}

.header__catalog-btn img {
  min-width: 24px;
  height: 24px;
}

.header__search {
  flex: 1;
  max-width: 310px;
  background: #fff;
  border: 1px solid #c7ced4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 3px 4px 3px 16px;
}

.header__search-form {
  display: flex;
  align-items: center;
  width: 100%;
}

.header__search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333333;
  width: 100%;
}

.header__search-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(-82.06deg, #f99515 7.42%, #ff7316 112.6%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header__search-btn:hover {
  opacity: 0.9;
}

.header__search-btn img {
  width: 20px;
  height: 20px;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__messengers {
  display: flex;
  gap: 12px;
}

.header__messenger {
  width: 40px;
  height: 40px;
  background: #ebeff4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.header__messenger:hover {
  background: #dde3eb;
}

.header__messenger img {
  width: 24px;
  height: 24px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  text-decoration: none;
  color: #090909;
  font-size: 14px;
  white-space: nowrap;
}

.header__phone img {
  width: 20px;
  height: 20px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__action {
  width: 40px;
  height: 40px;
  border: 1px solid #c7ced4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.header__action:hover {
  background: #f6f6f6;
}

.header__action img {
  width: 24px;
  height: 24px;
}

.header__action--cart {
  background: linear-gradient(-82.06deg, #f99515 7.42%, #ff7316 112.6%);
  border: none;
}

.header__action--cart:hover {
  opacity: 0.9;
  background: linear-gradient(-82.06deg, #f99515 7.42%, #ff7316 112.6%);
}

.header-notices .breadcrumb-list > span > span {
  color: #c7ced5;
}

/* Header compact layout — matches Figma (node 2:2145), max-width 1200px */
.header__top-nav-item--burger {
  display: none;
}

.header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.header__burger img {
  display: block;
  width: 24px;
  height: 24px;
}

.header__burger:focus-visible {
  outline: 2px solid #f99515;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }

  .header__top-nav-item--burger {
    display: flex;
  }

  /* Hide calculator, About, Blog — rest goes to burger menu later */
  .header__top-nav-list > li:nth-child(2),
  .header__top-nav-list > li:nth-child(5),
  .header__top-nav-list > li:nth-child(6) {
    display: none;
  }

  .header__top-inner {
    padding-top: 4px;
    height: auto;
    min-height: 40px;
  }

  .header__top-location {
    display: none;
  }

  .header__top-lang .header__top-link span {
    text-transform: uppercase;
  }

  .header__main-inner {
    gap: 12px;
  }

  .header__contacts {
    margin-left: 8px;
    margin-right: 14px;
  }

  .header__logo {
    width: 133px;
    min-width: 133px;
    height: 40px;
    padding-right: 12px;
  }

  .header__logo img {
    max-width: 125px;
  }

  .header__catalog-btn {
    position: relative;
    max-width: none;
    width: auto;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 10px 12px;
    gap: 0;
  }

  .header__catalog-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .header__search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .header__messengers {
    display: none;
  }

  .header__phone {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background: #ebeff4;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .header__phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 1100px) {
  main {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .header {
    height: 88px;
  }
  .header__top-nav-list li:not(.header__top-nav-item--burger),
  .header__action:not(.header__action--cart),
  .header__top-lang,
  .header__logo {
    display: none;
  }
  .header__contacts {
    margin-right: 0;
  }
  .header__top-inner {
    padding-top: 0;
    min-height: 32px;
  }
  .header__main {
    padding: 8px 0;
  }
  .header__catalog-btn {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
  }
  .header__catalog-btn img {
    min-width: 20px;
    height: 20px;
  }
  .header__search {
    border-radius: 8px;
  }
  .header__search-btn {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}

@media (max-width: 359px) {
  .container {
    padding: 0 10px;
  }
}
