/* css/news.css */

.news {
  background: var(--c-bg-soft);
  padding: var(--section-py) 0;
  position: relative;
}

.news h2 {
  margin-bottom: clamp(32px, 5vh, 56px);
}

.news h2 .title-split__strong,
.news h2 .title-split__light { color: var(--c-ink); }

.news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent);
}

.news__list > li {
  border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent);
}

.ncard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: clamp(24px, 3.5vh, 40px) 0;
  cursor: pointer;
}

.ncard__media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-ph-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-ui) var(--ease-soft);
}

.ncard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ncard__ph {
  font-family: var(--f-body);
  font-size: var(--fs-caption);
  color: var(--c-ph-text);
}

.ncard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ncard__date {
  font-family: var(--f-body);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-body-light);
  margin-bottom: var(--space-3);
}

.news .ncard__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--c-ink);
  margin: 0 0 var(--space-3);
}

.ncard__excerpt {
  font-family: var(--f-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--c-body-light);
  margin: 0 0 var(--space-4);
  max-width: 52ch;
}

.ncard__more {
  font-family: var(--f-body);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 3px;
  transition: color var(--dur-ui) var(--ease-soft);
}

.ncard:hover .ncard__media { transform: translateY(-6px); }
.ncard:hover .ncard__more { color: var(--c-accent); }

@media (min-width: 768px) {
  .ncard {
    grid-template-columns: 38% 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
  }
}

/* ===== Модальное окно новости ===== */
.news__expand {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.news__expand.is-open { display: block; }

.nexpand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  animation: nexpand-in var(--dur-ui) var(--ease-soft);
}

@keyframes nexpand-in { from { opacity: 0; } to { opacity: 1; } }

.nexpand__bg-close { position: absolute; inset: 0; z-index: 1; }

.nexpand__panel {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: 100%;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 44px);
  border-radius: 20px;
  background: rgba(18, 16, 16, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.nexpand__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--c-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--dur-ui) var(--ease-soft);
}

.nexpand__close:hover { opacity: 1; background: none; }

.nexpand__date {
  display: block;
  font-family: var(--f-body);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-body-dark);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.nexpand .nexpand__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--c-white);
  margin: 0 0 var(--space-5);
  padding-right: 44px;
  letter-spacing: 0.01em;
}

.nexpand__text {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: #e8e8e8;
  margin: 0 0 var(--space-4);
}

.nexpand__text:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .nexpand { animation: none; }
  .ncard__media, .ncard__more { transition: none; }
}

@media (max-width: 767.98px) {
  .ncard {
    grid-template-columns: 96px 1fr;
    gap: var(--space-4);
    align-items: start;
  }

  .ncard__media {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
  }

  .ncard__ph { font-size: 10px; }

  .news .ncard__title { font-size: 1.125rem; }

  .ncard__excerpt {
    font-size: var(--fs-caption);
    margin-bottom: var(--space-3);
  }
}
