:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #1B1F1D;
  background: #F6F4EF;
  --teal: #0E7C66;
  --teal-dark: #0A5F4E;
  --teal-soft: #E4F2ED;
  --border: #E2DDD2;
  --muted: #5F6662;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-bottom: 112px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #F6F4EF;
  padding: 12px max(16px, calc((100% - 480px) / 2)) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  background: #123A33;
}
.brand strong {
  display: block;
  font-size: 17px;
  line-height: 22px;
  font-weight: 600;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}
.search svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1B1F1D;
  font: inherit;
  font-size: 15px;
}
.search input::placeholder {
  color: #858C88;
}
.chips {
  position: sticky;
  top: 108px;
  z-index: 4;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  margin: 0 auto;
  padding: 12px max(16px, calc((100% - 480px) / 2));
  border-bottom: 1px solid #E7E2D8;
  background: #F6F4EF;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips button {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: #343A37;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.chips button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
}
main {
  max-width: 480px;
  margin: auto;
  padding: 0 16px;
}
.hero {
  display: flex;
  align-items: center;
  height: 176px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background-color: #123A33;
  background-image:
    linear-gradient(90deg, #123A33 0%, #123A33 52%, #123A33D9 65%, #123A3355 84%, transparent),
    url("../img/hero.jpg");
  background-position: right center;
  background-size: cover;
  color: #fff;
}
.hero > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 228px;
  max-width: 100%;
  padding: 16px;
}
.hero p {
  margin: 0;
  color: #A8D5C8;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.08em;
}
.hero h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}
.hero small {
  color: #D5E6E0;
  font-size: 12px;
  line-height: 16px;
}
.category {
  scroll-margin-top: 180px;
  margin: 24px 0;
}
.category h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 700px) {
  .top {
    padding-right: max(20px, calc((100% - 900px) / 2));
    padding-left: max(20px, calc((100% - 900px) / 2));
  }
  .chips {
    padding-right: 16px;
    padding-left: 16px;
  }
  main,
  .chips {
    max-width: 900px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .top {
    padding-right: max(24px, calc((100% - 1120px) / 2));
    padding-left: max(24px, calc((100% - 1120px) / 2));
  }
  main,
  .chips {
    max-width: 1120px;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  * {
    transition: none !important;
  }
}
