* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #222;
  background: #efefef;
  line-height: 1.5;
}

.site-header {
  width: 90%;
  max-width: 950px;
  margin: 20px auto 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #cfcfcf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-box {
  width: 36px;
  height: 36px;
  background: #2f6f95;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 4px;
}

.logo h1 {
  font-size: 1.4rem;
}

.menu-button {
  border: 1px solid #9c9c9c;
  border-radius: 6px;
  background: #fff;
  width: 44px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 48px;
  right: 0;
  width: 190px;
  background: #fff;
  border: 1px solid #bdbdbd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.dropdown-menu.open {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #e5e5e5;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

.content {
  width: 90%;
  max-width: 950px;
  margin: 0 auto 24px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid #c7c7c7;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid #ddd;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p {
  color: #444;
  margin-bottom: 12px;
  flex-grow: 1;
}

.card-button {
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #333;
  background: #f2f2f2;
  color: #111;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 4px;
  padding: 8px 12px;
}

.card-button:hover {
  background: #e7e7e7;
}

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-card {
  background: #fff;
  border: 1px solid #c7c7c7;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.detail-card img {
  width: 100%;
  max-width: 420px;
  border: 1px solid #ddd;
}

.detail-text h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.detail-text p {
  margin-bottom: 12px;
  color: #333;
}

.detail-section {
  background: #fff;
  border: 1px solid #c7c7c7;
  padding: 14px;
}

.detail-section h3 {
  margin-bottom: 8px;
}

.detail-section ul {
  padding-left: 20px;
}

.detail-section li {
  margin-bottom: 6px;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-card {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
