/* ===== Раздел «Объявления» ===== */
.nw { --nw-line: rgba(243, 238, 227, 0.07); }

/* шапка и сводка */
.nw__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.nw__head .cab__sub { margin-bottom: 0; }
.nw__sum { display: flex; gap: 10px; }
.nw__sum-i { min-width: 86px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); text-align: center; animation: nwUp .5s both; }
.nw__sum-i:nth-child(2) { animation-delay: .06s; }
.nw__sum-i:nth-child(3) { animation-delay: .12s; }
.nw__sum-i b { display: block; font: 700 18px/1.1 var(--display); color: var(--text); }
.nw__sum-i span { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.nw__sum-i.hot { border-color: rgba(214, 178, 98, .45); background: radial-gradient(120% 120% at 50% 0%, rgba(214, 178, 98, .22), transparent 70%), var(--card); }
.nw__sum-i.hot b { color: var(--accent-2); text-shadow: none; }

/* рубрики */
.nw__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid; }
.nw__tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.nw__tag--imp { color: #eed291; border-color: rgba(238, 210, 145, .35); background: rgba(238, 210, 145, .1); }
.nw__tag--upd { color: var(--accent-2); border-color: rgba(238, 210, 145, .35); background: rgba(238, 210, 145, .1); }
.nw__tag--promo { color: #7ee2a8; border-color: rgba(126, 226, 168, .35); background: rgba(126, 226, 168, .09); }
.nw__tag--info { color: #b5e3ce; border-color: rgba(181, 227, 206, .3); background: rgba(181, 227, 206, .08); }

.nw__new { position: relative; padding: 4px 10px; border-radius: 99px; font: 700 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #081711; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: none; }
.nw__new::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 1px solid var(--accent); animation: nwRing 1.8s infinite; }

/* закреплённое */
.nw__pin { position: relative; border-radius: 22px; padding: 1px; margin-bottom: 26px; overflow: hidden; isolation: isolate; animation: nwUp .6s .05s both; }
.nw__pin::before { content: ""; position: absolute; inset: -60%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 55%, var(--accent) 70%, var(--accent-2) 78%, transparent 90%); animation: nwSpin 6s linear infinite; }
.nw__pin::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 21px; background: radial-gradient(90% 120% at 0% 0%, rgba(214, 178, 98, .16), transparent 60%), var(--bg-2); }
.nw__pin-in { position: relative; padding: 26px 28px 24px; border-radius: 21px; background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(214, 178, 98, .09), transparent 60%); }
.nw__pin-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.nw__pin-top time { font: 500 12px var(--mono); color: var(--muted); }
.nw__pin-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #081711; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: none; animation: nwSway 4s ease-in-out infinite; }
.nw__pin-ico svg { width: 18px; height: 18px; }
.nw__pin-lbl { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.nw__pin-h { font: 700 clamp(19px, 2.4vw, 25px)/1.25 var(--display); margin: 0 0 10px; background: linear-gradient(180deg, #f3eee3 30%, #ebe1cb); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* фильтр */
.nw__chips { position: relative; display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 99px; background: rgba(243, 238, 227, .025); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nw__chip { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 500 13px var(--font, Inter, sans-serif); cursor: pointer; white-space: nowrap; transition: color .25s; }
.nw__chip:hover { color: var(--text); }
.nw__chip.on { color: #081711; font-weight: 600; }
.nw__chip em { font: 600 11px var(--mono); font-style: normal; padding: 1px 6px; border-radius: 99px; background: rgba(243, 238, 227, .08); }
.nw__chip.on em { background: rgba(8, 23, 17, .18); }
.nw__glide { position: absolute; z-index: 0; top: 4px; left: 0; bottom: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: none; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), width .35s cubic-bezier(.3, 1.3, .5, 1); }

/* лента */
.nw__list { transition: opacity .18s, transform .18s; }
.nw__list.swap { opacity: 0; transform: translateY(6px); }
.nw__month { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px 0; padding-left: 86px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.nw__month::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--nw-line), transparent); }
.nw__month.in { opacity: 1; transform: none; }

.nw__row { display: grid; grid-template-columns: 58px 28px minmax(0, 1fr); align-items: start; opacity: 0; transform: translateY(16px); transition: opacity .55s calc(min(var(--i), 6) * 60ms), transform .55s cubic-bezier(.2, .9, .3, 1.1) calc(min(var(--i), 6) * 60ms); }
.nw__row.in { opacity: 1; transform: none; }
.nw__date { text-align: center; padding-top: 14px; }
.nw__date b { display: block; font: 800 24px/1 var(--display); color: var(--text); }
.nw__date span { display: block; font: 600 11px var(--mono); text-transform: uppercase; color: var(--accent-2); margin-top: 3px; }
.nw__date small { font: 500 10px var(--mono); text-transform: uppercase; color: var(--muted); }
.nw__rail { position: relative; align-self: stretch; }
.nw__rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, rgba(214, 178, 98, .35), var(--nw-line) 40%); }
.nw__row:last-child .nw__rail::before { bottom: auto; height: 30px; }
.nw__rail i { position: absolute; left: 50%; top: 22px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); background: var(--bg-2); border: 2px solid rgba(243, 238, 227, .25); }
.nw__rail i.on { border-color: var(--accent); background: var(--accent); box-shadow:  0 0 16px var(--accent); animation: nwDot 2s infinite; }

.nw__card { position: relative; margin: 0 0 16px 6px; padding: 18px 20px 16px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgba(214, 178, 98, .08), transparent 60%), var(--card);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), border-color .3s, box-shadow .3s; }
.nw__card:hover { transform: translateY(-3px); border-color: rgba(214, 178, 98, .3); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.nw__card.is-new::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }
.nw__card.is-new { border-color: rgba(214, 178, 98, .22); }
.nw__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.nw__meta time { font: 500 12px var(--mono); color: var(--muted); }
.nw__h { font: 600 17px/1.35 var(--display); margin: 0 0 8px; color: var(--text); }
.nw__body { color: #d9d2c1; font-size: 14.5px; line-height: 1.65; }
.nw__body p { margin: 0 0 10px; }
.nw__body p:last-child { margin-bottom: 0; }
.nw__body b { color: var(--text); }
.nw__card.is-long .nw__body { max-height: 118px; overflow: hidden; transition: max-height .45s cubic-bezier(.3, .9, .3, 1); -webkit-mask: linear-gradient(180deg, #000000 55%, transparent); mask: linear-gradient(180deg, #000000 55%, transparent); }
.nw__card.is-long.open .nw__body { -webkit-mask: none; mask: none; }
.nw__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 0; border: 0; background: none; color: var(--accent-2); font: 600 13px Inter, sans-serif; cursor: pointer; }
.nw__more svg { width: 16px; height: 16px; transition: transform .35s; }
.nw__card.open .nw__more svg { transform: rotate(180deg); }
.nw__more:hover { color: #f3eee3; }
.nw__none { color: var(--muted); padding: 24px 0 24px 92px; }

/* пусто */
.nw__empty { text-align: center; padding: 48px 24px; }
.nw__empty h3 { font: 600 18px var(--display); margin: 18px 0 6px; }
.nw__empty p { color: var(--muted); margin: 0; }
.nw__bell { position: relative; width: 74px; height: 74px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--accent-2); background: var(--accent-dim); }
.nw__bell svg { width: 32px; height: 32px; animation: nwSway 3s ease-in-out infinite; transform-origin: 50% 10%; }
.nw__bell i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: nwWave 2.4s infinite; }
.nw__bell i + i { animation-delay: 1.2s; }

/* значок в меню */
.cab__nav .nw__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; font: 700 11px/1 var(--mono); color: #081711; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: none; animation: nwPop .45s cubic-bezier(.3, 1.6, .5, 1) both, nwGlow 2s 0.5s infinite; }
.cab__nav .nw__badge.bye { animation: nwOut .3s forwards; }

@keyframes nwUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nwSpin { to { transform: rotate(360deg); } }
@keyframes nwSway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes nwRing { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.6); } }
@keyframes nwDot { 50% { box-shadow:  0 0 22px var(--accent); } }
@keyframes nwWave { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes nwPop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes nwOut { to { transform: scale(0); opacity: 0; } }
@keyframes nwGlow { 50% { box-shadow: none; } }

/* телефон: дата над карточкой, без линии */
@media (max-width: 640px) {
  .nw__sum { width: 100%; }
  .nw__sum-i { flex: 1; min-width: 0; }
  .nw__month { padding-left: 0; }
  .nw__row { grid-template-columns: minmax(0, 1fr); }
  .nw__date, .nw__rail { display: none; }
  .nw__card { margin-left: 0; }
  .nw__pin-in { padding: 20px 18px; }
  .nw__none { padding-left: 0; }
}

/* без анимаций, если человек их выключил */
.nw--still *, .nw--still *::before, .nw--still *::after { animation: none !important; transition: none !important; }
.nw--still .nw__row, .nw--still .nw__month { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cab__nav .nw__badge { animation: none; } }
