.projects-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid #e8ebf0;
  background: #fff;
}

.projects-header__inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.projects-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.projects-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.projects-nav a {
  position: relative;
  padding: 8px 0;
  color: #29313c;
  font-size: 14px;
  font-weight: 600;
}

.projects-nav a:hover,
.projects-nav a.is-current {
  color: #3c72fc;
}

.projects-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 3px;
  background: #3c72fc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.projects-contact:hover {
  background: #2358dc;
  color: #fff;
}

.projects-intro {
  position: relative;
  overflow: hidden;
  padding: 92px 0 56px;
  background-color: #f4f7fb;
  background-image: linear-gradient(rgba(60, 114, 252, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 114, 252, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

.projects-intro__inner,
.projects-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.projects-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #3c72fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects-eyebrow span {
  width: 24px;
  height: 2px;
  background: #3c72fc;
}

.projects-intro h1 {
  max-width: 760px;
  color: #111a27;
  font-size: 80px;
  line-height: 0.99;
  letter-spacing: 0;
}

.projects-intro h1 em {
  display: block;
  color: #3c72fc;
  font-style: normal;
}

.projects-intro__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 35px;
}

.projects-intro__bottom p {
  max-width: 430px;
  color: #556170;
}

.projects-count {
  color: #687487;
  font-size: 12px;
  font-weight: 700;
}

.projects-grid-section {
  padding: 60px 0 100px;
  background: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}

.project-card {
  display: block;
  min-width: 0;
  color: inherit;
}

.project-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: #e8edf4;
}

.project-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(12, 24, 42, 0.14), transparent 35%, transparent 65%, rgba(12, 24, 42, 0.08));
  pointer-events: none;
}

.project-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 450ms ease;
}

.project-card:hover .project-card__image img,
.project-card:focus-visible .project-card__image img {
  transform: scale(1.035);
}

.project-card__number,
.project-card__arrow {
  position: absolute;
  z-index: 1;
  top: 14px;
  display: grid;
  place-items: center;
  height: 36px;
  background: #fff;
  color: #172131;
}

.project-card__number {
  left: 14px;
  min-width: 42px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.project-card__arrow {
  right: 14px;
  width: 36px;
  color: #3c72fc;
  transition: background 200ms ease, color 200ms ease;
}

.project-card:hover .project-card__arrow,
.project-card:focus-visible .project-card__arrow {
  background: #3c72fc;
  color: #fff;
}

.project-card__details {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}

.project-card__details h2 {
  min-width: 0;
  color: #111a27;
  font-size: 19px;
  line-height: 1.35;
}

.project-card__details span {
  overflow: hidden;
  color: #788392;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projects-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(24px, calc((100% - 1200px) / 2));
  border-top: 1px solid #e8ebf0;
  color: #687487;
  font-size: 12px;
}

.projects-footer a {
  color: #172131;
  font-weight: 700;
}

.projects-footer a:hover {
  color: #3c72fc;
}

@media (max-width: 900px) {
  .projects-intro h1 {
    font-size: 64px;
  }

  .projects-intro h1 em {
    display: inline;
  }

  .projects-header__inner {
    gap: 18px;
  }

  .projects-nav {
    gap: 20px;
  }

  .projects-contact {
    padding: 12px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .projects-header__inner {
    width: calc(100% - 32px);
    min-height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 0;
  }

  .projects-brand img {
    width: 155px;
  }

  .projects-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e8ebf0;
    padding-top: 9px;
  }

  .projects-nav a {
    font-size: 13px;
  }

  .projects-contact {
    padding: 10px 12px;
    font-size: 12px;
  }

  .projects-intro {
    padding: 66px 0 40px;
  }

  .projects-intro__inner,
  .projects-grid {
    width: calc(100% - 32px);
  }

  .projects-intro h1 {
    font-size: 54px;
  }

  .projects-intro__bottom {
    align-items: start;
    margin-top: 24px;
  }

  .projects-intro__bottom p {
    font-size: 14px;
    line-height: 1.6;
  }

  .projects-grid-section {
    padding: 34px 0 64px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card__image {
    aspect-ratio: 1.45 / 1;
  }

  .project-card__details h2 {
    font-size: 17px;
  }

  .projects-footer {
    flex-wrap: wrap;
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card__image img,
  .project-card__arrow {
    transition: none;
  }
}