/* ==========================================================================
   Header — Фонд «Дорога жизни»
   Точные стили из Figma (десктоп 1440px + адаптив)
   ========================================================================== */

/* ─── Контейнер хедера ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 1440px;
  height: 60px;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border-radius: 0 0 10px 10px;
  margin: 0 auto;
}

.header__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 26px;
  box-sizing: border-box;
}

/* ==========================================================================
   LEFT — Навигация
   ========================================================================== */
.header__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}

.header__nav-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 8px 0;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header__nav-item:hover {
  background-color: rgba(62, 167, 79, 0.08);
}

.header__nav-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: #343333;
  text-transform: uppercase;
  white-space: nowrap;
}

.header__nav-item:hover .header__nav-text {
  color: #3EA74F;
}

/* Зелёная стрелка-шеврон */
.header__nav-arrow {
  flex-shrink: 0;
}

/* ==========================================================================
   CENTER — Логотип (абсолютно по центру)
   ========================================================================== */
.header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 165px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header__logo-icon {
  height: 40px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
}

/* ==========================================================================
   RIGHT — Поиск + Кнопки
   ========================================================================== */
.header__actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

/* Поиск */
.header__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header__search:hover {
  background-color: rgba(52, 51, 51, 0.06);
}

/* Кнопки */
.header__buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Общие стили кнопок */
.header__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 166px;
  height: 40px;
  border-radius: 100px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

.header__btn span {
  font-family: 'Roboto', Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  line-height: 15px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* Outline-кнопка «Нужна помощь» */
.header__btn--outline {
  border: 1px solid #EE7B2D;
  background: transparent;
}

.header__btn--outline span {
  color: #343333;
}

.header__btn--outline:hover {
  background: #EE7B2D;
}

.header__btn--outline:hover span {
  color: #FFFFFF;
}

/* Filled-кнопка «Пожертвовать» */
.header__btn--filled {
  border: 1px solid #EE7B2D;
  background: #EE7B2D;
}

.header__btn--filled span {
  color: #FFFFFF;
}

.header__btn--filled:hover {
  background: #d66d24;
  border-color: #d66d24;
}

/* ==========================================================================
   MOBILE — Бургер (скрыт на десктопе)
   ========================================================================== */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #343333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

/* Планшет (≤ 1100px) */
@media (max-width: 1100px) {
  .header__buttons {
    gap: 6px;
  }

  .header__btn {
    width: auto;
    height: 36px;
    padding: 8px 20px;
  }
}

/* Планшет малый (≤ 900px) */
@media (max-width: 900px) {
  .header__inner {
    padding: 0 16px;
  }

  .header__nav {
    display: none;
  }

  .header__buttons {
    gap: 6px;
  }

  .header__btn {
    padding: 8px 16px;
  }

  .header__btn span {
    font-size: 12px;
  }

  .header__burger {
    display: flex;
  }
}

/* Мобильный (≤ 600px) */
@media (max-width: 600px) {
  .header {
    height: 56px;
    border-radius: 0;
  }

  .header__actions {
    gap: 12px;
  }

  .header__search {
    width: 36px;
    height: 36px;
  }

  .header__btn {
    width: auto;
    height: 36px;
    padding: 8px 14px;
  }

  .header__logo {
    width: 130px;
    height: 34px;
  }

  .header__logo-icon {
    height: 34px;
    max-width: 130px;
  }
}
