/* ——— DEVELOPMENT SERVICES ——— */
.dev-services {
  padding: 5rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  background: var(--black);
}

.dev-services__layout {
  display: grid;
  grid-template-columns: minmax(180px, 4fr) minmax(0, 8fr);
  max-width: var(--max);
  margin: 0 auto;
  align-items: stretch;
}

.dev-services__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0 0.75rem;
  min-height: 100%;
  width: 100%;
  max-width: none;
}

.dev-services__intro--end {
  justify-content: flex-end;
}

.dev-services__intro--end .dev-services__corner {
  margin-top: 0;
}

.dev-services__title {
  font-size: clamp(1.85rem, 3.8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--white);
  margin-bottom: 1rem;
}

.dev-services__title .dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 0.08em;
}

.dev-services__lead {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: none;
  width: 100%;
}

.dev-services__corner {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2.5rem;
  line-height: 0;
}

.dev-services__corner img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.dev-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  min-height: 420px;
}

.dev-card {
  background: #121212;
  padding: clamp(1.5rem, 2.2vw, 2.15rem) clamp(1.25rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 210px;
}

.dev-card:nth-child(even) {
  background: #181818;
}

.dev-card:nth-child(1) {
  grid-column: 2;
  background: #161616;
}

.dev-card:nth-child(2) {
  background: #121212;
}

.dev-card:nth-child(3) {
  background: #1a1a1a;
}

.dev-card:nth-child(4) {
  background: #141414;
}

.dev-card:nth-child(5) {
  background: #191919;
}

.dev-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dev-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dev-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.3;
}

.dev-card__text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .dev-services__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .dev-services__intro {
    min-height: 0;
  }

  .dev-services__lead {
    max-width: none;
  }

  .dev-services__corner {
    margin-top: 1.5rem;
  }

  .dev-services__grid {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .dev-services {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .dev-services__grid {
    grid-template-columns: 1fr;
  }

  .dev-card:nth-child(1) {
    grid-column: auto;
  }

  .dev-card {
    min-height: 0;
  }
}
