:root {
  --navy: #071824;
  --blue: #0b6fae;
  --teal: #0f9a9a;
  --gold: #c99b45;
  --ink: #10202b;
  --muted: #5d6b76;
  --line: #d8e1e7;
  --paper: #f6f8f7;
  --white: #fff;
  --soft: #eef4f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 90px; height: auto; display: block; object-fit: contain; }
.brand span { color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nav-back { color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: none; }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #101820; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn:hover, .btn:focus-visible { filter: brightness(.96); }

.detail-main { padding: 32px 0 72px; }
.breadcrumb { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue); font-weight: 800; text-decoration: none; }
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(7,24,36,.07);
}
.gallery { overflow: hidden; border-radius: 7px; background: #020b11; }
.main-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #020b11; }
.main-photo img { width: 100%; height: 100%; display: block; object-fit: contain; cursor: zoom-in; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(7,24,36,.82); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}
.thumbs { display: flex; gap: 7px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumbs button { width: 78px; flex: 0 0 78px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: transparent; opacity: .72; cursor: pointer; }
.thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }

.detail-kicker { margin-bottom: 9px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font-size: clamp(31px, 4vw, 48px); line-height: 1.03; }
.lead { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 24px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price { color: var(--navy); font-size: 31px; font-weight: 900; line-height: 1; }
.price small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; text-align: right; }
.location { color: var(--muted); font-size: 14px; font-weight: 800; text-align: right; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fact { min-height: 75px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact b { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; line-height: 1.25; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.detail-actions .btn:first-child { grid-column: 1 / -1; }

.evidence { margin-top: 28px; }
.evidence h2 { margin: 0 0 12px; color: var(--navy); font-size: 23px; }
.evidence-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.evidence-list li { min-height: 126px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.evidence-list b { display: block; margin-bottom: 7px; color: var(--navy); font-size: 15px; }
.evidence-list span { color: var(--muted); font-size: 13px; }

.case-status {
  display: flex; align-items: center; gap: 9px; margin: 19px 0; padding: 12px;
  border-left: 4px solid var(--teal); background: var(--soft); color: var(--ink); font-size: 14px;
}
.case-status b { color: var(--navy); }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 36px; padding: 0 0 15px 45px; color: var(--ink); font-size: 14px; }
.steps li::before { content: counter(step); counter-increment: step; position: absolute; top: 0; left: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 900; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 31px; bottom: 1px; left: 14px; width: 1px; background: var(--line); }

.notice { margin-top: 28px; padding: 22px; border-radius: 8px; background: var(--navy); color: #fff; }
.notice h2 { margin: 0; font-size: 24px; }
.notice p { margin: 9px 0 0; color: #d8e9eb; }
.notice .btn { margin-top: 16px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; }
.footer-links a { color: var(--blue); font-weight: 800; text-decoration: none; }

.lightbox { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(3,12,18,.91); }
.lightbox.is-open { display: flex; }
.lightbox-panel { width: min(1100px, 100%); max-height: 92vh; }
.lightbox-stage { position: relative; display: grid; place-items: center; height: min(72vh, 780px); }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox button { position: absolute; z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 29px; cursor: pointer; }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: #fff; font-size: 14px; font-weight: 800; }

@media (max-width: 820px) {
  .site-nav { min-height: 64px; }
  .brand img { width: 70px; }
  .brand span { display: none; }
  .detail-main { padding: 22px 0 52px; }
  .detail-card { display: block; padding: 10px; }
  .detail-info { padding: 16px 6px 4px; }
  .lead { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .evidence-list { grid-template-columns: 1fr 1fr; }
  .footer-content { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 12px; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .nav-back { font-size: 13px; }
  .price { font-size: 27px; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail-actions .btn:first-child { grid-column: auto; }
  .evidence-list { grid-template-columns: 1fr; }
  .lightbox { padding: 8px; }
}
