.projects-page {
  min-height: 100vh;
  color: #231f20;
  background: #fff;
}

.projects-intro {
  position: relative;
  overflow: hidden;
  padding: 74px 64px 78px;
  color: #fff;
  background: #04146c;
}

.projects-watermark {
  position: absolute;
  top: -50px;
  right: -70px;
  width: 480px;
  height: 395px;
  fill: #fff;
  opacity: 0.07;
}

.projects-intro-content {
  position: relative;
  display: flex;
  max-width: 780px;
  flex-direction: column;
  gap: 20px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.breadcrumbs a,
.breadcrumbs span {
  color: #8c9ad0;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span[aria-hidden="true"] {
  color: #4e5c99;
  letter-spacing: 0;
}

.breadcrumbs [aria-current="page"] {
  color: #e2ae2c;
}

.projects-intro h1 {
  margin: 0;
  color: #fff;
  font-family: Archivo, "Arial Black", Arial, sans-serif;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.projects-intro p {
  max-width: 640px;
  margin: 0;
  color: #c0c9e8;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
}

.projects-content {
  background: #fff;
}

.project-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 44px 64px 0;
  list-style: none;
}

.project-categories li {
  flex: 0 0 auto;
}

.project-categories button {
  padding: 10px 20px;
  color: #4a5270;
  border: 1px solid #dde1ec;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.project-categories button:hover:not(.is-selected) {
  color: #04146c;
  border-color: #04146c;
}

.project-categories button:focus-visible {
  outline: 3px solid #e2ae2c;
  outline-offset: 3px;
}

.project-categories .is-selected {
  padding: 11px 20px;
  color: #fff;
  border-color: #04146c;
  background: #04146c;
}

.project-categories[hidden] {
  display: none;
}

.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 36px 64px 84px;
}

.project-filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px 24px;
  color: #6a7290;
  background: #f4f5f8;
  font-size: 14px;
  text-align: center;
}

.project-filter-empty[hidden] {
  display: none;
}

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.project-card[hidden] {
  display: none;
}

.project-card-media {
  position: relative;
  height: 268px;
  overflow: hidden;
  background: #eef0f6;
}

.project-card-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-card-media-shifted > img {
  object-position: center 35%;
}

.project-card:nth-child(4) .project-card-media > img {
  object-position: center 28%;
}

.project-category {
  position: absolute;
  top: 20px;
  left: 0;
  padding: 6px 12px;
  color: #fff;
  background: #04146c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 1px dashed #c3cadb;
}

.project-card-placeholder .project-category {
  align-self: auto;
}

.project-card-placeholder svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #9aa3bd;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.project-card-placeholder p {
  margin: 0;
  color: #9aa3bd;
  font-size: 13px;
  font-style: italic;
}

.project-card-copy {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid #e3e6ee;
  border-top: 0;
}

.project-card-copy h2 {
  margin: 0;
  color: #04146c;
  font-family: Archivo, "Arial Black", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.project-card-copy > p {
  margin: 0;
  color: #6a7290;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.6;
}

.project-card-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edeff5;
}

.project-card-facts span {
  color: #8a92ac;
  font-size: 12.5px;
}

.project-card-facts strong {
  flex: 0 0 auto;
  color: #04146c;
  font-family: Archivo, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.contract-register {
  padding: 84px 64px;
  background: #f4f5f8;
}

.contract-register-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.contract-register-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #c9971f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-eyebrow span {
  width: 44px;
  height: 3px;
  flex: 0 0 auto;
  background: #e2ae2c;
}

.contract-register-heading h2 {
  margin: 0;
  color: #04146c;
  font-family: Archivo, "Arial Black", Arial, sans-serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.contract-register-intro {
  max-width: 380px;
  margin: 0;
  color: #6a7290;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  text-align: right;
}

.contract-table-frame {
  position: relative;
}

.contract-table-scroll {
  overflow-x: auto;
  border: 1px solid #e3e6ee;
  background: #fff;
  scrollbar-color: #e2ae2c #e3e6ee;
}

.contract-table-scroll::-webkit-scrollbar {
  height: 12px;
}

.contract-table-scroll::-webkit-scrollbar-track {
  background: #e3e6ee;
}

.contract-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #e3e6ee;
  border-radius: 999px;
  background: #e2ae2c;
}

.contract-table-frame::before,
.contract-table-frame::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: none;
  width: 34px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #04146c;
  background: rgb(226 174 44 / 94%);
  box-shadow: 0 2px 8px rgb(4 20 108 / 22%);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.contract-table-frame::before {
  left: 0;
  border-radius: 0 4px 4px 0;
  content: "←";
}

.contract-table-frame::after {
  right: 0;
  border-radius: 4px 0 0 4px;
  content: "→";
}

.contract-table-frame.can-scroll-left::before,
.contract-table-frame.can-scroll-right::after {
  display: grid;
}

.contract-table-scroll:focus-visible {
  outline: 3px solid #e2ae2c;
  outline-offset: 3px;
}

.contract-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.contract-table col:nth-child(1) {
  width: 38.64%;
}
.contract-table col:nth-child(2) {
  width: 21.59%;
}
.contract-table col:nth-child(3) {
  width: 17.05%;
}
.contract-table col:nth-child(4) {
  width: 11.36%;
}
.contract-table col:nth-child(5) {
  width: 11.36%;
}

.contract-table th,
.contract-table td {
  padding: 16px 26px;
  text-align: left;
  vertical-align: middle;
}

.contract-table th:first-child,
.contract-table td:first-child {
  padding-left: 26px;
}

.contract-table th:last-child,
.contract-table td:last-child {
  padding-right: 26px;
}

.contract-table thead {
  color: #fff;
  background: #04146c;
}

.contract-table th {
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contract-table th:nth-last-child(-n + 2),
.contract-table td:nth-last-child(-n + 2) {
  text-align: right;
}

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

.contract-table td {
  padding-block: 17px;
  border-bottom: 1px solid #edeff5;
  color: #6a7290;
  font-size: 13.5px;
  font-weight: 300;
}

.contract-table td:first-child {
  color: #231f20;
  font-size: 14px;
  font-weight: 400;
}

.contract-table td:nth-last-child(2) {
  color: #04146c;
  font-family: Archivo, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
}

.contract-table .status-ongoing,
.contract-table .status-completed {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract-table .status-ongoing {
  color: #c9971f;
}

.contract-table .status-completed {
  color: #2e7d4f;
}

.contract-register-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.contract-register-actions > p {
  margin: 0;
  color: #8a92ac;
  font-size: 13px;
  font-style: italic;
}

.profile-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  color: #04146c;
  border: 1.5px solid #04146c;
  font-family: Archivo, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.profile-link:hover {
  color: #fff;
  background: #04146c;
}

.profile-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1120px) {
  .project-categories {
    flex-wrap: wrap;
    padding-inline: 36px;
  }

  .project-showcase-grid {
    padding-inline: 36px;
  }

  .contract-register {
    padding-inline: 36px;
  }
}

@media (max-width: 900px) {
  .projects-intro {
    padding: 64px 32px 68px;
  }

  .projects-watermark {
    right: -150px;
  }

  .project-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 30px 32px 64px;
  }

  .contract-register {
    padding: 64px 32px;
  }

  .contract-register-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .contract-register-intro {
    max-width: 640px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .projects-intro {
    padding: 54px 24px 60px;
  }

  .projects-watermark {
    top: -20px;
    right: -190px;
    width: 360px;
    height: 296px;
  }

  .projects-intro-content {
    gap: 18px;
  }

  .projects-intro h1 {
    font-size: clamp(42px, 10vw, 56px);
  }

  .projects-intro p {
    font-size: 16px;
  }

  .project-categories {
    gap: 8px;
    padding: 28px 24px 0;
  }

  .project-categories button {
    padding: 9px 12px;
    font-size: 11px;
  }

  .project-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 24px 52px;
  }

  .project-card-media {
    height: 250px;
  }

  .project-card-copy {
    padding: 22px 20px;
  }

  .contract-register {
    padding: 52px 24px;
  }

  .contract-register-heading h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  .contract-table {
    min-width: 780px;
  }

  .contract-register-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-link {
    justify-content: center;
  }
}
