*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ overflow-x: hidden; }

body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  transform: translateY(var(--page-y, 40px));
}

.grid{
  width: 100%;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  background: #fff;
  text-align: center;
  min-height: 340px;
}

.card_j10 {
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  background: #fff;
  text-align: center;
  min-height: 340px;
}

.card:hover{
  border-color: blue;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.card__link{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.card__img_qqj10 {
  border-radius: 10px;
  width: 80%;
  max-width: 360px;
  height: var(--img-h, 200px);
  object-fit: contain;
  display: block;
}

.card__img{
  width: 100%;
  max-width: 360px;
  height: var(--img-h, 200px);
  object-fit: contain;
  display: block;
}

.card__title{
  font-size: 40px;
  font-family: "Arial Black", Helvetica, sans-serif;
  line-height: 1.1;
  margin: 12px 0 0 0;
  color: blue;
}

.card__link:hover .card__title{ text-decoration: underline; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 50px auto 0 auto;
  font-size: 24px;
}

.nav a {
  color: #000;
  font-family: "Times New Roman", serif;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  color: #d10a0a;
  text-decoration: underline;
}

@media (min-width: 1100px){
  .nav__left{ margin-left: -90px; }
  .nav__right{ margin-right: -90px; }
}

@media (max-width: 768px){
  body{ display: block; min-height: auto; }
  .page{ padding: 20px 16px; transform: none; }
  .grid{ grid-template-columns: 1fr; justify-items: center; margin-bottom: 30px; }
  .card{ width: 100%; max-width: 420px; min-height: 0; height: auto; }
}

@media (max-width: 600px){
  .page{ padding: 20px 24px; }
  .card{ max-width: 380px; }
  .card__img{ max-width: 300px; }
  .card__title{ font-size: 1.2rem; margin: 12px 0 14px 0; }
  .nav{ flex-direction: column; align-items: center; gap: 5px; margin-top: 30px; font-size: 18px; }
  .nav a{ font-size: 18px; line-height: 1.2; }
  .nav__right{ margin-top: 20px; }
}