/* Tik eskaiciuokle.lt pagrindiniam puslapiui. */
.page-hero--home {
  padding-bottom: 44px;
}

.page-hero--home .page-hero__inner {
  max-width: 760px;
}

.page-hero--home > .page-hero__inner > p {
  margin-bottom: 26px;
}

.home-search {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  text-align: left;
}

.home-search__field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  background: linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
  box-shadow: 0 15px 38px rgba(7,18,31,.25), inset 0 1px 0 rgba(255,255,255,.8);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-search__field:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(232,101,10,.2), 0 18px 44px rgba(7,18,31,.3), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}

.home-search__icon {
  position: absolute;
  right: 7px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 5px 13px rgba(232,101,10,.27);
  pointer-events: none;
}

.home-search__input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 58px 0 18px;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: var(--c-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
}

.home-search__input::placeholder { color: #8b9298; font-weight: 400; }
.home-search__input::-webkit-search-cancel-button { display: none; }

.home-search__meta {
  position: absolute;
  top: calc(100% + 7px);
  left: 5px;
  right: 5px;
  min-height: 0;
  padding: 0;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.4;
  z-index: 2;
}
.home-search__meta[hidden] { display: none; }

.home-search__meta strong { color: #fff; font-weight: 700; }

.category-block[hidden],
.calc-card[hidden],
.home-search-empty[hidden] { display: none !important; }

.home-search-empty {
  margin: 42px auto 28px;
  padding: 44px 22px;
  max-width: 620px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.home-search-empty__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: rgba(232,101,10,.1);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 29px;
}

.home-search-empty h2 { margin-bottom: 6px; color: var(--c-text); font-size: 18px; }
.home-search-empty p { margin-bottom: 18px; color: var(--c-muted); font-size: 13px; }
.home-search-empty button {
  padding: 10px 16px;
  border: 1px solid var(--c-accent);
  border-radius: 8px;
  background: var(--c-accent);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.home-search-empty button:hover { filter: brightness(.94); transform: translateY(-1px); }

@media (max-width: 600px) {
  .page-hero--home { padding-bottom: 32px; }
  .page-hero--home > .page-hero__inner > p { margin-bottom: 21px; }
  .home-search__input { height: 50px; padding-left: 16px; padding-right: 54px; font-size: 16px; }
  .home-search__icon { right: 7px; }
  .home-search-empty { margin-top: 28px; padding: 34px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-search__field, .home-search-empty button { transition: none; }
}
