.project-detail-page main {
  overflow: hidden;
}

.project-breadcrumb {
  min-height: 30px;
  display: flex;
  align-items: center;
  background: #fafafa;
}

.project-breadcrumb .site-container {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  color: #666;
}

.project-breadcrumb a:hover,
.project-breadcrumb a:focus-visible {
  color: var(--green-dark);
}

.project-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-detail-intro {
  padding: 40px 0 37px;
  background: #fff;
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(0, 488px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.project-summary__image {
  width: 100%;
  height: auto;
  aspect-ratio: 397 / 251;
  border-radius: 10px;
  object-fit: cover;
}

.project-summary__content {
  min-width: 0;
}

.project-summary__label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 15px;
  border-radius: 3px;
  color: #079557;
  background: #dff5e9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.project-summary h1 {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.14;
}

.project-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  margin: 32px 0 0;
}

.project-facts > div {
  min-width: 0;
  padding: 0 30px;
  border-right: 1px solid #a9a9a9;
}

.project-facts > div:first-child {
  padding-left: 0;
}

.project-facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.project-facts dt,
.project-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.project-facts dd {
  margin-top: 9px;
  color: #777;
  font-size: 12px;
}

.project-summary__actions {
  display: grid;
  grid-template-columns: repeat(2, 223px);
  gap: 57px;
  margin-top: 23px;
}

.project-outline-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 29px;
  background: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.project-outline-button--green {
  color: #00b75b;
}

.project-outline-button--blue {
  color: #0878dd;
}

.project-outline-button:hover,
.project-outline-button:focus-visible {
  color: #fff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.12);
}

.project-outline-button--green:hover,
.project-outline-button--green:focus-visible {
  background: #00b75b;
}

.project-outline-button--blue:hover,
.project-outline-button--blue:focus-visible {
  background: #0878dd;
}

.project-detail-content {
  padding: 0 0 72px;
  background: #fff;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 901px 325px;
  column-gap: 52px;
  align-items: start;
}

.project-case-copy,
.project-sidebar {
  min-width: 0;
}

.project-case-copy {
  position: relative;
  padding-left: 44px;
}

.project-case-copy::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 240px;
  left: 13px;
  width: 1px;
  background: #dcecf8;
}

.project-case-section {
  position: relative;
  margin-top: 20px;
}

.project-case-section:first-child {
  margin-top: 0;
}

.project-case-section::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -42px;
  width: 24px;
  height: 24px;
  border: 5px solid #dcebfa;
  border-radius: 50%;
  background: #9ecbf2;
  box-shadow: 0 0 0 2px #f3f8fd;
}

.project-case-section h2 {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin: 0 0 11px;
  padding: 5px 16px;
  border-radius: 4px;
  background: #f0f0f0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.project-case-section p,
.project-case-section li {
  color: #333;
  font-size: 16px;
  line-height: 1.48;
}

.project-case-section p {
  margin: 0 16px;
}

.project-case-section p + p {
  margin-top: 25px;
}

.project-case-section ul {
  margin: 0 16px;
  padding: 0;
  list-style: none;
}

.project-solution-list {
  margin-top: 25px !important;
}

.project-solution-list li::before {
  content: "· ";
}

.project-case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 283px);
  gap: 17px;
  margin: 20px 16px 0;
}

.project-case-gallery img {
  width: 283px;
  height: 163px;
  border-radius: 10px;
  object-fit: cover;
}

.project-case-section--last {
  margin-top: 18px;
}

.project-case-section--last p + p {
  margin-top: 25px;
}

.project-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding-top: 15px;
}

.project-sidebar-section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.related-projects {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.related-project {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.related-project img {
  width: 104px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
}

.related-project:hover,
.related-project:focus-visible,
.project-sidebar-categories a:hover,
.project-sidebar-categories a:focus-visible {
  color: var(--green-dark);
}

.project-sidebar-categories {
  margin-top: 24px;
}

.project-sidebar-categories ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.project-sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 18px;
  font-size: 16px;
  line-height: 1.15;
}

.project-sidebar-categories a > span:last-child {
  font-size: 28px;
  line-height: 14px;
}

.project-sidebar-contact {
  margin-top: 31px;
}

.project-sidebar-contact p {
  margin: 12px 0 9px;
  font-size: 14px;
  line-height: 1.5;
}

.project-sidebar-contact > a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.project-sidebar-contact img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-sidebar-contact > a:hover img,
.project-sidebar-contact > a:focus-visible img {
  transform: scale(1.02);
}

.project-detail-page .inquiry-section {
  min-height: 882px;
  background: #f3f3f3;
}

.project-detail-page .inquiry-field select:invalid {
  color: #cfcfcf;
}

.project-detail-page .inquiry-submit {
  background: #0bc265;
}

.project-detail-page .site-footer {
  margin-top: 0;
}

@media (min-width: 1421px) {
  .project-breadcrumb .site-container,
  .project-summary,
  .project-detail-layout {
    position: relative;
    left: 7px;
  }
}

@media (min-width: 1161px) and (max-width: 1420px) {
  .project-summary {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 42px;
  }

  .project-summary__image {
    width: 100%;
    height: auto;
    aspect-ratio: 397 / 251;
  }

  .project-detail-layout {
    grid-template-columns: minmax(0, 2.77fr) minmax(275px, 1fr);
    column-gap: 48px;
  }
}

@media (max-width: 1160px) {
  .project-detail-intro {
    padding-block: 38px;
  }

  .project-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
  }

  .project-summary__image {
    width: 100%;
    height: auto;
    aspect-ratio: 397 / 251;
  }

  .project-summary h1 {
    font-size: 29px;
  }

  .project-facts {
    margin-top: 27px;
  }

  .project-facts > div {
    padding-inline: 15px;
  }

  .project-summary__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .project-outline-button {
    font-size: 20px;
  }

  .project-detail-layout {
    grid-template-columns: minmax(0, 2.35fr) minmax(250px, 1fr);
    column-gap: 34px;
  }

  .project-case-copy {
    padding-left: 38px;
  }

  .project-case-section::before {
    left: -38px;
  }

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

  .project-case-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 283 / 163;
  }

  .project-sidebar {
    top: 104px;
  }

  .project-detail-page .inquiry-section {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .project-summary {
    grid-template-columns: 1fr;
  }

  .project-summary__image {
    max-width: 488px;
    aspect-ratio: 397 / 251;
  }

  .project-summary h1 {
    font-size: 30px;
  }

  .project-facts {
    max-width: 620px;
  }

  .project-summary__actions {
    max-width: 520px;
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 34px;
    margin-top: 60px;
    padding-top: 38px;
    border-top: 1px solid #e7e7e7;
  }

  .project-sidebar-categories,
  .project-sidebar-contact {
    margin-top: 0;
  }

  .project-sidebar-contact {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .project-breadcrumb {
    min-height: 38px;
  }

  .project-breadcrumb .site-container {
    font-size: 11px;
  }

  .project-detail-intro {
    padding: 26px 0 31px;
  }

  .project-summary {
    gap: 25px;
  }

  .project-summary__image {
    border-radius: 8px;
  }

  .project-summary__label {
    min-height: 24px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .project-summary h1 {
    margin-top: 14px;
    font-size: 26px;
    line-height: 1.18;
  }

  .project-summary h1 br {
    display: none;
  }

  .project-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .project-facts > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid #e3e3e3;
  }

  .project-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .project-facts dd {
    margin-top: 0;
  }

  .project-summary__actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .project-outline-button {
    min-height: 50px;
    font-size: 18px;
  }

  .project-detail-content {
    padding-bottom: 42px;
  }

  .project-case-copy {
    padding-left: 25px;
  }

  .project-case-copy::before {
    display: none;
  }

  .project-case-section,
  .project-case-section--last {
    margin-top: 30px;
  }

  .project-case-section:first-child {
    margin-top: 0;
  }

  .project-case-section::before {
    top: 7px;
    left: -25px;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  .project-case-section:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    bottom: -37px;
    left: -18px;
    width: 1px;
    background: #dcecf8;
  }

  .project-case-section h2 {
    min-height: 0;
    margin-bottom: 13px;
    padding: 9px 12px;
    font-size: 18px;
    line-height: 1.2;
  }

  .project-case-section p,
  .project-case-section li {
    font-size: 14px;
    line-height: 1.62;
  }

  .project-case-section p,
  .project-case-section ul {
    margin-inline: 4px;
  }

  .project-case-section p + p,
  .project-case-section--last p + p {
    margin-top: 19px;
  }

  .project-solution-list {
    margin-top: 19px !important;
  }

  .project-case-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 4px 0;
  }

  .project-case-gallery img {
    width: 100%;
  }

  .project-sidebar {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
    padding-top: 27px;
  }

  .project-sidebar-contact {
    grid-column: auto;
  }

  .project-detail-page .inquiry-section {
    padding-top: 44px;
  }
}

@media (max-width: 360px) {
  .project-summary h1 {
    font-size: 23px;
  }

  .project-facts > div {
    grid-template-columns: 115px minmax(0, 1fr);
  }
}
