/* news.css — список новостей и блок на главной, Мультик.ру */
:root {
  --nw-ink: #15172B;
  --nw-text: #4A4E63;
  --nw-muted: #5B5F73;
  --nw-bg: #F4F5F8;
  --nw-card: #FFFFFF;
  --nw-line: #E6E7EE;
  --nw-border: #DDE0E8;
  --nw-accent: #C2410C;
  --nw-yellow: #FFC83D;
  --nw-mark: #FFE08A;
  --nw-tag-bg: #FFF1E6;
  --nw-tag-ink: #A8360A;
  --nw-arch-bg: #ECEDF3;
  --nw-arch-ink: #464A5E;
  --nw-placeholder: #E9EAF0;
  --nw-r-lg: 24px;
  --nw-r: 20px;
  --nw-r-sm: 14px;
  --nw-shadow: 0 1px 0 var(--nw-line), 0 12px 32px -22px rgba(21, 23, 43, .3);
  --nw-shadow-hover: 0 22px 44px -24px rgba(21, 23, 43, .45);
  --nw-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Каркас */
.nw-page, .nw-home { font-family: var(--nw-font); color: var(--nw-ink); background: var(--nw-bg); }
.nw-page { padding: 36px 0 96px; }
.nw-home { padding: 72px 0; }
.nw-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 48px; }
.nw-home .nw-wrap { gap: 32px; }
.nw-page *, .nw-home * { box-sizing: border-box; }

/* Шапка раздела */
.nw-head { display: flex; flex-direction: column; gap: 12px; }
.nw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--nw-muted); }
.nw-crumbs a { color: inherit; text-decoration: none; }
.nw-crumbs a:hover { color: var(--nw-ink); }
.nw-eyebrow { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nw-accent); }
.nw-h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.nw-mark { padding: 0 .08em; background: linear-gradient(transparent 66%, var(--nw-mark) 66%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nw-lede { margin: 0; max-width: 620px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: var(--nw-text); }
.nw-h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.nw-h2--lg { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.nw-empty { margin: 0; padding: 48px 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--nw-muted); }

/* Рубрики */
.nw-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.nw-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--nw-border); border-radius: 999px; background: #fff; color: var(--nw-ink); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .2s; }
.nw-chip:hover { border-color: var(--nw-ink); color: var(--nw-ink); }
.nw-chip[aria-current="page"] { background: var(--nw-ink); border-color: var(--nw-ink); color: #fff; }

/* Картинка и заглушка */
.nw-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-img--empty { display: flex; align-items: center; justify-content: center; background: var(--nw-arch-bg); color: #8B8FA3; }
.nw-img--empty svg { width: 34px; height: 34px; }

/* Бейджи, метки, мета */
.nw-badges { position: absolute; left: 20px; top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.nw-badge { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--nw-ink); font-size: 12px; line-height: 1; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nw-badge--new { background: var(--nw-yellow); }
.nw-tag { padding: 4px 8px; border-radius: 999px; background: var(--nw-tag-bg); color: var(--nw-tag-ink); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nw-tag--archive { background: var(--nw-arch-bg); color: var(--nw-arch-ink); }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; font-weight: 700; color: var(--nw-muted); }

/* Большая карточка */
.nw-card { display: flex; min-width: 0; }
.nw-card__link { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: var(--nw-r-lg); background: var(--nw-card); box-shadow: var(--nw-shadow); color: var(--nw-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.nw-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nw-placeholder); }
.nw-card__body { display: flex; flex-direction: column; flex-grow: 1; gap: 12px; padding: 24px 28px 28px; }
.nw-card__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; transition: color .2s; }
.nw-card__excerpt { margin: 0; font-size: 16px; line-height: 1.6; color: var(--nw-text); }
.nw-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 800; color: var(--nw-accent); }
.nw-more svg { width: 18px; height: 18px; }

/* Верхняя пара: большая + боковая (одна новость — на всю ширину) */
.nw-top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.nw-card--featured { flex: 2 1 560px; }
.nw-card--featured .nw-card__body { gap: 14px; padding: 28px 32px 32px; }
.nw-card--featured .nw-card__title { font-size: clamp(23px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.nw-card--featured .nw-card__excerpt { font-size: 17px; }
.nw-card--side { flex: 1 1 320px; }
.nw-card--side .nw-card__media { aspect-ratio: 4 / 3; }
.nw-card--side .nw-card__title { font-size: 24px; }

/* Сетка остальных свежих */
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.nw-card--grid .nw-card__title { font-size: 20px; }
.nw-card--grid .nw-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; }

/* Реклама: резерв высоты против сдвига верстки */
.nw-ad { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.nw-ad ins { width: 100%; }

/* Архив */
.nw-archive { display: flex; flex-direction: column; gap: 24px; }
.nw-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 18px; border-bottom: 1px solid #E1E3EB; }
.nw-section-sub { font-size: 15px; font-weight: 600; color: var(--nw-muted); }
.nw-section-link { margin-left: auto; font-size: 15px; font-weight: 800; color: var(--nw-accent); text-decoration: none; }
.nw-section-link:hover { text-decoration: underline; }
.nw-archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.nw-arch { display: flex; min-width: 0; }
.nw-arch__link { display: flex; gap: 22px; width: 100%; padding: 16px; border-radius: var(--nw-r); background: var(--nw-card); box-shadow: 0 1px 0 var(--nw-line); color: var(--nw-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.nw-arch__poster { flex: 0 0 104px; height: 156px; overflow: hidden; border-radius: 12px; background: var(--nw-placeholder); }
.nw-arch__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 8px 4px 0; }
.nw-arch__date { font-size: 13px; font-weight: 700; color: var(--nw-muted); }
.nw-arch__title { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; transition: color .2s; }
.nw-arch__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: 15px; line-height: 1.55; color: var(--nw-text); }

/* Пагинация */
.nw-pager { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.nw-more-btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 32px; border-radius: 999px; background: var(--nw-ink); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.nw-more-btn:hover { background: #2A2D47; color: #fff; }
.nw-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.nw-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border: 1px solid transparent; border-radius: 12px; color: var(--nw-ink); text-decoration: none; }
.nw-page-link:hover { border-color: var(--nw-border); color: var(--nw-ink); }
.nw-page-link.is-current { background: #fff; border-color: var(--nw-ink); }
.nw-page-gap { width: 32px; text-align: center; color: var(--nw-muted); }

/* Блок на главной */
.nw-home__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.nw-home__head .nw-eyebrow { margin-bottom: 8px; }
.nw-all { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid var(--nw-border); border-radius: 999px; background: #fff; color: var(--nw-ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.nw-all svg { width: 18px; height: 18px; color: var(--nw-accent); }
.nw-all:hover { border-color: var(--nw-ink); color: var(--nw-ink); }
.nw-home__grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px; }
.nw-card--home { flex: 7 1 520px; }
.nw-card--home .nw-card__body { padding: 26px 30px 30px; }
.nw-card--home .nw-card__title { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.18; letter-spacing: -.02em; }
.nw-home__list { display: flex; flex-direction: column; flex: 5 1 360px; min-width: 0; gap: 14px; }
.nw-row { display: flex; flex: 1 1 auto; }
.nw-row__link { display: flex; align-items: center; gap: 18px; width: 100%; padding: 14px; border-radius: var(--nw-r); background: var(--nw-card); box-shadow: 0 1px 0 var(--nw-line); color: var(--nw-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.nw-row__thumb { flex: 0 0 132px; height: 104px; overflow: hidden; border-radius: var(--nw-r-sm); background: var(--nw-placeholder); }
.nw-row__thumb .nw-img--poster { object-position: center 30%; }
.nw-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nw-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; font-weight: 700; color: var(--nw-muted); }
.nw-row__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; transition: color .2s; }

/* Наведение и фокус */
.nw-card__link:hover, .nw-arch__link:hover, .nw-row__link:hover { transform: translateY(-3px); box-shadow: var(--nw-shadow-hover); }
.nw-card__link:hover .nw-card__title, .nw-arch__link:hover .nw-arch__title, .nw-row__link:hover .nw-row__title { color: var(--nw-accent); }
.nw-card__link:hover .nw-img, .nw-arch__link:hover .nw-img, .nw-row__link:hover .nw-img { transform: scale(1.04); }
.nw-page a:focus-visible, .nw-home a:focus-visible { outline: 3px solid var(--nw-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .nw-page *, .nw-home * { transition: none !important; }
  .nw-card__link:hover, .nw-arch__link:hover, .nw-row__link:hover, .nw-card__link:hover .nw-img, .nw-arch__link:hover .nw-img, .nw-row__link:hover .nw-img { transform: none; }
}

/* Телефон */
@media (max-width: 640px) {
  .nw-page { padding: 22px 0 48px; }
  .nw-home { padding: 48px 0; }
  .nw-wrap { padding: 0 16px; gap: 28px; }
  .nw-chips { flex-wrap: nowrap; overflow-x: auto; margin: 6px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .nw-chips::-webkit-scrollbar { display: none; }
  .nw-chip { flex: 0 0 auto; padding: 0 18px; font-size: 14px; }
  .nw-top, .nw-grid, .nw-home__grid { gap: 16px; }
  .nw-card__link { border-radius: var(--nw-r); }
  .nw-card__body, .nw-card--featured .nw-card__body, .nw-card--home .nw-card__body { gap: 10px; padding: 18px 20px 22px; }
  .nw-card--side .nw-card__media { aspect-ratio: 16 / 9; }
  .nw-card--side .nw-card__title, .nw-card--grid .nw-card__title { font-size: 21px; }
  .nw-card__excerpt, .nw-card--featured .nw-card__excerpt { font-size: 15px; }
  .nw-more { display: none; }
  .nw-badges { left: 14px; top: 14px; gap: 6px; }
  .nw-badge { padding: 6px 10px; font-size: 11px; }
  .nw-meta { font-size: 13px; }
  .nw-ad { min-height: 100px; }
  .nw-archive__grid { gap: 12px; }
  .nw-arch__link { gap: 14px; padding: 12px; border-radius: 16px; }
  .nw-arch__poster { flex-basis: 72px; height: 108px; border-radius: 10px; }
  .nw-arch__title { font-size: 17px; }
  .nw-arch__excerpt { font-size: 14px; -webkit-line-clamp: 2; }
  .nw-more-btn { width: 100%; }
  .nw-row__thumb { flex-basis: 96px; height: 80px; }
  .nw-row__title { font-size: 16px; }
}

.nw-arch__poster .nw-img--poster{object-fit:contain}
.nw-grid>.nw-card{min-width:0}
@media(max-width:640px){.nw-top>.nw-card,.nw-home__grid>.nw-card,.nw-home__list{flex-basis:100%;min-width:0}.nw-wrap{width:100%}.nw-h1{overflow-wrap:normal}.nw-chips{max-width:calc(100% + 32px)}}
