:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #18212f;
  --muted: #5f6c7b;
  --line: #d9e1ea;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --warm: #f59e0b;
  --green: #059669;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(210deg, rgba(245, 158, 11, 0.09), transparent 30%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 225, 234, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand img {
  width: 30px;
  height: 30px;
}

.home {
  min-height: calc(100vh - 60px);
}

.search-panel {
  width: min(760px, calc(100% - 32px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 0 44px;
}

.hero-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1;
  font-weight: 820;
}

.search-form {
  position: relative;
  width: min(680px, 100%);
  margin-top: 34px;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding-left: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(24, 33, 47, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.14);
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}

.search-input::placeholder {
  color: #95a1af;
}

.search-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 1px 0 8px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.search-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.search-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  stroke-linecap: round;
}

.suggestions {
  position: absolute;
  left: 18px;
  right: 18px;
  top: calc(100% + 10px);
  z-index: 30;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(24, 33, 47, 0.12);
  max-height: min(360px, calc(100vh - 180px));
  overflow-y: auto;
}

.suggestions button {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.suggestions button:hover,
.suggestions button:focus {
  outline: 0;
  background: #eef4ff;
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 18px;
  }

  .search-panel {
    min-height: calc(100vh - 88px);
    padding-top: 38px;
  }

  .search-box {
    min-height: 54px;
    padding-left: 18px;
  }

  .search-input,
  .search-button {
    height: 52px;
  }

  .search-button {
    width: 52px;
  }
}
