/* =========================
   PAGE CONTAINER
========================= */
.main-page-gridi {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flow-root;
}

/* =========================
   PINTEREST GRID (БЕЗ JS)
========================= */
.news-grid {
  column-count: 4;
  column-gap: 14px;
  padding: 16px 0;
}

/* =========================
   ITEM WRAPPER
========================= */
.news-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;

  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/* =========================
   CARD STYLE
========================= */
.main-news {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-news:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* =========================
   IMAGE
========================= */
.main-news-image {
  position: relative;
}

.main-news-image img {
  width: 100%;
  display: block;
}

/* =========================
   TITLE
========================= */
.main-news-title {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.main-news-title a {
  text-decoration: none;
  color: #222;
}

/* =========================
   TEXT
========================= */
.main-news-text {
  padding: 0 12px 14px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* =========================
   АДАПТИВ
========================= */
@media (max-width: 1200px) {
  .news-grid {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .news-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .news-grid {
    column-count: 1;
  }

  .main-page {
    padding: 0 12px;
  }
}