/* NetSurf compatible: CSS 2.1 + flex */
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 1.125rem;   /* ~18px */
}

.new {
    background-color: #B2F5D0;
    color:#004D33;
    padding: 0px 8px 3px 8px;
    border-radius: 4px;
    font-weight: bold; 
}

h1 {
    margin-bottom: 0;
}
/* Навигация и заголовок */
.topnav,
.header {
  text-align: center;
}

.subtitle {
  margin-top: 0.5em;
}

/* Контейнер с колонками */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  width: 948px; /* 3*300 + 2*24 */
  margin: 0 auto;
  padding-top: 24px;

  box-sizing: border-box;
}

/* Колонка */
.column {
  width: 300px;
  margin-right: 24px;
  text-align: center;
  box-sizing: border-box;
}

/* убираем отступ у последней колонки в строке */
.column:nth-child(3n) {
  margin-right: 0;
}

/* Элемент */
.item {
  width: 300px;
  background: #ffffff;
  border: 3px solid #E3E3E3;
  text-align: center;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Картинки */
.column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Footer */
.footer {
  width: 948px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #999;
}

.copyright {
  font-size: small;
  text-align: center;
}

.footnotes {
  text-align: left;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

a {
  color: #1a0dab;   /* мягкий синий, как у стандартных ссылок */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: currentColor;
}

/* Простейший мобильный fallback */
@media (max-width: 600px) {
  .container {
    width: 100%;
    flex-direction: column;   /* элементы идут сверху вниз */
    align-items: center;
  }

  /* Картинка первой */
  .image-column {
    order: -1;
  }

  /* Колонки друг под другом */
  .column {
    width: 100%;
    margin-right: 0;
  }

  .item {
    width: 100%;
  }

  .footer {
    width: 100%;
  }
}
