.site-header {
  min-height: 64px;
  background:
    radial-gradient(circle at 10% 0, rgba(22, 163, 74, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(241, 249, 246, 0.98), rgba(237, 246, 255, 0.96));
  border-bottom: 1px solid #dce9f2;
  box-shadow: 0 12px 30px rgba(35, 48, 72, 0.045);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.logo img {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.search {
  position: relative;
  width: min(430px, 42vw);
  min-width: 270px;
}

.mobile-search-toggle {
  display: none;
}

.search input {
  width: 100%;
  height: 44px;
  padding: 0 54px 0 26px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  outline: none;
  box-shadow: 0 12px 28px rgba(31, 45, 70, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search input::placeholder {
  color: #8d98aa;
}

.search input:focus {
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1), 0 8px 18px rgba(15, 23, 42, 0.04);
}

.search button {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 32px;
  color: #243755;
  background: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease;
}

.search button:hover {
  color: var(--green);
  background: var(--green-soft);
}

.search .icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

@media (max-width: 767px) {
  .site-header {
    min-height: 0;
    padding: 8px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    column-gap: 12px;
    row-gap: 0;
  }

  .mobile-search-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    color: #243755;
    background: #fff;
    border: 1px solid #dfe7f1;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(31, 45, 70, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 42px;
    transition: opacity 180ms ease, transform 180ms ease, color 160ms ease, box-shadow 160ms ease;
  }

  .mobile-search-toggle:hover {
    color: var(--green);
    box-shadow: 0 14px 26px rgba(31, 45, 70, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .mobile-search-toggle .icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }

  .search {
    display: none;
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .header-inner.is-search-open .mobile-search-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
  }

  .header-inner.is-search-open {
    row-gap: 10px;
  }

  .header-inner.is-search-open .search {
    display: block;
  }

  .logo img {
    height: 40px;
  }
}

@media (max-width: 390px) {
  .logo img {
    height: 36px;
  }
}
