/* ============================================================
   НОВАЯ ЩЕРБИНКА — структурные стили общих виджетов.
   Темизация через переменные, задаваемые каждым лендингом:
   --bg --surface --ink --muted --line --ac --ac-ink
   --radius --shadow --font-d --font-b
   ============================================================ */

/* ---------- кнопки ---------- */
.ns-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 28px; border: 0; cursor: pointer;
  border-radius: var(--btn-radius, 999px);
  background: var(--ac); color: var(--ac-ink);
  font: 600 15px/1 var(--font-b); letter-spacing: 0.02em;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ns-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ns-btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.ns-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ac); color: var(--ac-strong, var(--ac)); }

.ns-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 600 12px/1.2 var(--font-b); letter-spacing: 0.04em;
  background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink);
}
.ns-tag.is-done { background: color-mix(in oklab, var(--ac) 18%, transparent); color: var(--ac-strong, var(--ac)); }

/* ---------- акции ---------- */
.ns-promos {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ns-promo {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.ns-promo-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.ns-promo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-promo-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--ac); color: var(--ac-ink);
  font: 700 16px/1 var(--font-b);
  padding: 8px 14px; border-radius: var(--btn-radius, 999px);
}
.ns-promo-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ns-promo-body h3 { font: 600 19px/1.3 var(--font-d); margin: 0; color: var(--ink); }
.ns-promo-body p { margin: 0; font: 400 14px/1.55 var(--font-b); color: var(--muted); flex: 1; }
.ns-promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ns-countdown { font: 400 13px/1.3 var(--font-b); color: var(--muted); }
.ns-countdown b { color: var(--ac-strong, var(--ac)); font-weight: 700; }

/* ---------- генплан ---------- */
.ns-gp { display: flex; flex-direction: column; gap: 26px; }
.ns-gp-map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.ns-gp-map > img { width: 100%; display: block; }
.ns-gp-caption {
  margin: 0; padding: 10px 16px; font: 400 12.5px/1.4 var(--font-b);
  color: var(--muted); background: var(--surface); border-top: 1px solid var(--line);
}
.ns-gp-pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid #ffffff; cursor: pointer;
  background: color-mix(in oklab, var(--ink) 72%, #1a2b33);
  color: #ffffff; font: 700 13px/1 var(--font-b);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.ns-gp-pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.ns-gp-pin.is-done { background: var(--ac); color: var(--ac-ink); }
.ns-gp-pin.is-active {
  background: var(--ink); outline: 3px solid var(--ac);
  transform: translate(-50%, -50%) scale(1.15);
}
.ns-gp-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 32px; min-height: 280px;
  display: flex; flex-direction: column;
}
.ns-gp-panel h3 { font: 600 24px/1.25 var(--font-d); margin: 0 0 12px; color: var(--ink); }
.ns-gp-kicker {
  font: 600 12px/1 var(--font-b); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ac-strong, var(--ac)); margin: 0 0 12px;
}
.ns-gp-hint { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; flex: 1; }
.ns-gp-hint p { color: var(--muted); font: 400 15px/1.6 var(--font-b); max-width: 52ch; }
.ns-gp-legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.ns-gp-legend li { display: flex; align-items: center; gap: 10px; font: 400 14px/1.4 var(--font-b); color: var(--muted); }
.ns-gp-legend i {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: color-mix(in oklab, var(--ink) 72%, #1a2b33);
}
.ns-gp-legend i.is-done { background: var(--ac); }
.ns-gp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; font: 400 13px/1.3 var(--font-b); color: var(--muted); }
.ns-gp-crumbs button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ac-strong, var(--ac)); font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ns-gp-crumbs b { color: var(--ink); }
.ns-gp-meta { font: 400 14px/1.6 var(--font-b); color: var(--muted); margin: 0 0 16px; }
.ns-gp-meta b { color: var(--ink); }
.ns-gp-sub { font: 600 13px/1.3 var(--font-b); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }
.ns-gp-floors { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
@media (max-width: 760px) { .ns-gp-floors { grid-template-columns: repeat(4, 1fr); } }
.ns-gp-floor {
  border: 1.5px solid var(--line); background: transparent; border-radius: calc(var(--radius) * 0.6);
  padding: 10px 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ns-gp-floor b { font: 700 18px/1 var(--font-b); color: var(--ink); }
.ns-gp-floor span { font: 400 11.5px/1.2 var(--font-b); color: var(--muted); }
.ns-gp-floor:hover:not(:disabled) { border-color: var(--ac); background: color-mix(in oklab, var(--ac) 8%, transparent); }
.ns-gp-floor:disabled { opacity: 0.4; cursor: default; }
.ns-gp-floorplan { display: flex; gap: 6px; }
.ns-gp-unit {
  flex-basis: 0; min-width: 0; border: 1.5px solid var(--line); border-radius: 8px;
  background: color-mix(in oklab, var(--ac) 10%, transparent);
  padding: 14px 4px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ns-gp-unit b { font: 700 15px/1 var(--font-b); color: var(--ink); }
.ns-gp-unit span { font: 400 11px/1.2 var(--font-b); color: var(--muted); }
.ns-gp-unit i { font: 600 11px/1.2 var(--font-b); font-style: normal; color: var(--ac-strong, var(--ac)); }
.ns-gp-unit:hover:not(:disabled) { background: color-mix(in oklab, var(--ac) 24%, transparent); border-color: var(--ac); }
.ns-gp-unit.is-sold { background: color-mix(in oklab, var(--ink) 5%, transparent); cursor: default; }
.ns-gp-unit.is-sold i { color: var(--muted); }
.ns-gp-note { font: 400 12.5px/1.5 var(--font-b); color: var(--muted); margin-top: 14px; }
.ns-gp-flat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .ns-gp-flat { grid-template-columns: 1fr; } }
.ns-gp-flat-plan { border-radius: calc(var(--radius) * 0.6); border: 1px solid var(--line); background: #ffffff; padding: 10px; }
.ns-plansvg { width: 100%; height: auto; display: block; }
.ns-gp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.ns-gp-specs div { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.ns-gp-specs dt { font: 400 12px/1.3 var(--font-b); color: var(--muted); margin: 0; }
.ns-gp-specs dd { font: 600 15px/1.3 var(--font-b); color: var(--ink); margin: 2px 0 0; }
.ns-gp-price { font: 700 30px/1.1 var(--font-d); color: var(--ink); margin: 0; }
.ns-gp-monthly { font: 400 14px/1.4 var(--font-b); color: var(--ac-strong, var(--ac)); margin: 4px 0 16px; }

/* ---------- ход строительства ---------- */
.ns-prog { display: flex; flex-direction: column; gap: 30px; }
.ns-prog-rail { display: flex; gap: 0; overflow-x: auto; padding-bottom: 6px; }
.ns-prog-step {
  flex: 1 0 150px; background: none; border: 0; cursor: pointer;
  padding: 0 12px 0 0; text-align: left; position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.ns-prog-step i {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--line); position: relative; z-index: 1;
  outline: 4px solid var(--bg);
}
.ns-prog-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px;
  background: var(--line);
}
.ns-prog-step.is-done i { background: var(--ac); }
.ns-prog-step b { font: 600 13px/1.2 var(--font-b); color: var(--muted); }
.ns-prog-step span { font: 400 12.5px/1.35 var(--font-b); color: var(--muted); }
.ns-prog-step.is-active b, .ns-prog-step.is-current b { color: var(--ink); }
.ns-prog-step.is-active span { color: var(--ink); }
.ns-prog-step.is-active i { outline-color: var(--ac); background: var(--ac); box-shadow: 0 0 0 7px color-mix(in oklab, var(--ac) 25%, transparent); }
.ns-prog-body {
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.6fr; gap: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
@media (max-width: 900px) { .ns-prog-body { grid-template-columns: 1fr; } }
.ns-prog-q { font: 600 13px/1 var(--font-b); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ac-strong, var(--ac)); margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.ns-prog-info h3 { font: 600 24px/1.25 var(--font-d); color: var(--ink); margin: 0 0 12px; }
.ns-prog-info p { font: 400 15px/1.6 var(--font-b); color: var(--muted); margin: 0 0 16px; }
.ns-prog-live { font: 600 14px/1.3 var(--font-b); color: var(--ac-strong, var(--ac)); text-decoration: none; }
.ns-prog-live:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-prog-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ns-prog-photos { grid-template-columns: 1fr; } }
.ns-prog-shot { position: relative; border: 0; padding: 0; cursor: zoom-in; background: none; border-radius: calc(var(--radius) * 0.6); overflow: hidden; }
.ns-prog-shot img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.6); transition: transform 0.25s ease; }
.ns-prog-shot:hover img { transform: scale(1.04); }
.ns-prog-shot span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(20, 30, 34, 0.72); color: #ffffff; font: 600 12.5px/1 var(--font-b);
  padding: 9px 16px; border-radius: 999px; opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.ns-prog-shot:hover span { opacity: 1; }

/* ---------- планировки ---------- */
.ns-plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ns-plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.ns-plan-tag {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  font: 600 11.5px/1 var(--font-b); letter-spacing: 0.04em;
  background: var(--ac); color: var(--ac-ink); padding: 6px 10px; border-radius: 999px;
}
.ns-plan img { width: 100%; border-radius: calc(var(--radius) * 0.5); margin-bottom: 10px; }
.ns-plan-img { border: 1px solid var(--line); border-radius: calc(var(--radius) * 0.5); background: #ffffff; margin-bottom: 12px; cursor: zoom-in; padding: 6px; }
.ns-plan h3 { font: 600 20px/1.2 var(--font-d); color: var(--ink); margin: 0; }
.ns-plan-area { font: 400 14px/1.3 var(--font-b); color: var(--muted); margin: 0 0 8px; }
.ns-plan-price { font: 700 22px/1.1 var(--font-d); color: var(--ink); margin: 0; }
.ns-plan-monthly { font: 400 13px/1.3 var(--font-b); color: var(--ac-strong, var(--ac)); margin: 2px 0 14px; }

/* ---------- способы покупки ---------- */
.ns-buy { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ns-buy-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.ns-buy-big { font: 700 34px/1 var(--font-d); color: var(--ac-strong, var(--ac)); margin: 0 0 14px; }
.ns-buy-card h3 { font: 600 18px/1.3 var(--font-d); color: var(--ink); margin: 0 0 8px; }
.ns-buy-card p { font: 400 14px/1.55 var(--font-b); color: var(--muted); margin: 0; }

/* ---------- акцентный блок «Инфраструктура квартала» ---------- */
.ns-infra {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  background: color-mix(in oklab, var(--ac) 7%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--ac) 24%, var(--line));
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 880px) { .ns-infra { grid-template-columns: 1fr; } }
.ns-infra-photo { position: relative; min-height: 100%; }
.ns-infra-photo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.ns-infra-body { padding: clamp(28px, 4vw, 54px); }
.ns-infra-title { font: 600 clamp(23px, 2.6vw, 32px)/1.18 var(--font-d); color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
.ns-infra-lead { font: 400 15.5px/1.6 var(--font-b); color: var(--muted); margin: 0 0 32px; max-width: 48ch; }
.ns-infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
@media (max-width: 520px) { .ns-infra-grid { grid-template-columns: 1fr; gap: 22px; } }
.ns-infra-item { border-top: 2px solid color-mix(in oklab, var(--ac) 38%, var(--line)); padding-top: 15px; }
.ns-infra-item b { display: block; font: 700 clamp(34px, 3.4vw, 42px)/1 var(--font-d); letter-spacing: -0.02em; color: var(--ac-strong); margin-bottom: 9px; }
.ns-infra-item h4 { font: 600 16px/1.3 var(--font-b); color: var(--ink); margin: 0 0 5px; }
.ns-infra-item p { font: 400 13.5px/1.5 var(--font-b); color: var(--muted); margin: 0; }

/* ---------- маршруты и статистика ---------- */
.ns-routes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ns-route { border-left: 2px solid var(--ac); padding: 4px 0 4px 18px; }
.ns-route b { font: 700 26px/1.1 var(--font-d); color: var(--ink); display: block; margin-bottom: 6px; }
.ns-route h4 { font: 600 15px/1.3 var(--font-b); color: var(--ink); margin: 0 0 4px; }
.ns-route p { font: 400 13px/1.45 var(--font-b); color: var(--muted); margin: 0; }
.ns-stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ns-stat b { font: 700 44px/1 var(--font-d); color: var(--ac-strong, var(--ac)); display: block; margin-bottom: 8px; }
.ns-stat h4 { font: 600 16px/1.3 var(--font-b); color: var(--ink); margin: 0 0 6px; }
.ns-stat p { font: 400 13.5px/1.5 var(--font-b); color: var(--muted); margin: 0; }

/* ---------- форма ---------- */
form.ns-lead { display: flex; flex-direction: column; gap: 14px; }
form.ns-lead input {
  padding: 15px 18px; border-radius: var(--btn-radius, 999px);
  border: 1.5px solid var(--line); background: var(--surface);
  font: 400 15px/1.3 var(--font-b); color: var(--ink); outline: none;
}
form.ns-lead input:focus { border-color: var(--ac); }
form.ns-lead small { font: 400 12px/1.5 var(--font-b); color: var(--muted); }
form.ns-lead small a { color: inherit; }
.ns-lead-done h3 { font: 600 26px/1.2 var(--font-d); color: var(--ink); margin: 0 0 10px; }
.ns-lead-done p { font: 400 15px/1.6 var(--font-b); color: var(--muted); margin: 0; }

/* ---------- каталог квартир ---------- */
.ns-cat { display: flex; flex-direction: column; gap: 28px; }
.ns-cat-bar { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.ns-cat-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-cat-chip {
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  border-radius: 999px; padding: 9px 16px;
  font: 600 13.5px/1 var(--font-b); color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.ns-cat-chip:hover { border-color: var(--ac); color: var(--ink); }
.ns-cat-chip.is-on { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.ns-cat-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ns-cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ns-cat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 32, 38, 0.13); }
.ns-cat-plan { position: relative; background: #ffffff; border-bottom: 1px solid var(--line); padding: 14px; }
.ns-cat-plan img, .ns-cat-plan .ns-plansvg { width: 100%; height: 190px; object-fit: contain; display: block; }
.ns-cat-disc {
  position: absolute; top: 12px; left: 12px;
  background: var(--ac); color: var(--ac-ink);
  font: 700 12.5px/1 var(--font-b); padding: 7px 12px; border-radius: 999px;
}
.ns-cat-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.ns-cat-body h3 { font: 600 18px/1.25 var(--font-d); color: var(--ink); margin: 0; }
.ns-cat-meta { font: 400 13.5px/1.4 var(--font-b); color: var(--muted); margin: 0; }
.ns-cat-price { font: 700 21px/1.2 var(--font-d); color: var(--ink); margin: 4px 0 0; }
.ns-cat-price s { font: 400 14px/1 var(--font-b); color: var(--muted); margin-left: 8px; }
.ns-cat-loc { font: 400 13px/1.45 var(--font-b); color: var(--muted); margin: 0; }
.ns-cat-loc b { color: var(--ac-strong, var(--ac)); }
.ns-cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ns-cat-tags span {
  font: 500 11.5px/1.2 var(--font-b); color: var(--muted);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-radius: 999px; padding: 5px 10px;
}
.ns-cat-foot { display: flex; align-items: center; gap: 20px; justify-content: center; flex-direction: column; }
.ns-cat-count { font: 400 13.5px/1.3 var(--font-b); color: var(--muted); margin: 0; }
.ns-cat-empty { font: 400 15px/1.6 var(--font-b); color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* ---------- генплан + шахматка ---------- */
.ns-gpc { display: flex; flex-direction: column; gap: 30px; }
.ns-gpc .ns-gp-pin { width: 50px; height: 50px; font-size: 14px; }

/* ---------- шахматка (живые данные API) ---------- */
.ns-disp { display: flex; flex-direction: column; gap: 22px; }
.ns-disp-load { font: 400 15px/1.6 var(--font-b); color: var(--muted); text-align: center; padding: 48px 0; }
.ns-disp-bar { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.ns-disp-tab em { font-style: normal; opacity: 0.65; font-size: 11.5px; margin-left: 2px; }
.ns-disp-grid-wrap { overflow-x: auto; padding-bottom: 6px; }
.ns-disp-grid { display: flex; flex-direction: column; gap: 6px; min-width: 640px; }
.ns-disp-row { display: flex; gap: 6px; align-items: stretch; }
.ns-disp-fl {
  flex: 0 0 34px; display: flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--font-b); color: var(--muted);
}
.ns-disp-head .ns-disp-sec {
  flex: 1; text-align: center; font: 600 12px/1.2 var(--font-b);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px;
}
.ns-disp-cell {
  flex: 1; display: flex; flex-wrap: wrap; gap: 4px;
  background: color-mix(in oklab, var(--ink) 4%, transparent);
  border-radius: 8px; padding: 4px; min-height: 34px;
}
.ns-disp-flat {
  flex: 0 0 auto; min-width: 54px; border: 0; border-radius: 6px; cursor: pointer;
  padding: 6px 4px; font: 700 11.5px/1.2 var(--font-b); color: #ffffff;
  display: inline-flex; gap: 4px; align-items: center; justify-content: center;
  overflow: hidden; white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}
.ns-disp-flat i { font-style: normal; font-weight: 500; opacity: 0.85; font-size: 10.5px; }
.ns-disp-flat.is-free { background: var(--ac); color: var(--ac-ink); }
.ns-disp-flat.is-booked { background: #d9a431; }
.ns-disp-flat.is-sold { background: color-mix(in oklab, var(--ink) 26%, #9aa3a5); cursor: default; }
.ns-disp-flat:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.1); }
.ns-disp-flat.is-dim { opacity: 0.22; }
.ns-disp-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.ns-disp-legend span { display: inline-flex; gap: 8px; align-items: center; font: 400 13px/1.3 var(--font-b); color: var(--muted); }
.ns-disp-legend i { width: 13px; height: 13px; border-radius: 4px; }
.ns-disp-legend i.is-free { background: var(--ac); }
.ns-disp-legend i.is-booked { background: #d9a431; }
.ns-disp-legend i.is-sold { background: color-mix(in oklab, var(--ink) 26%, #9aa3a5); }
.ns-disp-src { margin-left: auto; font-size: 12px !important; }
.ns-disp-feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 18px; }
.ns-disp-feats span {
  font: 500 11.5px/1.2 var(--font-b); color: var(--muted);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  border-radius: 999px; padding: 5px 10px;
}

/* ---------- модальные окна ---------- */
.ns-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 24, 28, 0.62); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 24px;
}
.ns-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.ns-modal {
  background: var(--surface, #ffffff); border-radius: var(--radius, 12px);
  padding: 38px 40px; width: min(440px, 100%); position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(14px); transition: transform 0.22s ease;
}
.ns-modal-overlay.is-open .ns-modal { transform: translateY(0); }
.ns-modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in oklab, var(--ink, #222) 7%, transparent);
  color: var(--ink, #222); font: 400 22px/1 var(--font-b, sans-serif);
}
.ns-modal-close:hover { background: color-mix(in oklab, var(--ink, #222) 14%, transparent); }
.ns-modal-title { font: 600 24px/1.25 var(--font-d, serif); color: var(--ink); margin: 0 36px 10px 0; }
.ns-modal-sub { font: 400 14.5px/1.55 var(--font-b); color: var(--muted); margin: 0 0 22px; }
.ns-lb { flex-direction: column; gap: 14px; }
.ns-lb figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.ns-lb figure img { max-width: 100%; max-height: 76vh; border-radius: 10px; display: block; margin: 0 auto; }
.ns-lb figcaption { color: #cfd8db; font: 400 14px/1.5 var(--font-b, sans-serif); margin-top: 12px; }
.ns-lb .ns-modal-close { position: fixed; top: 22px; right: 26px; background: rgba(255,255,255,0.14); color: #ffffff; }
.ns-lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #ffffff; font-size: 20px;
}
.ns-lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.ns-lb-prev { left: 26px; }
.ns-lb-next { right: 26px; }

/* детальная планировка */
.ns-plan-modal { width: min(880px, 100%); }
.ns-plan-modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 720px) { .ns-plan-modal-grid { grid-template-columns: 1fr; } }
.ns-plan-modal-img { border: 1px solid var(--line); border-radius: calc(var(--radius, 12px) * 0.6); background: #ffffff; padding: 12px; }
.ns-plan-modal-info h3 { font: 600 28px/1.2 var(--font-d); color: var(--ink); margin: 0 0 6px; }
.ns-plan-note { font: 400 13px/1.55 var(--font-b); color: var(--muted); margin: 12px 0 20px; }
.ns-plan-modal-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- мобилка: телефон → иконка трубки ----------
   !important нужен, чтобы перебить локальные `.site-cta a.phone { font: ... }`
   в <style> каждого лендинга (идут после widgets.css, та же специфичность). */
@media (max-width: 640px) {
  .site-cta a.phone, .top-cta a.phone {
    font-size: 0 !important;
    width: 38px !important; height: 38px !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important;
    border: 1.5px solid currentColor;
    opacity: 0.85;
    flex-shrink: 0;
  }
  .site-cta a.phone::before, .top-cta a.phone::before {
    content: "";
    width: 18px; height: 18px; display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}

/* ---------- мобилка: скрыть генплан ----------
   Секцию прячем целиком, только если каталога в ней нет (L1–L5).
   В landing-6 генплан и каталог в одной секции — её НЕ скрываем,
   а прячем только сам виджет генплана (вторым правилом). */
@media (max-width: 700px) {
  section:has([data-ns="genplan-chess"]):not(:has([data-ns="catalog"])) { display: none !important; }
  [data-ns="genplan-chess"] { display: none; }
}
