.services {
  padding: 80px;
}

.services__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

.services__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.services__eyebrow {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 124%;
  letter-spacing: 0.04em;
  color: var(--color-nav-active);
  text-transform: uppercase;
}

.services__lead {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 150%;
  color: var(--color-heading);
}

.services__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  width: 100%;
}

.services__row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
}

.services__card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 80px 32px 32px;
  gap: 12px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid #eeeeee;
  border-radius: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.services__card-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  color: var(--color-heading);
}

.services__card-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--color-text-secondary);
  height: 68px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}

.services__card-icon {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: #f1f8fd;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.services__card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-nav-active);
  transition: transform 0.3s ease;
}

.services__card-icon svg path {
  transition: stroke 0.3s ease;
}

/* Hover (Figma "Variant2"): açıq-mavi fon, diaqonal ox 45° dönüb sağa (→) baxır */
@media (hover: hover) {
  .services__card:hover {
    background: #f2f8fd;
    border-color: #f3f4f6;
  }

  .services__card:hover .services__card-title {
    color: #0f2942;
  }

  .services__card:hover .services__card-text {
    color: #4a5565;
  }

  .services__card:hover .services__card-icon {
    background: #eff8ff;
  }

  .services__card:hover .services__card-icon svg {
    transform: rotate(45deg);
  }

  .services__card:hover .services__card-icon svg path {
    stroke: #3b99e0;
  }
}

/* Figma enləri (515/741 və 515/307/410px) sabit piksel deyil, nisbət kimi verilir:
   1280px konteynerdə dəqiq Figma ölçüləri alınır, digər enlərdə sətir tam dolur. */
@media (min-width: 1180px) {
  .services__card--b2b {
    flex: 515 1 0;
    min-width: 0;
  }

  .services__card--b2c {
    flex: 741 1 0;
    min-width: 0;
  }

  .services__card--marketing {
    flex: 515 1 0;
    min-width: 0;
  }

  .services__card--academy {
    flex: 307 1 0;
    min-width: 0;
  }

  .services__card--social {
    flex: 410 1 0;
    min-width: 0;
  }
}

@media (max-width: 1179px) {
  .services__row {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .services {
    padding: 60px 24px 80px;
  }

  .services__lead {
    font-size: 18px;
  }
}

/* Figma mobil (390px) dizaynı */
@media (max-width: 600px) {
  .services {
    padding: 60px 20px;
  }

  .services__inner {
    gap: 48px;
  }

  .services__intro {
    gap: 16px;
  }

  .services__eyebrow {
    font-size: 16px;
    line-height: 20px;
    color: #2386c8;
  }

  .services__lead {
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #0f2942;
  }

  .services__card {
    padding: 40px 20px 20px;
    border-color: #f3f4f6;
  }

  .services__card-title {
    font-size: 16px;
    color: #0f2942;
  }

  .services__card-text {
    font-size: 14px;
    height: 64px;
    color: #4a5565;
  }

  .services__card-icon {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: #f2f8fd;
  }

  .services__card-icon svg {
    width: 14px;
    height: 14px;
    color: #2386c8;
  }
}

/* Desktop: bölmələr arası məsafə 160px (əvvəlki bölmənin alt + növbətinin üst padding-i) */
@media (min-width: 961px) {
  .services {
    padding-top: 160px; /* academy şəklindən sonra */
  }
}

/* Xidmətlərimiz səhifəsi (pages/services): ana səhifə kartları news-hero başlığının altında */
.services__grid--page {
  padding-bottom: 80px;
}

.services__empty {
  width: 100%;
  padding: 0 0 80px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  text-align: center;
  color: var(--color-text-secondary);
}
