/* ─────────────────────────────────────────────────────────────
   Новости клиники — список.
   На боевом сайте это голая сетка картинок с обрезанным текстом.
   Здесь: карточки в стилистике сайта — скругление 20px, дата,
   аккуратная выжимка, ссылка со стрелкой, подъём при наведении.
   ───────────────────────────────────────────────────────────── */

/* ── Шапка страницы ─────────────────────────────────────────── */
.nhead {
  padding: 180px 0 56px;   /* шапка сайта лежит поверх */
  text-align: center;
}
.nhead__title {
  font-family: var(--font-body);
  font-size: 60px;
  line-height: 60px;
  font-weight: 700;
  color: var(--ink);
}
.nhead__lead {
  max-width: 660px;
  margin: 20px auto 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: var(--muted);
}

/* ── Главная новость ────────────────────────────────────────── */
.nfeat { padding-bottom: 60px; }

.nfeat__card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nfeat__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(var(--ink-rgb), 0.12);
}

.nfeat__media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}
.nfeat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nfeat__card:hover .nfeat__media img { transform: scale(1.05); }

.nfeat__body {
  display: flex;
  flex-direction: column;
  padding: 50px 50px 46px;
}
.nfeat__title {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 30px;
  line-height: 40px;
  font-weight: 600;
  color: var(--ink);
}
.nfeat__text {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  font-weight: 300;
  color: var(--muted);
}
.nfeat__more { margin-top: auto; padding-top: 30px; }

/* ── Дата и метка ───────────────────────────────────────────── */
.ndate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--badge-bg);
  border-radius: var(--radius-pill);
}
.ndate svg { width: 14px; height: 14px; flex: none; }

/* ── Сетка остальных новостей ───────────────────────────────── */
.nlist { padding-bottom: 120px; }

.nlist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 19.5px;
}

.ncard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ncard:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(var(--ink-rgb), 0.1);
}

.ncard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.ncard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ncard:hover .ncard__media img { transform: scale(1.05); }

.ncard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 28px;
}
.ncard__title {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
  /* не даём заголовку разъезжаться больше трёх строк */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncard__text {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 25px;
  font-weight: 300;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncard__more { margin-top: auto; padding-top: 22px; }

/* ── Ссылка «Читать» ────────────────────────────────────────── */
.nmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 27px;
  font-weight: 600;
  color: var(--brand);
}
.nmore svg { width: 14px; height: 14px; flex: none; }

/* ── Планшет ────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .nhead { padding: 56px 0 40px; }
  .nhead__title { font-size: 42px; line-height: 48px; }

  .nfeat__card { grid-template-columns: 1fr; }
  .nfeat__media { min-height: 300px; }
  .nfeat__body { padding: 34px 30px 32px; }
  .nfeat__title { font-size: 26px; line-height: 34px; }

  .nlist__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .nlist { padding-bottom: 80px; }
}

/* ── Телефон ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nhead { padding: 36px 0 28px; }
  .nhead__title { font-size: 32px; line-height: 38px; }
  .nhead__lead { font-size: 16px; line-height: 25px; }

  .nfeat { padding-bottom: 34px; }
  .nfeat__media { min-height: 220px; }
  .nfeat__body { padding: 26px 22px 24px; }
  .nfeat__title { font-size: 22px; line-height: 30px; }

  .nlist__grid { grid-template-columns: 1fr; gap: 20px; }
  .ncard__body { padding: 22px 22px 24px; }
  .nlist { padding-bottom: 56px; }
}
