/* Small Projects Block — Figma node 1173:3823 */

.smallProjectsBlock {
  background: #fff;
  padding: var(--templateTheme-section-padding-y)
    var(--templateTheme-section-padding-x);
  box-sizing: border-box;
}

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

.smallProjectsBlock__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.smallProjectsBlock__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.smallProjectsBlock__title-col {
  width: 790px;
  max-width: 100%;
}

.smallProjectsBlock__title {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: #000;
}

.smallProjectsBlock__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 17px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: #000;
  text-decoration: none;
  box-sizing: border-box;
}

.smallProjectsBlock__cta-label {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.16px;
}

.smallProjectsBlock__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.smallProjectsBlock__cta-icon svg {
  display: block;
}

.smallProjectsBlock__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
}

.smallProjectsBlock__card {
  min-width: 0;
}

.smallProjectsBlock__card.is-large {
  grid-column: span 2;
}

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

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

.smallProjectsBlock__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;
  display: none;
}

.smallProjectsBlock__media {
  position: relative;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #d9d9d9;
}

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

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

.smallProjectsBlock__card.is-large .smallProjectsBlock__scrim {
  background: rgba(0, 0, 0, 0.5);
}

article.smallProjectsBlock__card--coming-soon.is-large
  .smallProjectsBlock__scrim {
  background: rgba(0, 0, 0, 0);
}

article.smallProjectsBlock__card--coming-soon .smallProjectsBlock__scrim {
  background: rgba(0, 0, 0, 0);
}

.smallProjectsBlock__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;
}

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

.smallProjectsBlock__case-text {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}

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

.smallProjectsBlock__logo {
  display: block;
  max-width: min(191px, 70%);
  max-height: 68px;
  width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.smallProjectsBlock__card.is-large .smallProjectsBlock__logo {
  max-width: min(351px, 92%);
  max-height: 158px;
}

.smallProjectsBlock__card.is-small .smallProjectsBlock__logo {
  max-width: min(202px, 94%);
  max-height: 170px;
}

.smallProjectsBlock__card.is-medium .smallProjectsBlock__logo {
  max-width: min(333px, 86%);
  max-height: 270px;
}

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

.smallProjectsBlock__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-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.14px;
  color: #fff;
}

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

.smallProjectsBlock__name {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  color: #060606;
}

.smallProjectsBlock__summary {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  color: #060606;
}

@media (max-width: 1024px) {
  .smallProjectsBlock {
    padding: 88px 40px;
  }

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

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

  .smallProjectsBlock__card.is-large,
  .smallProjectsBlock__card.is-small {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .smallProjectsBlock {
    padding: 56px 20px;
  }

  .smallProjectsBlock__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .smallProjectsBlock__title {
    font-size: 40px;
  }

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

  .smallProjectsBlock__media {
    height: 320px;
  }

  .smallProjectsBlock__summary {
    font-size: 18px;
    line-height: 1.5;
  }
}
