.daily-work {
  padding: 80px 0;
  background: #ffffff;
}


.cases-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Пара кейс: медиа + контент */
.case-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

/* Чередование фона: чётные — светло‑серые, нечётные — белые */
.case-pair:nth-child(even) {
  background: rgba(255, 255, 255, 0.50);
  margin: 0 20px;
  padding: 20px;
  border-radius: 15px;
}

.case-pair:nth-child(odd) {
  background: #F3F4F6;
  margin: 0 20px;
  padding: 20px;
  border-radius: 15px;
}

/* Чередование: слева медиа / справа медиа */
.case-pair--left .case-media {
  order: 1;
}
.case-pair--left .case-content {
  order: 2;
}

.case-pair--right .case-media {
  order: 2;
}
.case-pair--right .case-content {
  order: 1;
}

/* Контент */
.case-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.case-content p {
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

/* Медиа */
.case-media {
  position: relative;
  top: -20px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

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

/* Кнопка */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: transparent;
  color: #0ea172;
  opacity: 1; /* исправлено: кнопка видна по умолчанию */
  transform: translateY(0);
}

.btn-primary:hover {
  background: #1DABC1;
  color: white;
  box-shadow: 0 4px 12px rgba(29, 171, 193, 0.25);
}

/* Адаптив: на мобильных — в одну колонку, медиа всегда сверху */
@media (max-width: 768px) {
  .cases-grid {
    gap: 32px;
  }

  .case-pair {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  /* На мобильном игнорируем порядок left/right — делаем медиа сверху */
  .case-media,
  .case-content {
    order: unset;
    width: 100%;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
