.ch7-page {
  --ch7-section-width: min(calc(100% - 30px), 1890px);
  --ch7-heading-inset: 45px;
  --ch7-section-space: 116px;
  --ch7-band-space: calc(var(--ch7-section-space) / 2);
}

.ch7-container {
  width: var(--ch7-section-width);
  margin-inline: auto;
}

.ch7-main section[id] {
  scroll-margin-top: 62px;
}

.ch7-main > .ch7-section {
  margin-block-start: var(--ch7-section-space);
}

.ch7-main > .ch7-band,
.ch7-main > .ch7-band + .ch7-section {
  margin-block-start: var(--ch7-band-space);
}

.ch7-main > .ch7-band {
  padding-block: var(--ch7-band-space);
  background: var(--color-bg-secondary);
}

.ch7-section-heading {
  margin-bottom: 40px;
  padding-inline: var(--ch7-heading-inset);
}

.ch7-section-heading h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
}

.ch7-section-heading p {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.48;
}

.ch7-overview {
  width: min(calc(100% - 30px), 1890px);
  margin-inline: auto;
  padding-block-start: 49px;
}

.ch7-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  margin: 0 0 49px;
  padding-inline: 45px;
}

.ch7-facts dt {
  font-size: 14px;
  line-height: 21px;
}

.ch7-facts dd {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 54px;
}

@media (min-width: 768px) {
  .ch7-overview .project-overview__image {
    position: relative;
    align-self: stretch;
    aspect-ratio: 944 / 600;
  }

  .ch7-page .ch7-overview .project-overview__image img {
    position: absolute;
    inset: 0;
    object-position: center top;
  }
}

.ch7-advantages .ch7-section-heading {
  margin-bottom: 63px;
}

.ch7-advantages-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border-block-start: 1px solid var(--color-border-default);
  border-inline-start: 1px solid var(--color-border-default);
}

.ch7-advantages-grid > * {
  min-width: 0;
  margin: 0;
  border-block-end: 1px solid var(--color-border-default);
  border-inline-end: 1px solid var(--color-border-default);
}

.ch7-advantages-intro,
.ch7-advantages-features {
  padding: 32px 48px;
  font-weight: 500;
}

.ch7-advantages-intro {
  font-size: 24px;
  line-height: 1.25;
}

.ch7-advantages-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  list-style: none;
  font-size: 20px;
  line-height: 1.28;
}

.ch7-advantages-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 21px;
}

.ch7-advantages-features .icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.ch7-advantages-copy {
  display: grid;
  align-content: start;
  gap: 40px;
  padding: 48px 32px;
  font-size: 18px;
  line-height: 1.48;
}

.ch7-advantages-copy :is(p, ul) {
  margin: 0;
}

.ch7-advantages-copy ul {
  padding-inline-start: 1.25em;
}

.ch7-advantages-image {
  position: relative;
  width: 100%;
  min-height: 400px;
  max-height: 610px;
  aspect-ratio: 1200 / 799;
}

.ch7-advantages-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch7-photo {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-tertiary);
  cursor: zoom-in;
}

.ch7-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch7-photo:focus-visible {
  outline: 3px solid var(--color-bg-primary);
  outline-offset: -6px;
}

.ch7-gallery-open {
  overflow: hidden;
}

.ch7-gallery-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1160px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 56px 16px 0;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.ch7-gallery-dialog::backdrop {
  background: #0009;
}

.ch7-gallery-dialog img {
  display: block;
  width: 100%;
  height: calc(100dvh - 157px);
  max-height: 760px;
  object-fit: contain;
}

.ch7-gallery-dialog button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: 1px solid var(--color-border-default);
  border-radius: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  cursor: pointer;
}

.ch7-gallery-dialog button:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.ch7-gallery-dialog button:disabled {
  visibility: hidden;
}

.ch7-gallery-dialog button:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 2px;
}

.ch7-gallery-dialog [data-ch7-gallery-close] {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 16px;
}

.ch7-gallery-dialog figure {
  margin: 0;
}

.ch7-gallery-dialog figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 6px 12px;
  min-height: 68px;
  padding: 10px 54px;
  border-top: 1px solid var(--color-border-default);
  font-size: 14px;
  text-align: center;
}

.ch7-gallery-dialog :is([data-ch7-gallery-prev], [data-ch7-gallery-next]) {
  position: absolute;
  bottom: 12px;
}

.ch7-gallery-dialog [data-ch7-gallery-prev] {
  inset-inline-start: 16px;
}

.ch7-gallery-dialog [data-ch7-gallery-next] {
  inset-inline-end: 16px;
}

.ch7-gallery-dialog [data-ch7-gallery-counter] {
  color: var(--color-text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ch7-page {
    --ch7-section-width: 100%;
    --ch7-heading-inset: 20px;
    --ch7-section-space: 48px;
  }

  .ch7-section-heading,
  .ch7-advantages .ch7-section-heading {
    margin-bottom: 24px;
  }

  .ch7-section-heading h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .ch7-section-heading p {
    margin-top: 12px;
    font-size: 16px;
  }

  .ch7-overview {
    width: 100%;
  }

  .ch7-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    margin-bottom: 24px;
    padding-inline: 20px;
  }

  body.ch7-page .ch7-overview .project-overview__facts,
  body.ch7-page .ch7-overview .project-overview__description {
    padding: 24px 20px;
    font-size: 16px;
  }

  .ch7-advantages-grid {
    grid-template-columns: minmax(0, 1fr);
    border-inline-start: 0;
  }

  .ch7-advantages-grid > * {
    border-inline-end: 0;
  }

  .ch7-advantages-intro,
  .ch7-advantages-features,
  .ch7-advantages-copy {
    padding: 24px 20px;
  }

  .ch7-advantages-intro {
    font-size: 20px;
  }

  .ch7-advantages-features {
    gap: 20px 12px;
    font-size: 16px;
  }

  .ch7-advantages-features li {
    align-items: start;
    gap: 8px;
    padding: 0;
  }

  .ch7-advantages-features .icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .ch7-advantages-copy {
    gap: 16px;
    font-size: 16px;
  }

  .ch7-advantages-image {
    min-height: 0;
  }

  .ch7-gallery-dialog img {
    height: min(calc((100vw - 64px) * 1.3), calc(100dvh - 157px));
  }
}

@media (max-width: 550px) {
  .ch7-overview {
    padding-block-start: 24px;
  }

  .ch7-facts {
    row-gap: 32px;
  }

  .ch7-facts dt {
    margin-bottom: 6px;
    line-height: 20px;
  }

  .ch7-facts dd {
    font-size: 24px;
    line-height: 30px;
  }
}

@media (max-width: 360px) {
  .ch7-advantages-features {
    grid-template-columns: minmax(0, 1fr);
  }
}
