.projectBlock {
  background: #fffffa;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
  padding: var(--templateTheme-section-padding-y)
    var(--templateTheme-section-padding-x) 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
}

.projectBlock__container {
  max-width: var(--templateTheme-content-max);
  margin: 0 auto;
}

.projectBlock__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.projectBlock__header {
  display: grid;
  grid-template-columns: 600px minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.projectBlock__title {
  margin: 0;
  color: #000;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.projectBlock__text,
.projectBlock__text p {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
}

.projectBlock__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 23px;
  row-gap: 40px;
  align-items: start;
}

.projectBlock__card {
  min-width: 0;
}

.projectBlock__card--large {
  grid-column: span 6;
}

.projectBlock__card--small {
  grid-column: span 3;
}

.projectBlock__card--medium {
  grid-column: span 4;
}

.projectBlock__text-card {
  grid-column: span 4;
  align-self: center;
  padding: 2px 0;
}

.projectBlock__card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.projectBlock__card-link--static {
  cursor: default;
}

.projectBlock__coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  display: none;
}

.projectBlock__media {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #d9d9d9;
}

.projectBlock__card--large .projectBlock__media,
.projectBlock__card--small .projectBlock__media,
.projectBlock__card--medium .projectBlock__media {
  border-radius: 12px;
}

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

article.projectBlock__card--coming-soon .projectBlock__scrim {
  background: rgba(0, 0, 0, 0);
}

.projectBlock__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.projectBlock__card--large .projectBlock__scrim {
  background: rgba(0, 0, 0, 0.5);
}

.projectBlock__case-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
}

.projectBlock__case-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 8px;
}

.projectBlock__case-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.projectBlock__logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.projectBlock__logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.projectBlock__card--large .projectBlock__logo {
  max-width: min(351px, 62%);
  max-height: 158px;
}

.projectBlock__card--small .projectBlock__logo,
.projectBlock__card--medium .projectBlock__logo {
  max-width: min(202px, 94%);
  max-height: 170px;
}

.projectBlock__used-list {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.projectBlock__used-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.14px;
  color: #fff;
}

.projectBlock__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.projectBlock__card--large .projectBlock__content {
  max-width: 644px;
}

.projectBlock__name {
  color: #060606;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

.projectBlock__summary {
  color: #060606;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
}

.projectBlock__text-card-title {
  margin: 0 0 24px;
  color: #000;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.projectBlock__text-card-text,
.projectBlock__text-card-text p {
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

@media (min-width: 1800px) {
  .projectBlock__inner {
    gap: 56px;
  }

  .projectBlock__header {
    grid-template-columns: 700px minmax(0, 1fr);
    gap: 112px;
  }

  .projectBlock__grid {
    column-gap: 32px;
    row-gap: 48px;
  }

  .projectBlock__media {
    height: 430px;
  }

  .projectBlock__title {
    font-size: 64px;
  }

  .projectBlock__text,
  .projectBlock__text p,
  .projectBlock__summary {
    font-size: 22px;
    line-height: 1.45;
  }

  .projectBlock__text-card-title {
    font-size: 48px;
  }
}

@media (max-width: 1279px) {
  .projectBlock {
    padding: 88px 40px 0;
  }

  .projectBlock__header {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .projectBlock__title-col,
  .projectBlock__text-col {
    max-width: 100%;
  }

  .projectBlock__title {
    font-size: clamp(40px, 5vw, 56px);
  }

  .projectBlock__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .projectBlock__card--large,
  .projectBlock__text-card {
    grid-column: span 6;
  }

  .projectBlock__card--medium {
    grid-column: span 3;
  }

  .projectBlock__card--small {
    grid-column: span 3;
  }
}

@media (max-width: 767px) {
  .projectBlock {
    padding: 56px 20px 0;
  }

  .projectBlock__inner {
    gap: 32px;
  }

  .projectBlock__title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .projectBlock__text,
  .projectBlock__text p,
  .projectBlock__summary,
  .projectBlock__text-card-text,
  .projectBlock__text-card-text p {
    font-size: 18px;
    line-height: 1.5;
  }

  .projectBlock__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .projectBlock__card--large,
  .projectBlock__card--medium,
  .projectBlock__card--small,
  .projectBlock__text-card {
    grid-column: span 1;
  }

  .projectBlock__media {
    height: 320px;
  }

  .projectBlock__text-card-title {
    margin-bottom: 20px;
    font-size: clamp(30px, 8vw, 42px);
  }
}
