/* TZ5 blocks for buyers page. All new components use tz- prefix.
   Tokens match pages/покупатели/styles.css and TZ5 visual lang.
   Loaded as /blocks.css
*/

:root {
  --ink: #151515;
  --ink-muted: #5b5b5b;
  --primary: #393939;
  --primary-soft: #e9e9e9;
  --felt: #4b4b4b;
  --felt-soft: #efefef;
  --gold: #a1a1a1;
  --gold-bg: #efefef;
  --border: #e5e5e5;
  --surface: #ffffff;
  --surface-muted: #f4f4f4;
  --radius: 1.25rem;
  --radius-lg: 1.75rem;
  --shadow: 0 1px 2px rgba(21, 21, 21, 0.04), 0 1px 1px rgba(21, 21, 21, 0.03);
  --mint: #626262;
  --mint-bg: #f1f1f1;
  --pink: #393939;
  --pink-bg: #e9e9e9;
}

.tz-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) {
  .tz-container { padding: 0 2rem; }
}

/* Hero */
.tz-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 960px) {
  .tz-hero { padding: 2rem; }
}

.tz-hero-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .tz-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
  }
}

.tz-hero-left h1 {
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.tz-hero-left .tz-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.tz-plaques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tz-plaque {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  white-space: normal;
  max-width: 100%;
  min-width: 0;
}
.tz-hero .tz-plaque {
  border-radius: 0.6rem;
  padding: 0.4rem 0.7rem;
}
.tz-hero .tz-plaque .tz-num {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.tz-hero .tz-plaque small {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-top: 0.1rem;
}
.tz-plaque.tz-plaque-green {
  background: #efefef;
  color: #4b4b4b;
  border-color: #d9d9d9;
}
.tz-plaque small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

.tz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.tz-btn:hover { transform: translateY(-1px); }
.tz-btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.tz-btn-primary:hover { background: #303030; }
.tz-btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}
.tz-btn-ghost:hover { border-color: var(--ink); }

.tz-address {
  font-size: 0.82rem;
  color: var(--ink-muted);
  background: var(--surface-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.tz-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.78rem;
  color: var(--felt);
}
.tz-hero-points > div {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Slider base (styled here, behavior in ui.js) */
.tz-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid var(--border);
}
.tz-slider[data-slider] {
  aspect-ratio: 4 / 3;
}
.tz-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.tz-slide.active,
.tz-slide[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.tz-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 4500ms ease;
}
.tz-slider:hover .tz-slide.active img,
.tz-slider:focus-within .tz-slide.active img {
  transform: scale(1.04);
}
.tz-slide .tz-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0,0.55), transparent);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 1.1rem 0.75rem 0.4rem;
  pointer-events: none;
}

/* Slider controls */
.tz-slider-controls {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}
.tz-slider-controls button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255,0.6);
  background: rgba(255, 255, 255,0.85);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tz-slider-controls button:hover { background: #ffffff; }
.tz-dots {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.tz-dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255,0.6);
  cursor: pointer;
  padding: 0;
}
.tz-dots button.active { background: #ffffff; }

/* Glance / summary cards */
.tz-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tz-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.tz-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--felt);
}
.tz-card .tz-plaques { margin: 0.25rem 0; }
.tz-card-body {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.tz-card .tz-badge {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.tz-badge-green {
  background: var(--felt-soft);
  color: var(--felt);
  border: 1px solid #d9d9d9;
}
.tz-badge-gold {
  background: var(--gold-bg);
  color: #5b5b5b;
  border: 1px solid #dadada;
}
.tz-badge-red { background: var(--primary-soft); color: var(--primary); border: 1px solid #cfcfcf; }

/* Price/отделка plaques */
.tz-price-plaques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}
.tz-price-plaques .tz-plaque {
  font-size: 1rem;
  padding: 0.4rem 1rem;
}

/* 4 short facts cards for price */
.tz-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .tz-facts { grid-template-columns: repeat(2, 1fr); }
}
.tz-fact {
  background: var(--surface-muted);
  border-left: 3px solid var(--felt);
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

/* Split layouts */
.tz-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 800px) {
  .tz-split { grid-template-columns: 1fr 1fr; }
}
.tz-split > * { min-width: 0; }

/* Finish list */
.tz-finish-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}
.tz-finish-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.tz-finish-item svg { flex-shrink: 0; margin-top: 2px; }
.tz-finish-item .tz-t { font-weight: 600; min-width: 4.5em; }
.tz-finish-item .vz-d,
.tz-finish-item .tz-d { color: var(--ink-muted); }

/* Furn / inside notes */
.tz-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: var(--surface-muted);
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
}

/* Format cards (instead of table) */
.tz-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.tz-format-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tz-format-card img,
.tz-format-card .tz-plan {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
  background: #f3f3f3;
}
.tz-format-card .tz-body {
  padding: 0.65rem 0.7rem;
  font-size: 0.82rem;
}
.tz-format-card .tz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}
.tz-meter {
  height: 6px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.3rem 0;
}
.tz-meter > div {
  height: 100%;
  background: var(--felt);
}

/* Road cards */
.tz-road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
}
.tz-road-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
  font-size: 0.9rem;
}
.tz-road-card .tz-main { font-weight: 600; }
.tz-road-card .tz-sub { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.2rem; }

/* Near / infrastructure grid */
.tz-near {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.tz-near-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tz-near-brand {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  align-self: flex-start;
  color: #ffffff;
  background: #666666;
}
.tz-near-dist {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--felt);
}
.tz-near-time {
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.tz-near-foot {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0 0.4rem 0.4rem 0;
  margin-top: 0.5rem;
}

/* Complex cards */
.tz-complex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 640px) {
  .tz-complex { grid-template-columns: 1fr 1fr; }
}
.tz-complex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}
.tz-complex-card .tz-num {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--felt);
}
.tz-complex-card .tz-badge {
  margin-left: 0.4rem;
}

/* Office rail */
.tz-office {
  background: #111111;
  color: #f5f5f5;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  margin: 1rem 0;
}
.tz-office a { color: #cccccc; }
.tz-office-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}
.tz-open-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 0.3rem;
}
.tz-open-pill.open { background: var(--mint-bg); color: var(--mint); }
.tz-open-pill.closed { background: var(--pink-bg); color: var(--pink); }

/* Legal stamp */
.tz-stamp {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 #151515;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  background: #ffffff;
  display: inline-block;
  max-width: 42rem;
  margin: 0.8rem 0;
}

/* Clarify form */
.tz-clarify {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}
.tz-clarify h2 { margin-bottom: 0.3rem; }
.tz-clarify .tz-clarify-intro {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
}
.tz-clarify-pass {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tz-clarify-pass input {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  font-family: inherit;
  width: 180px;
}
.tz-clarify-pass button {
  padding: 0.4rem 0.9rem;
  background: var(--felt);
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.tz-clarify-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}
.tz-clarify-item:last-child { border-bottom: none; }
.tz-clarify-item label {
  font-size: 0.82rem;
  color: var(--ink);
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}
.tz-clarify-item input[type="text"] {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  font-size: 0.85rem;
}
.tz-clarify-item button {
  padding: 0.35rem 0.7rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tz-clarify-item .tz-status {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--felt);
  min-height: 1em;
}
.tz-clarify-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tz-clarify-actions button {
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}
.tz-clarify-actions button.primary {
  background: var(--felt);
  color: #ffffff;
  border-color: var(--felt);
}

/* hide clarify fields until unlocked */
[data-clarify-root]:not(.is-open) .tz-clarify-item,
[data-clarify-root]:not(.is-open) [data-clarify-export] {
  display: none;
}

/* Lightbox */
.tz-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tz-lightbox[aria-hidden="false"] { display: flex; }
.tz-lightbox-inner {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  background: #111111;
  border-radius: 4px;
  overflow: hidden;
}
.tz-lightbox img {
  max-width: 96vw;
  max-height: 82vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.tz-lightbox .tz-lb-close,
.tz-lightbox .tz-lb-prev,
.tz-lightbox .tz-lb-next {
  position: absolute;
  background: rgba(255, 255, 255,0.9);
  color: #111111;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.tz-lightbox .tz-lb-close { top: 8px; right: 8px; }
.tz-lightbox .tz-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.tz-lightbox .tz-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.tz-lightbox .tz-lb-counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0,0.6);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.tz-lightbox .tz-lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0,0.7), transparent);
  color: #dddddd;
  font-size: 0.78rem;
  padding: 1.4rem 1rem 0.5rem;
  text-align: center;
}

/* Misc */
.tz-section { margin-bottom: 1.8rem; }
.tz-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.tz-subhead {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.8rem 0 0.35rem;
  color: var(--ink-muted);
}
.tz-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 800px) { .tz-grid-2 { grid-template-columns: 1fr 1fr; } }

.tz-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
  background: repeating-linear-gradient(45deg, #f9f9f9, #f9f9f9 8px, #f4f4f4 8px, #f4f4f4 16px);
}

/* thumbs strip for data-thumbs sliders (facade, inside, furn) */
.tz-thumbs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.tz-thumbs button {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity .15s, border-color .15s;
}
.tz-thumbs button.active,
.tz-thumbs button:hover {
  opacity: 1;
  border-color: var(--felt);
}
.tz-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .tz-plaques { flex-direction: column; align-items: flex-start; }
  .tz-hero-actions .tz-btn { width: 100%; justify-content: center; }
  .tz-near { grid-template-columns: 1fr 1fr; }
}

/* zi-grid для инфраструктуры (как в viz.css) */
.zi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:1rem 0}
.zi-t{border:1px solid var(--border);border-radius:var(--radius);padding:14px;background:var(--surface);box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.zi-logo{width:56px;height:56px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight: 700;font-size:.95rem;color:#ffffff;letter-spacing:-.02em}
.zi-n{font-size:.88rem;line-height:1.25;color:#222222}
.zi-d{font-weight:700;font-size:1rem;color:#4c4c4c}
.zi-foot{margin-top:1rem;padding:12px 16px;border-left:4px solid #8f8f8f;background:#f6f6f6;border-radius:8px;font-size:.92rem;color:#2a2a2a}

/* road icons */
.vz-ico{display:inline-flex;width:16px;height:16px;vertical-align:middle;margin-right:.3rem;flex:none;color:#4b4b4b}

/* support for inserted #road (old markup, tz- pages) */
.callout {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border-left: 4px solid #a1a1a1;
  background: #efefef;
  font-size: 0.95rem;
}
.callout.warning { background: #efefef; }
.plaques { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.plaque {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}
.subhead { font-size: 0.95rem; font-weight: 600; margin: 0.6rem 0 0.2rem; color: #151515; }
.facts { margin: 0.3rem 0; padding-left: 1rem; font-size: 0.82rem; }
.facts li { margin: 0.15rem 0; }
.note, .tz-note { font-size: 0.8rem; color: #666666; }
.badge { font-size: 0.65rem; padding: 1px 4px; border-radius: 2px; white-space: nowrap; }
.badge-gold { background: #efefef; color: #6f6f6f; }
.badge-ink { background: #f4f4f4; color: #5b5b5b; }

/* ===== ТЗ6: вёрстка по образцу Red One / гайдов whitegambling ===== */
.tz-section { margin: 2.75rem 0; }
.tz-section > h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.tz-hero-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: stretch; }
@media (min-width: 960px) { .tz-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.tz-hero-left { display: flex; flex-direction: column; justify-content: center; }
.tz-hero-left h1 { font-size: clamp(1.6rem, 3.1vw, 2.45rem) !important; line-height: 1.15 !important; letter-spacing: -0.02em; margin: 0 0 0.8rem; }
.tz-hero-left .tz-lead { font-size: 1rem; line-height: 1.5; margin: 0 0 1.1rem; }
.tz-hero .tz-plaques { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0 0 1rem; }
.tz-hero .tz-plaque { padding: 0.85rem 0.9rem; border-radius: 1rem; text-align: left; min-width: 0; max-width: 100%; }
.tz-hero .tz-plaque .tz-num { font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 700; display: block; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .tz-hero .tz-plaques { grid-template-columns: 1fr !important; }
}
.tz-hero .tz-slider { height: 100%; min-height: 340px; aspect-ratio: auto; }
.tz-terms { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tz-terms li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--felt-soft); color: var(--felt); font-weight: 600; font-size: 0.82rem; }
.tz-terms li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--felt); }

/* слайдеры: без подписей, стрелки по бокам, полноэкранный режим */
.tz-slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #eaeaea; }
.tz-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tz-caption { display: none !important; }
.tz-slider-controls { position: absolute; inset: 0; pointer-events: none; display: block; transform: none; left: 0; right: 0; top: 0; bottom: 0; z-index: 3; }
.tz-slider-controls button { pointer-events: auto; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255,0.92); color: var(--ink); font-size: 0; box-shadow: 0 4px 14px rgba(0, 0, 0,0.18); cursor: pointer; transition: transform .15s, background .15s; z-index: 3; }
.tz-slider-controls button::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.tz-slider-controls [data-prev] { left: 12px; }
.tz-slider-controls [data-prev]::before { transform: translateX(2px) rotate(-135deg); }
.tz-slider-controls [data-next] { right: 12px; }
.tz-slider-controls [data-next]::before { transform: translateX(-2px) rotate(45deg); }
.tz-slider-controls button:hover { background: #ffffff; transform: translateY(-50%) scale(1.06); }
.tz-fs-btn { position: absolute; top: 12px; right: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(21, 21, 21,0.6); color: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tz-fs-btn:hover { background: rgba(21, 21, 21,0.85); }
.tz-lb-caption { display: none !important; }

/* карточки-саммари */
.tz-sum { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.9rem; }
@media (max-width: 860px) { .tz-sum { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .tz-sum { grid-template-columns: 1fr; } }
.tz-sum-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; min-height: 150px; box-shadow: 0 6px 22px rgba(21, 21, 21,0.05); }
.tz-sum-k { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.tz-sum-k i { width: 30px; height: 30px; border-radius: 9px; background: var(--felt-soft); color: var(--felt); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 0.95rem; }
.tz-sum-v { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.tz-sum-s { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.4; }
.tz-sum-s b { color: var(--ink); }
.tz-bar { height: 8px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; margin-top: auto; }
.tz-bar > span { display: block; height: 100%; background: var(--felt); border-radius: 99px; }

/* форматы */
.tz-fmt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0.9rem; }
.tz-fmt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.tz-fmt-ico { width: 48px; height: 48px; color: var(--felt); }
.tz-fmt-name { font-weight: 700; font-size: 1rem; }
.tz-fmt-area { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.tz-fmt-price { font-size: 1rem; font-weight: 700; color: var(--felt); }
.tz-fmt-left { margin-top: auto; align-self: flex-start; font-size: 0.78rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--surface-muted); color: var(--ink-muted); }

/* цена и отделка */
.tz-price-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.tz-price-big { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.tz-price-big b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; }
.tz-price-big span { color: var(--ink-muted); font-size: 0.9rem; }
.tz-price-big.is-main { background: var(--felt); border-color: var(--felt); color: #ffffff; }
.tz-price-big.is-main span { color: rgba(255, 255, 255,0.8); }
.tz-fin2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 760px) { .tz-fin2, .tz-price-row { grid-template-columns: 1fr; } }
.tz-fin-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.tz-fin-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.tz-fin-head h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.tz-fin-head b { font-size: 1.25rem; font-weight: 700; color: var(--felt); white-space: nowrap; }
.tz-fin-col .tz-slider { aspect-ratio: 16/10; }
.tz-fin-ph { aspect-ratio: 16/10; border-radius: var(--radius); background: repeating-linear-gradient(135deg,#ededed 0 14px,#e3e3e3 14px 28px); display:flex; align-items:center; justify-content:center; color: var(--ink-muted); font-weight: 600; }
.tz-fin-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.tz-fin-ul li { display: grid; grid-template-columns: 22px 1fr; gap: 0.5rem; font-size: 0.92rem; line-height: 1.4; }
.tz-fin-ul li::before { content: "✓"; color: var(--felt); font-weight: 700; }
.tz-fin-ul li.no::before { content: "✕"; color: var(--primary); }

/* дорога */
.tz-road { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.9rem; }
@media (max-width: 960px) { .tz-road { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .tz-road { grid-template-columns: 1fr; } }
.tz-road-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tz-road-card .tz-sum-v { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.tz-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tz-chips span { padding: 0.25rem 0.6rem; border-radius: 8px; background: var(--ink); color: #ffffff; font-weight: 700; font-size: 0.85rem; }
.tz-tbd { margin-top: auto; font-size: 0.75rem; color: #6b6b6b; }
.tz-tbd::before { content: "◔ "; }

/* инфраструктура */
.tz-infra { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: 0 6px 22px rgba(21, 21, 21,0.05); }
.tz-infra-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tz-infra-top b { font-size: 2rem; font-weight: 700; color: var(--felt); }
.tz-infra-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem 1.6rem; }
@media (max-width: 900px) { .tz-infra-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tz-infra-grid { grid-template-columns: 1fr; } }
.tz-infra-cat h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.98rem; margin: 0 0 0.45rem; }
.tz-infra-cat h3 i { width: 30px; height: 30px; border-radius: 9px; background: var(--felt-soft); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.tz-infra-cat ul { list-style: none; margin: 0; padding: 0; }
.tz-infra-cat li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.32rem 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.tz-infra-cat li em { font-style: normal; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tz-infra-cat details summary { cursor: pointer; font-size: 0.82rem; color: var(--felt); font-weight: 600; padding-top: 0.35rem; list-style: none; }
.tz-infra-foot { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-muted); }

/* уточняется без пароля */
.tz-clarify-pass, .tz-clarify-intro { display: none !important; }
[data-clarify-root] .tz-clarify-item { display: grid !important; }

/* ===== ТЗ7 ===== */
.tz-hero-left h1 { font-weight: 700 !important; font-size: clamp(1.45rem, 2.6vw, 2.1rem) !important; }
.tz-hero .tz-plaque .tz-num { font-weight: 700; }
.tz-sum-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px) { .tz-sum-4 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .tz-sum-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tz-sum-card { min-height: 0; }
.tz-sum-v { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.tz-sum-s b { font-weight: 600; }
.tz-sum-k { font-weight: 600; }
.tz-fmt-area, .tz-price-big b, .tz-fin-head h3, .tz-fin-head b, .tz-infra-top b { font-weight: 700; }
.tz-terr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.8rem; align-content: start; }
.tz-fin-ill { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); display: block; }
.tz-fin-ul li { grid-template-columns: 26px 1fr; align-items: start; }
.tz-fin-ul li::before { content: none !important; }
.tz-fin-ico { width: 22px; height: 22px; color: var(--felt); }
.tz-fin-ul li.no .tz-fin-ico { color: var(--primary); }
.tz-fin-ul b { font-weight: 600; }
.tz-logo { height: 16px; width: auto; max-width: 70px; vertical-align: middle; margin-right: 0.4rem; object-fit: contain; }
.tz-legal { font-size: 0.72rem; line-height: 1.5; color: var(--ink-muted); max-width: 900px; margin: 0 auto 0.8rem; padding: 0 1rem; text-align: left; font-weight: 400; }

/* ===== ТЗ8: ближе к исходному дизайну (каталоги: Montserrat, белые карточки, тонкая рамка, лёгкая тень) ===== */
body { font-weight: 400; background: #efefef; }
h1, h2, h3, b, strong { font-weight: 600; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: 0; }
.tz-section { margin: 2rem 0; }
.tz-section > h2, .tz-section h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; margin: 0 0 1rem; }
.tz-sum-card, .tz-road-card, .tz-fmt-card, .tz-infra, .tz-card, .zi-t {
  box-shadow: 0 1px 2px rgba(21, 21, 21,0.04), 0 1px 1px rgba(21, 21, 21,0.03);
  border-radius: 1rem; min-height: 0; padding: 0.875rem 1rem;
}
.tz-infra { border-radius: 1rem; }
.tz-sum-k { font-size: 0.6875rem; font-weight: 600; color: var(--ink-muted); text-transform: none; letter-spacing: 0; }
.tz-sum-k i, .tz-infra-cat h3 i { display: none; }
.tz-sum-v { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.tz-sum-s { font-size: 0.8125rem; color: var(--ink-muted); }
.tz-fmt-area { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; }
.tz-infra-top b { font-size: 1.5rem; font-weight: 700; }
.tz-num { font-weight: 700; }
.tz-badge { font-weight: 600; }
.tz-bar { height: 4px; }
/* ТЗ8 п.4: фото черновой, подпись под фото */
.tz-fin-photo { margin: 0 0 0.75rem; }
.tz-fin-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1rem; display: block; }
.tz-fin-photo figcaption { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--ink-muted); text-align: center; }
/* ТЗ8 п.6: логотипы в одну строку */
.tz-logo-row { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(0.4rem, 2vw, 0.9rem); min-width: 0; }
.tz-logo-row .tz-logo { height: clamp(12px, 3.2vw, 16px); max-width: 30%; width: auto; margin: 0; flex: 0 1 auto; }
.tz-infra-cat li > span:not(.tz-logo-row) .tz-logo { height: 14px; }
.tz-fin-col .tz-fin-photo img { height: auto !important; aspect-ratio: 4/3; }
.tz-road .tz-sum-v, .tz-road-card .tz-sum-v { font-size: 1.125rem; font-weight: 700; }
/* ТЗ8 п.8: иконки на карточках — тонкие линии, фирменный зелёный, без плашек */
.tz-sum-k i, .tz-infra-cat h3 i { display: inline-flex !important; width: 22px; height: 22px; background: none !important; border-radius: 0; color: var(--felt); flex: 0 0 22px; align-items: center; justify-content: center; }
.tz-infra-cat h3 { display: flex; align-items: center; gap: 0.5rem; }
.tz-ico { width: 22px; height: 22px; display: block; }
.tz-sum-k { font-size: 0.75rem; gap: 0.5rem; }
.tz-fmt-ico { width: 40px; height: 40px; color: var(--felt); stroke-width: 1.6; }
.tz-fin-ico { width: 20px; height: 20px; color: var(--felt); }
.tz-li-ico { display: inline-flex; width: 18px; height: 18px; color: var(--felt); vertical-align: -4px; margin-right: 0.4rem; }
.tz-li-ico .tz-ico { width: 18px; height: 18px; }

/* ТЗ6: finish cards + modal (new classes, after all tz-fin-*) */
.tz-fin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.6rem 0; }
@media (max-width: 760px) { .tz-fin-cards { grid-template-columns: 1fr; } }
.tz-fin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem; font-size: 0.82rem; display: flex; flex-direction: column; gap: 0.25rem; }
.tz-fin-card i { width: 18px; height: 18px; color: var(--felt); }
.tz-fin-card h3 { margin: 0; font-size: 0.9rem; font-weight: 600; }
.tz-fin-card h3 small { font-weight: 400; color: var(--ink-muted); }
.tz-fin-card .tz-plaque { margin: 0.15rem 0; font-size: 0.78rem; }
.tz-fin-points { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.tz-fin-points b { font-weight: 600; font-size: 0.78rem; line-height: 1.3; }

.tz-fin-card .tz-plaque { background: var(--surface-muted); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 999px; display: inline-block; }
.tz-fin-card .tz-plaque-green { background: #f1f1f1; border-color: var(--felt); color: var(--felt); }

.tz-slider[data-lightbox="finish-photos"] { width: 50%; max-width: none; aspect-ratio: 4/3; margin: 0.4rem 0; }
@media (max-width: 760px) { .tz-slider[data-lightbox="finish-photos"] { width: 100%; max-width: 100%; } }

.tz-fmodal { position: fixed; inset: 0; z-index: 8000; display: none; align-items: center; justify-content: center; }
.tz-fmodal[aria-hidden="false"] { display: flex; }
.tz-fmodal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0,0.45); }
.tz-fmodal-panel { position: relative; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); max-width: 720px; width: 94%; max-height: 92vh; overflow: auto; padding: 1rem 1.1rem; box-shadow: 0 10px 30px rgba(0, 0, 0,0.2); }
.tz-fmodal-close { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink-muted); }
.tz-fmodal h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }

.tz-fin-compare { display: grid; gap: 0.35rem; margin-bottom: 0.7rem; font-size: 0.82rem; }
.tz-fin-compare .tz-plaque { font-size: 0.72rem; background: var(--surface-muted); border: 1px solid var(--border); padding: 0.1rem 0.4rem; border-radius: 999px; }
.tz-fin-compare .tz-plaque-green { background: #f1f1f1; border-color: var(--felt); color: var(--felt); }

.tz-ftabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; overflow-x: auto; }
.tz-ftabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.35rem 0.6rem; font-size: 0.82rem; cursor: pointer; white-space: nowrap; color: var(--ink-muted); }
.tz-ftabs button[aria-selected="true"] { border-bottom-color: var(--felt); color: var(--ink); font-weight: 600; }

.tz-fz { display: grid; gap: 0.55rem; }
.tz-fitem { display: grid; grid-template-columns: 20px 1fr; gap: 0.45rem; align-items: start; }
.tz-fitem i { width: 20px; height: 20px; color: var(--felt); }
.tz-fitem-h { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.tz-fitem-h b { font-weight: 600; font-size: 0.88rem; }
.tz-fitem p { margin: 0.15rem 0 0; color: var(--ink-muted); font-size: 0.82rem; line-height: 1.35; }

.tz-badge-out { border: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); padding: 0 0.25rem; border-radius: 2px; font-size: 0.65rem; }

@media (max-width: 760px) {
  .tz-fmodal-panel { width: 100%; max-height: 100vh; max-height: 100dvh; padding: 0.8rem 0.8rem 1.2rem; border-radius: 0; }
  .tz-ftabs { gap: 0.1rem; }
}

/* ТЗ11: ценник не шире экрана (брокеры/база, ~22px горизонтального скролла) */
html, body { overflow-x: clip; }
.tz-price-plaques .tz-plaque,
.tz-card .tz-plaque { max-width: 100%; white-space: normal; }

/* ТЗ11 D / msg40: слайдер первого экрана как лендинг Red One — во всю ширину, без скруглений по бокам.
   Только герой. Слайдеры отделки, фасада и посёлка не трогаем. */
section:has(> .tz-hero) { margin-top: 0; padding-top: 0; }
.tz-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.75rem;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.tz-hero-grid { display: block; position: relative; }
.tz-hero .tz-slider {
  width: 100%;
  height: calc(100dvh - 4.25rem);
  min-height: 460px;
  max-height: 860px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tz-hero .tz-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 14, 14, 0.78) 0%, rgba(14, 14, 14, 0.4) 36%, rgba(14, 14, 14, 0.05) 64%, rgba(14, 14, 14, 0) 100%);
}
.tz-hero-left {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(42rem, 94vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem) 2.6rem;
  pointer-events: none;
}
.tz-hero-left a,
.tz-hero-left button,
.tz-hero-left label,
.tz-hero-left input { pointer-events: auto; }
.tz-hero .tz-hero-left h1 { color: #ffffff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28); }
.tz-hero .tz-slider-controls,
.tz-hero .tz-dots,
.tz-hero .tz-fs-btn { z-index: 5; }
@media (max-width: 760px) {
  .tz-hero-grid { display: flex; flex-direction: column-reverse; }
  .tz-hero .tz-slider {
    height: 62vw;
    min-height: 220px;
    max-height: 380px;
  }
  .tz-hero .tz-slider::before { display: none; }
  .tz-hero-left {
    position: static;
    width: auto;
    padding: 1.15rem clamp(1rem, 4vw, 1.5rem) 0;
    pointer-events: auto;
  }
  .tz-hero .tz-hero-left h1 { color: var(--ink, #151515); text-shadow: none; }
}
