/* ===== ACHIEVEMENTS PAGE ===== */

.ach-page {
  max-width: 1350px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  flex-direction: column;
}

/* ===== HEADER BLOCK ===== */

.flex-container.npa-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

/* Кнопка слева */
.npa-back {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  color: #003366;
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;   /* не переносится */
}

.npa-back:hover {
  text-decoration: underline;
}

/* Заголовок по центру страницы */
.ach-page-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #003366;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
}

/* ===== Список карточек ===== */

.ach-list {
  padding-left: 10%;
  padding-right: 10%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  box-sizing: border-box;
}

/* ===== Карточка ===== */

.ach-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08),
              0 8px 24px rgba(0,0,0,0.05);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.ach-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12),
              0 20px 40px rgba(0,0,0,0.08);
}

/* ===== Заголовок карточки ===== */

.ach-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #003366;
  text-align: center;
  margin-bottom: 10px;
}

/* ===== Текст ===== */

.ach-text {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  margin-bottom: 15px;
}

/* ===== Картинки ===== */

.ach-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ach-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== Видео ===== */

.ach-video iframe {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-top: 15px;
}

/* ===== Дата ===== */

.ach-date {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 15px;
}

/* ============================= */
/* ===== АДАПТИВ ===== */
/* ============================= */

@media (max-width: 992px) {
  .ach-list {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .ach-title {
    font-size: 20px;
  }

  .ach-text {
    font-size: 15px;
  }

  .ach-video iframe {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .ach-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ach-title {
    font-size: 18px;
  }

  .ach-text {
    font-size: 14px;
  }

  .ach-video iframe {
    height: 200px;
  }

  .ach-images {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ach-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ach-title {
    font-size: 16px;
  }

  .ach-text {
    font-size: 13px;
  }

  .ach-video iframe {
    height: 180px;
  }

  .ach-images {
    grid-template-columns: 1fr;
  }
}
