:root {
  color-scheme: light;
  --red: #b4232f;
  --red-deep: #8e1a26;
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #17345f;
  --green: #0f766e;
  --gold: #b88928;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  line-height: 1.65;
  background: var(--paper);
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  color: rgba(255, 255, 255, 0.92);
  background: #162235;
  font-size: 14px;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.text-button {
  border: 0;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: transparent;
}

.text-button:hover {
  color: #ffd8dc;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 330px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 23px;
  background: linear-gradient(135deg, var(--red), var(--navy));
  border-radius: 8px;
}

.brand__logo {
  width: 94px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 10px 13px;
  color: #263248;
  border-radius: 6px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--red);
  background: #fff1f2;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  padding: 74px 0 42px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(244, 247, 251, 0.94), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(90deg, rgba(23, 52, 95, 0.07) 0 1px, transparent 1px 74px),
    linear-gradient(135deg, #ffffff, #eef3f9);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #48556b;
  font-size: 19px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.button--primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.button--ghost {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.button--ghost:hover {
  color: var(--red);
  border-color: #f0a6ad;
}

.button--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.sign-scene {
  position: relative;
  min-height: 390px;
  padding: 46px 26px 86px 80px;
}

.signboard {
  position: relative;
  z-index: 2;
  padding: 38px 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(180, 35, 47, 0.96), rgba(142, 26, 38, 0.98)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16));
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signboard::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -34px;
  width: 64%;
  height: 34px;
  transform: skewX(-32deg);
  transform-origin: left top;
  background: #c9d0dc;
  border-radius: 0 0 8px 0;
  z-index: -1;
}

.signboard__top {
  width: max-content;
  max-width: 100%;
  padding: 4px 10px;
  color: #ffe5e8;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 5px;
  font-size: 14px;
}

.signboard__logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-top: 22px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
}

.signboard__name {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.signboard__sub {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  letter-spacing: 0;
}

.vertical-sign {
  position: absolute;
  left: 18px;
  top: 0;
  width: 74px;
  height: 320px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, var(--navy), #0e1a2a);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vertical-sign span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
}

.reception-strip {
  position: absolute;
  left: 86px;
  right: 12px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reception-strip span {
  min-height: 52px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 50px;
}

.hero__metrics div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero__metrics strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
}

.hero__metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section--light {
  background: var(--soft);
}

.section--deep {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 26, 42, 0.96), rgba(23, 52, 95, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 82px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-heading--inverse p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.info-panel,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  min-height: 258px;
  padding: 24px;
}

.service-card__index {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

.service-card h3,
.info-panel h3,
.honor-card h3 {
  margin: 14px 0 10px;
  line-height: 1.3;
}

.service-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 42px;
  align-items: start;
}

.section-heading--sticky {
  position: sticky;
  top: 112px;
}

.about-panels {
  display: grid;
  gap: 16px;
}

.info-panel {
  padding: 26px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.honor-card {
  min-height: 224px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.honor-card--image {
  display: flex;
  flex-direction: column;
}

.honor-card--image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.honor-card__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  height: 34px;
  color: #fff;
  background: var(--gold);
  border-radius: 5px;
  font-weight: 800;
}

.honor-card p {
  margin: 0;
  color: var(--muted);
}

.project-table-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
}

.project-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid var(--line);
}

.project-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-filter {
  min-height: 38px;
  padding: 0 16px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.project-filter:hover,
.project-filter.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.project-search {
  width: min(330px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.project-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(180, 35, 47, 0.12);
}

.project-table-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 18px 0;
  color: var(--muted);
}

.project-table-meta strong {
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.project-table-scroll {
  overflow-x: auto;
  margin-top: 14px;
}

.performance-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.performance-table th,
.performance-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.performance-table th {
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}

.performance-table td {
  color: var(--muted);
  font-size: 14px;
}

.performance-table td:first-child,
.performance-table td:nth-child(5) {
  white-space: nowrap;
}

.performance-table td:first-child {
  color: var(--red);
  font-weight: 800;
}

.performance-table td strong {
  display: block;
  color: var(--ink);
  line-height: 1.45;
}

.performance-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.performance-table tbody tr:hover {
  background: #fff7f7;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.table-empty {
  margin: 18px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.tender-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 30px;
  align-items: start;
}

.tender-box {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.1);
}

.tender-box__toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: #172033;
  color: #fff;
}

.tender-box__toolbar strong,
.tender-box__toolbar span {
  display: block;
}

.tender-box__toolbar span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.tender-box__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tender-content {
  min-height: 330px;
  padding: 22px;
}

.locked-state {
  min-height: 286px;
  display: grid;
  place-items: center;
  padding: 36px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.9)),
    repeating-linear-gradient(0deg, rgba(180, 35, 47, 0.06) 0 8px, transparent 8px 16px);
}

.locked-state h3 {
  margin: 0 0 8px;
  font-size: 25px;
}

.locked-state p {
  max-width: 430px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.tender-list {
  display: grid;
  gap: 12px;
}

.tender-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tender-item__type {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: #fff1f2;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.tender-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.tender-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tender-item time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.84fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  padding: 28px;
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.contact-card div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #111827;
}

.footer__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__inner p {
  margin: 0;
}

.footer__inner a {
  color: inherit;
}

.footer__inner span {
  margin-left: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.58);
}

.modal__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal__panel h2 {
  margin: 0;
}

.modal__panel p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.login-form input:focus {
  outline: 3px solid rgba(180, 35, 47, 0.18);
  border-color: var(--red);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

@media (max-width: 980px) {
  .header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .hero__grid,
  .about-layout,
  .tender-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--sticky {
    position: static;
  }

  .service-grid,
  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .project-search {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: 58px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .sign-scene {
    min-height: 356px;
    padding: 22px 0 88px 58px;
  }

  .vertical-sign {
    left: 0;
    width: 50px;
    height: 270px;
  }

  .vertical-sign span {
    font-size: 18px;
  }

  .signboard {
    padding: 24px 20px;
    border-width: 5px;
  }

  .reception-strip {
    left: 58px;
    right: 0;
    grid-template-columns: 1fr;
  }

  .hero__metrics,
  .service-grid,
  .honor-grid {
    grid-template-columns: 1fr;
  }

  .project-table-toolbar {
    padding: 14px;
  }

  .project-filter {
    flex: 1 1 calc(50% - 8px);
    padding: 0 10px;
  }

  .project-table-meta {
    padding: 14px 14px 0;
  }

  .performance-table {
    min-width: 860px;
  }

  .performance-table th,
  .performance-table td {
    padding: 12px;
  }

  .section {
    padding: 60px 0;
  }

  .tender-box__toolbar,
  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tender-box__actions {
    justify-content: flex-start;
  }

  .tender-item {
    grid-template-columns: 1fr;
  }

  .tender-item time {
    white-space: normal;
  }

  .contact-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
