* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial;
}

body {
  overflow-x: hidden;
}

ul {
  list-style: none;
}

.link_wrapper {
  text-decoration: none;
}

.largebox {
  width: 100%;
  height: 342px;
  background-image: url("/static/images/cover.jpg");
  background-position: center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.largebox__title {
  color: #fff;
  font-size: 46px;
  text-align: center;
  margin-bottom: 25px;
}

.content {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.navigation {
  width: 250px;
  flex-shrink: 0;
}

.navigation__content {
  background: #f6f6f6;
  padding: 1.5rem;
}

.navigation__content_link {
  margin-bottom: 2rem;
}

.navigation__content_link_to {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

.navigation__content_link_to:hover {
  color: #c8a165;
}

.navigation__content_link_to.active {
  color: #c8a165;
  font-weight: 600;
}

.cardWrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  flex: 1;
  max-width: 900px;
}

.content__first {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  background-color: #ebebeb;
  transition: background-color 0.3s ease;
}

.content__first:hover {
  background-color: #002366;
}

.content__first_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  min-height: 300px;
  cursor: pointer;
  position: relative;
}

.content__first_box_img {
  width: 100%;
  max-width: 240px;
  object-fit: contain;
}

.content__first_box_title {
  transform: translateY(40px);
  font-size: 18px;
  text-align: center;
  color: #111;
  width: 90%;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.content__first:hover .content__first_box_title {
  opacity: 0;
}

.content__first_box_button {
  width: 150px;
  height: 40px;
  border: 1px solid #fff;
  background-color: #002366;
  color: #fff;
  font-size: 14px;
  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.content__first_box_button:hover {
  background-color: #fff;
  color: #002366;
}

.content__first:hover .content__first_box_button {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .content {
    flex-direction: column;
    align-items: center;
  }

  .navigation {
    width: 100%;
    order: -1;
  }

  .cardWrapper {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .largebox__title {
    font-size: 32px;
  }

  .content__first_box_img {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .largebox__title {
    font-size: 24px;
  }

  .content__first_box_button {
    width: 140px;
  }
}