.project-hero {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-hero__top {
  flex: 0 0 auto;
  padding-top: 32px;
  padding-bottom: 56px;
  width: 100%;
}

.project-title {
  font-weight: 500;
  font-size: 48px;
  line-height: 120%;
  color: var(--color-main-white);
}

.project-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.project-hero__meta span {
  font-size: 15px;
  color: var(--color-text-secondary, #a8a8a8);
  line-height: 1.4;
}

.project-hero__meta .meta-sep {
  color: var(--color-text-secondary, #a8a8a8);
  opacity: 0.5;
}

.project-service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--color-main-decard, #1d45c5);
  color: var(--color-main-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 16px;
  transition:
    background 0.2s,
    color 0.2s;
}

.project-service-link:hover {
  background: var(--color-main-decard, #1d45c5);
  color: #fff;
}

.project-hero__image-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 50vw;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.project-main__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-sections-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

.project-sections-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
}

.project-sections-nav a {
  min-width: 209px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: var(--color-main-decard);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: var(--color-main-white);
}

.project-content {
  padding-top: 150px;
}

.project-about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.project-about h3 {
  font-weight: 500;
  font-size: 24px;
  color: var(--color-main-white);
}

.project-about p {
  max-width: 848px;
  width: 100%;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-main-white);
}

.project-subtitle {
  margin-top: 150px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-main-white);
}

.project-3d,
.project-tour,
.project-presentation {
}

.project-media-block {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-media-block video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.project-media-block iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-3d .project-media--full,
.project-tour .project-media--full,
.project-presentation .project-media--full {
  width: 100%;
  height: 100%;
  display: block;
}

.project-embed-wrap {
  width: 100%;
  height: 100%;
}

.project-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 767px) {
  .project-media-block {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.renders-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.render-item {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: block;
  grid-column: span 3; /* default: 2 per row */
}

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

.render-item--wide,
.render-item--full {
  grid-column: span 6;
}

.render-item--half {
  grid-column: span 3;
}

.render-item--third {
  grid-column: span 2;
}

.render-item--small {
  grid-column: span 3;
}

.project-next {
  position: relative;
  display: block;
  text-decoration: none;
}

.project-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.project-next img {
  width: 100%;
  display: block;
}

.project-next span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--color-main-white);
  z-index: 2;
}

.project-gallery {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.project-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-bg-black);
}

.project-gallery__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-gallery__close {
  position: absolute;
  top: 20px;
  right: 33px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.project-gallery__image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-gallery__arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 50px;
  border: none;
  background: var(--color-main-decard);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.project-gallery__arrow--bottom {
  bottom: 0;
}

.project-gallery__arrow--top {
  top: 0;
}

.project-gallery__arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media screen and (max-width: 1919px) {
  .project-hero__top {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .project-title {
    font-size: 40px;
  }

  .project-content {
    padding-top: 100px;
  }

  .project-about h3 {
    line-height: 120%;
  }

  .project-about p {
    max-width: 675px;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
  }

  .project-subtitle {
    margin-top: 100px;
    margin-bottom: 24px;
    font-size: 15px;
  }

  .project-next span {
    font-weight: 500;
  }

  .project-gallery__close {
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
  }

  .project-gallery__close svg {
    width: 28px;
    height: 28px;
  }
}

@media screen and (max-width: 1100px) {
  .project-hero__top {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .project-title {
    font-size: 40px;
  }

  .project-sections-nav {
    bottom: 24px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .project-content {
    padding-top: 100px;
  }

  .project-about {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .project-about h3 {
    line-height: 120%;
  }

  .project-about p {
    max-width: none;
    width: 100%;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
  }

  .project-subtitle {
    margin-top: 100px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 14px;
  }

  .renders-grid {
    display: grid;
    /*grid-template-columns: 1fr;*/
    gap: 20px;
  }

  .render-item--wide {
    grid-column: 1;
  }

  .project-next span {
    font-weight: 500;
    font-size: 36px;
    line-height: 120%;
  }

  .project-gallery__close {
    top: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
  }

  .project-gallery__close svg {
    width: 28px;
    height: 28px;
  }
}

@media screen and (max-width: 767px) {
  .project-hero__top {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .project-title {
    font-size: 24px;
  }

  .project-sections-nav {
    bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .project-sections-nav a {
    min-width: 161px;
  }

  .project-content {
    padding-top: 80px;
  }

  .project-about {
    flex-direction: column;
    gap: 16px;
  }

  .project-about h3 {
    font-size: 20px;
    line-height: 120%;
  }

  .project-about p {
    max-width: none;
    width: 100%;
    font-size: 14px;
    line-height: 140%;
  }

  .project-subtitle {
    margin-top: 80px;
    margin-bottom: 24px;
    font-size: 14px;
  }

  .renders-grid {
    display: grid;
    /*grid-template-columns: 1fr;*/
    gap: 20px;
  }

  .render-item--wide {
    grid-column: 1;
  }

  .project-next span {
    font-size: 24px;
    line-height: 120%;
  }

  .project-gallery__close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .project-gallery__close svg {
    width: 22px;
    height: 22px;
  }
}
