/* ===== BASE: COMMON PAGE ===== */
.common-page {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

/* ===== WORKING AREA ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== UNIVERSAL TEXT STYLES ===== */
.common-page .container,
.common-page .container p,
.common-page .container li,
.common-page .container span,
.common-page .container a {
  font-family: inherit;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

/* ===== TITLES ===== */
.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin: 0 0 12px 0;
  max-width: 500px;
  word-break: break-word;
}

.page-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  margin: 0 0 16px 0;
  max-width: 600px;
  line-height: 1.4;
}

/* ===== LINKS ===== */
.common-page .container a {
  color: #0073c6;
  text-decoration: none;
}

.common-page .container a:hover {
  text-decoration: underline;
}

/* ===== LISTS ===== */
.common-page .container ul,
.common-page .container ol {
  padding-left: 20px;
  margin: 12px 0;
}

/* ===== HEADINGS INSIDE CONTENT ===== */
.common-page .container h2,
.common-page .container h3,
.common-page .container h4 {
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  color: #000;
  line-height: 1.4;
  margin: 16px 0 8px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .page-title {
    font-size: 28px;
    max-width: 100%;
  }

  .page-subtitle {
    font-size: 16px;
    max-width: 100%;
  }
}

/* ===== NEWS CARDS ===== */
.news-list {
  display: grid;
  grid-template-columns: 250px 1fr; /* первая новость слева */
  grid-auto-rows: auto;
  gap: 15px;
  justify-content: flex-start;
  margin: 0 auto 1cm auto; /* нижний отступ до футера */
}

.news-item:first-child {
  width: 350px;
}

.news-item:not(:first-child) {
  width: 350px;
}

/* ===== КАРТОЧКА НОВОСТИ: ОБЪЁМ В СТИЛЕ КНОПКИ ===== */
.news-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;

  /* Базовая тень для объёма */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover эффект: подпрыгивание, scale, усиленная тень и синий glow */
.news-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 8px rgba(0,115,198,0.7) inset, /* внутреннее синее свечение */
    0 0 10px rgba(0,115,198,0.6),      /* внешнее синее свечение */
    0 20px 40px rgba(0,0,0,0.3);        /* усиленная тень для объёма */
}

/* ===== ИЗОБРАЖЕНИЕ ===== */
.news-image-wrapper {
  height: 180px;
  overflow: hidden;
  background: transparent;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image-wrapper img {
  transform: scale(1.05);
}

/* ===== КОНТЕНТ КАРТОЧКИ ===== */
.news-content {
  background: transparent; /* чтобы glow был ровным */
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.news-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
}

.news-title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.news-intro {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.3;
}

/* ===== MEDIA QUERIES FOR NEWS ===== */
@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr; /* мобильная версия — одна колонка */
    justify-content: center;
  }

  .news-item,
  .news-item:first-child,
  .news-item:not(:first-child) {
    width: 100%;
  }

  .news-image-wrapper {
    height: 180px;
  }
}