* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  color: #222;
}

header {
  height: 64px;
  padding: 0 42px;
  background: #00633f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 700;
}

.hero {
  height: 400px;
  background: linear-gradient(#00633f 0 80%, #fff 72%);
  display: flex;
  justify-content: center;
  gap: 70px;
  padding-top: 80px;
}

.hero img {
  width: 300px;
  height: 360px;
  object-fit: cover;
  box-shadow: 18px 22px 30px rgba(0,0,0,.22);
}

.hero-text {
  color: white;
  width: 470px;
  padding-top: 40px;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.35;
  margin: 0 0 18px;
}

.hero-text p {
  font-size: 14px;
  line-height: 1.8;
}

.hero-text button {
  margin-top: 34px;
  padding: 14px 72px 14px 0;
  border: 0;
  border-bottom: 2px solid #333;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

main {
  width: 960px;
  margin: 110px auto;
}

.search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 70px;
  border-bottom: 2px solid #999;
}

.search-bar select {
  width: 190px;
  height: 46px;
  border: 0;
  font-size: 14px;
}

.search-bar input {
  flex: 1;
  height: 46px;
  border: 0;
  padding-left: 24px;
  font-size: 14px;
}

.search-bar span {
  font-size: 32px;
  color: #555;
}

.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 130px;
  row-gap: 90px;
}

.book {
  position: relative;
}

.book img {
  width: 220px;
  height: 300px;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.best {
  background: #22bfd2;
}

.new {
  background: #ff6b00;
}

.tag {
  margin-top: 22px;
  color: #008854;
  font-size: 13px;
  font-weight: 700;
}

.book h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.35;
}

.book p:last-child {
  color: #777;
  font-size: 13px;
}

footer {
  border-top: 1px solid #ddd;
  padding: 55px 140px;
  display: flex;
  gap: 0px;
  color: #555;
}

.footer-logo {
  font-size: 34px;
  font-weight: 700;
  color: #333;
}

footer h4 {
  margin: 0 0 14px;
  color: #333;
}

.top-menu-list li.active::after {
  background: #fff
}
