/* ===== Как стать резидентом (макет new-resident / new-resident-mobile) ===== */
.nr-docs-wrap { position: relative; margin-top: -56px; }
.nr-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; padding: 28px 32px; }

.nr { padding-top: 88px; }
.nr-h2 { margin-bottom: 40px; }

/* Десктоп: карточки этапов в ряд (order 0), панели — следующей строкой во всю ширину (order 1) */
.stages { display: flex; flex-wrap: wrap; gap: 12px; }
.stage { display: contents; }
.stage-card { box-sizing: border-box; flex: 1 1 calc(20% - 12px); min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.stage.cur .stage-card { background: var(--navy); border-color: var(--navy); color: #fff; }
.sth { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; font-family: inherit; text-align: left; color: inherit; cursor: pointer; }
.sth .no { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -2px; color: #E7ECF3; }
.stage.cur .sth .no { color: var(--accent); }
.sth .tt { max-width: 100%; font-family: Unbounded, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35; hyphens: auto; overflow-wrap: break-word; }
.sth .chev { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; box-sizing: border-box; max-width: 100%; border-radius: 19px; line-height: 1.3; border: 1.5px solid #C5CFDC; background: transparent; font: 800 13px Manrope, sans-serif; color: inherit; cursor: pointer; text-align: left; }
.stage.cur .chip { border-color: #2B4A75; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.stage-note { font-size: 14px; line-height: 1.5; opacity: .75; }

.box { order: 1; flex: 0 0 100%; display: none; box-sizing: border-box; margin-top: 4px; padding: 40px 44px; border-radius: 28px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.box.open { display: block; }
.box h3 { margin: 0 0 20px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.25; }
.box-dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Содержимое панелей */
.nr-two { display: flex; flex-wrap: wrap; gap: 40px; }
.nr-two > .prose { flex: 1 1 380px; }
.nr-two > .nr-note { flex: 1 1 340px; align-self: flex-start; padding: 24px 26px; border-radius: 18px; background: var(--bg); }
.nr-note p:last-child { margin: 0; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 24px; }
.gal a { display: block; border-radius: 16px; overflow: hidden; background: var(--line); }
.gal img { display: block; width: 100%; height: 180px; object-fit: cover; transition: transform .4s ease; }
.gal a:hover img { transform: scale(1.04); }
.nr-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.nr-services .tag { min-height: 56px; padding: 0 20px; font-size: 15px; border-radius: 16px; }
.num { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 22px; color: var(--accent); }
.nr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.nr-tile { padding: 24px; border-radius: 18px; background: var(--bg); font-weight: 700; line-height: 1.5; }
.nr-tile .num { margin-bottom: 10px; }
.nr-can { margin-bottom: 24px; }
.nr-can .nr-tile { padding: 22px; background: var(--navy-card); font-weight: 400; }
.nr-can .nr-tile-accent { background: var(--accent); font-weight: 700; }
.nr-but { margin: 0 0 6px; font-weight: 800; }
.nr-report { margin: 0 0 18px; color: var(--on-dark); line-height: 1.6; }
.box-dark .pill-light .ext { border-color: #fff; color: #fff; }

/* Свободные площади (записи 1024, 1025): подпись, фото, таблица */
.nr-lots .lots-date { margin: -8px 0 20px; color: var(--muted); font-weight: 700; }
.nr-lots table.lots { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nr-lots .lots th { padding: 14px 12px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; text-align: left; vertical-align: bottom; border: 0; }
.nr-lots .lots td { padding: 14px 12px; border: 0; border-top: 1px solid var(--line); vertical-align: top; }
.nr-lots .lots tbody tr:hover { background: #F8FAFC; }
.nr-lots .lots td.m { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 16px; white-space: nowrap; }
.nr-lots .lots td.lg { color: var(--accent); font-weight: 800; }

/* Сроки конкурса (запись 2016) */
.nr-dates .periods-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.nr-dates ol.periods { counter-reset: per; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nr-dates .periods li { counter-increment: per; margin: 0; padding: 24px; border-radius: 18px; background: var(--bg); font-family: Unbounded, sans-serif; font-weight: 800; font-size: 18px; line-height: 1.3; }
.nr-dates .periods li::before { content: counter(per); display: block; margin-bottom: 10px; font-size: 22px; color: var(--accent); }
.nr-dates .periods li:last-child { background: var(--navy); color: #fff; }
.nr-dates .periods li:last-child::before { color: var(--accent-light); }

/* Вкладки по городам (Мурманск / Апатиты): чужие для города элементы скрыты */
.nr[data-city="mur"] [data-for="apt"], .nr[data-city="apt"] [data-for="mur"] { display: none !important; }
.nr-cities { display: inline-flex; gap: 4px; margin-bottom: 24px; padding: 5px; border-radius: 30px; background: #fff; border: 1px solid var(--line); }
.nr-city { min-height: 46px; padding: 10px 26px; border: 0; border-radius: 24px; background: transparent; font: 800 16px Manrope, sans-serif; color: inherit; cursor: pointer; }
.nr-city:hover { color: var(--accent); }
.nr-city.on { background: var(--navy); color: #fff; }
.nr-news { margin-bottom: 24px; padding: 36px 44px; border-radius: 28px; background: var(--navy); color: #fff; line-height: 1.6; }
.nr-news h3 { margin: 14px 0 16px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.25; }
.nr-news p { margin: 0 0 12px; color: var(--on-dark); }
.nr-news-tag { display: inline-block; padding: 6px 14px; border-radius: 16px; background: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.nr-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.nr-news-list li { position: relative; padding: 14px 18px 14px 44px; border-radius: 14px; background: var(--navy-card); font-weight: 700; }
.nr-news-list li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.nr-news p.nr-news-date { margin: 8px 0 0; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; color: #fff; }

/* Призыв «Сколько стоит аренда?» */
.nr-cta-wrap { padding-top: 88px; padding-bottom: 112px; }
.nr-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px; border-radius: 28px; background: var(--accent); color: #fff; }
.nr-cta-txt { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.5px; }
.nr-cta-txt span { font-weight: 500; font-size: 20px; color: var(--accent-bg2); }
.nr-cta-btn { background: #fff; color: var(--text); }
.nr-cta-btn:hover { background: var(--navy); color: #fff; }

@media (prefers-reduced-motion: reduce) { .gal img { transition: none; } }
@media (max-width: 1500px) and (min-width: 1101px) { .stage-card { padding-left: 22px; padding-right: 22px; } .sth .tt { font-size: 16px; } }
@media (max-width: 1100px) { .stage-card { flex-basis: calc(50% - 12px); } }
@media (max-width: 900px) {
  .box { padding: 28px 22px; }
  .nr-lots { overflow-x: auto; }
  .nr-lots table.lots { min-width: 1000px; }
}

/* Мобильная: этапы — раскрывающиеся карточки, панели внутри; таблица площадей — карточками */
@media (max-width: 767px) {
  .nr-docs { display: flex; flex-direction: column; padding: 16px; }
  .nr { padding-top: 48px; }
  .nr-h2 { margin-bottom: 24px; }
  .nr-cities { display: flex; margin-bottom: 16px; }
  .nr-city { flex: 1; padding: 10px 12px; font-size: 15px; }
  .nr-news { margin-bottom: 16px; padding: 22px 18px; border-radius: 20px; }
  .nr-news h3 { font-size: 18px; }
  .nr-news-list li { padding: 12px 14px 12px 40px; }
  .nr-news-list li::before { left: 15px; top: 17px; }
  .nr-news p.nr-news-date { font-size: 16px; }

  .stages { display: flex; flex-direction: column; gap: 10px; }
  .stage { display: block; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
  .stage.cur { background: var(--navy); border-color: var(--navy); color: #fff; }
  .stage-card, .stage.cur .stage-card { display: block; padding: 0; border: 0; border-radius: 0; background: none; }
  .sth { flex-direction: row; align-items: flex-start; gap: 14px; width: 100%; padding: 18px 16px; }
  .sth .no { flex: 0 0 46px; font-size: 30px; letter-spacing: -1px; color: #C5CFDC; }
  .sth .tt { flex: 1; font-size: 15px; }
  .sth .chev { display: block; flex: 0 0 20px; margin-top: 2px; color: var(--accent); transition: transform .2s; }
  .stage.cur .sth .chev { transform: rotate(180deg); }
  .chips { display: none; padding: 0 12px; }
  .stage.cur .chips { display: flex; }
  .chip { min-height: 40px; border-color: #2B4A75; color: #fff; }
  .stage-note { display: none; padding: 10px 12px 0; font-size: 13px; }
  .stage.cur .stage-note { display: block; }
  .stage:not(.cur) .box { display: none; }
  .box { margin: 12px 12px 14px; padding: 20px 16px; border-radius: 16px; color: var(--text); }
  .box h3 { margin-bottom: 16px; font-size: 17px; line-height: 1.3; }
  .box .prose { font-size: 15px; }
  .box .prose ul { padding-left: 18px; }
  .box-dark { color: #fff; }

  .nr-two { gap: 16px; }
  .nr-two > .nr-note { padding: 16px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .gal img { height: 110px; }
  .gal a { border-radius: 12px; }
  .gal a:first-child:nth-last-child(odd) { grid-column: span 2; }
  .gal a:first-child:nth-last-child(odd) img { height: 160px; }
  .nr-services .tag { min-height: 48px; padding: 8px 14px; font-size: 14px; height: auto; }

  .nr-lots { overflow: visible; }
  .nr-lots table.lots, .nr-lots .lots tbody { display: block; min-width: 0; border: 0; border-radius: 0; }
  .nr-lots .lots thead { display: none; }
  .nr-lots .lots tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; padding: 14px; border-radius: 14px; background: var(--bg); }
  .nr-lots .lots tbody tr:hover { background: var(--bg); }
  .nr-lots .lots td { padding: 0; border: 0; }
  .nr-lots .lots td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); }
  .nr-lots .lots td:nth-child(1)::before { content: "№ "; }
  .nr-lots .lots td.m { grid-column: 2; grid-row: 1; justify-self: end; font-size: 17px; }
  .nr-lots .lots td.m::after { content: " м²"; }
  .nr-lots .lots td:nth-child(2) { grid-column: 1 / -1; font-weight: 700; }
  .nr-lots .lots td:nth-child(3), .nr-lots .lots td:nth-child(5) { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .nr-lots .lots td[data-th] { font-size: 13px; font-weight: 700; }
  .nr-lots .lots td[data-th]::before { content: attr(data-th); display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

  .nr-dates ol.periods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nr-dates .periods li { padding: 16px; font-size: 14px; }

  .nr-cta-wrap { padding-top: 40px; padding-bottom: 56px; }
  .nr-cta { padding: 24px 20px; border-radius: 22px; }
  .nr-cta-txt { font-size: 22px; }
  .nr-cta-txt span { font-size: 16px; }
  .nr-cta-btn { width: 100%; }
}
