.news-index-page {
  min-height: 100vh;
  background: #f3f7fc;
}

.news-index__topbar {
  min-height: 64px;
  background: #12347f;
}

.news-index__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.news-index__brand,
.news-index__back {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.news-index__brand {
  font-size: 17px;
}

.news-index__back {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
}

.news-index__back:hover,
.news-index__back:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.news-index {
  padding: 54px 0 72px;
}

.news-index__heading {
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d5e1f2;
}

.news-index__heading h1 {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: #12347f;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.news-index__heading h1::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 5px;
  content: "";
  background: #27b6ea;
  border-radius: 3px;
}

.news-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-index__item {
  min-width: 0;
  overflow: hidden;
  color: #22304a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #d5e1f2;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(31, 54, 96, 0.09);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-index__item:hover,
.news-index__item:focus-visible {
  border-color: #69bde8;
  box-shadow: 0 14px 30px rgba(31, 54, 96, 0.14);
  transform: translateY(-2px);
}

.news-index__item img {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  background: #e8eef7;
  border-bottom: 1px solid #d5e1f2;
}

.news-index__item h2 {
  display: -webkit-box;
  min-height: 112px;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  color: #22304a;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

@media (max-width: 980px) {
  .news-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-index__topbar-inner {
    position: relative;
    gap: 12px;
    min-height: 72px;
    padding-right: 92px;
  }

  .news-index__brand {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .news-index__back {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 5px 9px;
    font-size: 13px;
    transform: translateY(-50%);
  }

  .news-index {
    padding: 36px 0 52px;
  }

  .news-index__heading {
    margin-bottom: 22px;
  }

  .news-index__heading h1 {
    font-size: 30px;
  }

  .news-index__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-index__item h2 {
    min-height: 0;
    padding: 17px 18px 19px;
    font-size: 17px;
  }
}
