/* Контейнер и заголовки */
.chemsoc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
}

.chemsoc-h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 12px;
  font-weight: 700;
}

.chemsoc-section { margin-top: 28px; }

.chemsoc-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding-bottom: 8px;
}

.chemsoc-h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  margin: 0;
}

.chemsoc-link-more {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  opacity: .8;
}
.chemsoc-link-more:hover { opacity: 1; }

/* Сетка карточек */
.chemsoc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
}

/* На десктопе 3 в ряд, на планшете 2, на мобилке 1 */
.chemsoc-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chemsoc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.1);
}

@media (max-width: 1024px) {
  .chemsoc-card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .chemsoc-card { grid-column: span 12; }
}

/* Медиа */
.chemsoc-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f5f5f7;
}
.chemsoc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Тело карточки */
.chemsoc-card-body { padding: 16px 16px 14px; }

.chemsoc-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}
.chemsoc-card-title a {
  color: inherit;
  text-decoration: none;
}
.chemsoc-card-title a:hover { text-decoration: underline; }

.chemsoc-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
}
.chemsoc-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

.chemsoc-card-text {
  margin: 0 0 12px;
  color: #333;
  font-size: 14px;
}

/* Кнопка */
.chemsoc-card-actions { margin-top: auto; }
.chemsoc-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  background: #0a66c2; /* можешь заменить на фирменный */
  color: #fff;
  transition: opacity .15s ease;
}
.chemsoc-btn:hover { opacity: .9; }

/* Пустые состояния */
.chemsoc-empty {
  margin: 8px 0 0;
  color: #666;
}
