:root {
  --ink: #18212b;
  --muted: #687482;
  --paper: #fffaf0;
  --surface: #ffffff;
  --mist: #f3f5f0;
  --line: #dfe4dc;
  --cinnabar: #b43d2f;
  --jade: #137c68;
  --gold: #b58532;
  --indigo: #254d7a;
  --shadow: 0 20px 60px rgba(24, 33, 43, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 240, 0.93);
  border-bottom: 1px solid rgba(24, 33, 43, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  color: #4d5965;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--cinnabar);
  outline: none;
}

.nav-phone,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
  white-space: nowrap;
}

.nav-phone,
.primary-link {
  color: #ffffff;
  background: var(--ink);
}

.nav-phone {
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(181, 133, 50, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 26px rgba(24, 33, 43, 0.08);
}

.nav-phone::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 4px rgba(180, 61, 47, 0.1);
}

.nav-phone:hover,
.nav-phone:focus-visible {
  color: var(--cinnabar);
  border-color: rgba(180, 61, 47, 0.42);
  background: #ffffff;
  outline: none;
}

.nav-phone-label {
  color: #687482;
  font-size: 12px;
  font-weight: 800;
}

.nav-phone-number {
  color: currentColor;
  font-size: 15px;
  font-weight: 950;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
  min-height: min(74vh, 680px);
  padding: clamp(74px, 10vw, 132px) clamp(18px, 5vw, 72px) clamp(46px, 7vw, 88px);
  color: #ffffff;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(18, 24, 30, 0.9), rgba(18, 24, 30, 0.38)),
    url("project-images/hero-collage.jpg");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(18, 24, 30, 0.62), rgba(18, 24, 30, 0));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  transform: translateY(-22px);
}

.eyebrow {
  margin: 0 0 10px;
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: none;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-link {
  background: var(--cinnabar);
}

.about-band {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(247, 248, 244, 0.98)),
    var(--paper);
}

.about-copy {
  max-width: 780px;
  margin: 0 auto;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.about-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #53606e;
  font-size: clamp(17px, 1.5vw, 20px);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  margin: clamp(24px, 4vw, 42px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(181, 133, 50, 0.24);
  border-radius: var(--radius);
  background: #dfe4dc;
  box-shadow: 0 18px 46px rgba(24, 33, 43, 0.08);
}

.about-metrics div {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.78);
}

.about-metrics dt {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 950;
  line-height: 1;
}

.about-metrics dd {
  margin: 12px 0 0;
  color: #53606e;
  font-size: 16px;
  font-weight: 850;
}

.catalog,
.pricing-band,
.contact-band {
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.catalog {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(243, 245, 240, 0.96)),
    var(--mist);
}

.catalog-head {
  max-width: 1320px;
  margin: 0 auto 24px;
  text-align: center;
}

.catalog-head h2,
.pricing-band h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: 0;
}

.search-panel {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(24, 33, 43, 0.08);
  backdrop-filter: blur(18px);
}

.search-field,
.filter-block,
.sort-field {
  display: grid;
  gap: 8px;
}

.search-field span,
.filter-block > span,
.sort-field span {
  color: #53606e;
  font-size: 13px;
  font-weight: 900;
}

.search-field {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid #cfd8d0;
  border-radius: var(--radius);
  background: #fbfcf8;
  outline: none;
}

.search-field input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(19, 124, 104, 0.12);
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control button {
  min-height: 36px;
  padding: 0 12px;
  color: #4e5965;
  border: 1px solid #d7ded6;
  border-radius: var(--radius);
  background: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.segmented-control button:hover,
.segmented-control button:focus-visible {
  border-color: var(--jade);
  outline: none;
}

.segmented-control button.is-active {
  color: #ffffff;
  border-color: var(--jade);
  background: var(--jade);
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 22px auto 18px;
}

.utility-bar p {
  margin: 0;
  color: #43505d;
  font-weight: 900;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-field select {
  min-height: 40px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  border: 1px solid #cfd8d0;
  border-radius: var(--radius);
  background: #ffffff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e5dd;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(24, 33, 43, 0.08);
}

.project-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dde5dd;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.category-pill {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.category-pill {
  left: 12px;
  background: rgba(180, 61, 47, 0.92);
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-row h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.price-tag {
  flex: 0 0 auto;
  color: var(--cinnabar);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
  text-align: right;
}

.project-card p {
  margin: 0;
  color: #596675;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.card-specs div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4e9e1;
  border-radius: var(--radius);
  background: #fbfcf8;
}

.card-specs dt {
  color: #697583;
  font-size: 12px;
  font-weight: 900;
}

.card-specs dd {
  margin: 2px 0 0;
  color: #273341;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #40505d;
  border: 1px solid #dbe2da;
  border-radius: var(--radius);
  background: #f7f8f4;
  font-size: 12px;
  font-weight: 800;
}

.detail-button {
  width: 100%;
  min-height: 42px;
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  font-weight: 900;
}

.detail-button:hover,
.detail-button:focus-visible {
  background: var(--cinnabar);
  outline: none;
}

.empty-state {
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 18px;
  text-align: center;
  border: 1px dashed #c9d1c8;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.empty-state h3 {
  margin: 0;
  font-size: 26px;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.pricing-band {
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(24, 33, 43, 0.94), rgba(37, 77, 122, 0.72)),
    url("project-images/project-28.jpg");
  background-position: center;
  background-size: cover;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: clamp(24px, 4vw, 42px) auto 0;
}

.note-grid article {
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.note-grid span {
  color: #ffd796;
  font-size: 12px;
  font-weight: 900;
}

.note-grid h3 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.note-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.contact-band {
  text-align: center;
  background: var(--paper);
}

.contact-band p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-head {
  max-width: 760px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  align-items: stretch;
  gap: 18px;
  max-width: 1120px;
  margin: clamp(24px, 4vw, 42px) auto 0;
}

.map-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid #e1e5dd;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(19, 124, 104, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19, 124, 104, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #eef3eb, #dde8e1 58%, #f7efe3);
  background-size: 58px 58px, 58px 58px, auto;
  box-shadow: 0 14px 36px rgba(24, 33, 43, 0.08);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  opacity: 0.68;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
  pointer-events: none;
}

.map-placeholder strong {
  font-size: 24px;
  font-weight: 950;
}

.map-placeholder span:last-child {
  color: #53606e;
  font-size: 15px;
  font-weight: 800;
}

.map-pin {
  width: 28px;
  height: 28px;
  border: 8px solid var(--cinnabar);
  border-radius: 50% 50% 50% 0;
  background: #ffffff;
  transform: rotate(-45deg);
  box-shadow: 0 12px 30px rgba(180, 61, 47, 0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.map-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  border-radius: var(--radius);
  background: rgba(24, 33, 43, 0.9);
  font-size: 14px;
  font-weight: 900;
}

.contact-band address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.contact-band address span,
.contact-band address a {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid #e1e5dd;
  border-radius: var(--radius);
  background: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-band address strong {
  color: #687482;
  font-size: 13px;
  font-weight: 950;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 20px clamp(18px, 5vw, 72px);
  color: #6a7480;
  border-top: 1px solid rgba(24, 33, 43, 0.1);
  background: #f7f8f4;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cinnabar);
  outline: none;
}

.project-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgba(15, 20, 26, 0.62);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 33, 43, 0.78);
  font-size: 26px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  max-height: calc(100vh - 28px);
}

.dialog-layout img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  overflow: auto;
}

.dialog-category {
  margin: 0;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 950;
}

.dialog-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.dialog-content > p:not(.dialog-category) {
  margin: 0;
  color: #53606e;
  font-size: 17px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #e3e7df;
}

.detail-list dt {
  color: #6b7683;
  font-size: 13px;
  font-weight: 950;
}

.detail-list dd {
  margin: 0;
  color: #24303d;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .hero,
  .about-band,
  .catalog-head,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    transform: none;
  }

  .project-grid,
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 14px;
  }

  .brand-logo {
    height: 36px;
  }

  .brand-name {
    font-size: 21px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-phone {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .about-metrics,
  .project-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
    padding: 12px;
  }

  .search-field {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .segmented-control button {
    flex: 0 0 auto;
  }

  .utility-bar,
  .contact-content {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .card-title-row {
    display: grid;
  }

  .price-tag {
    text-align: left;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .dialog-layout img {
    height: 320px;
    min-height: 0;
  }
}
